omni/core/IWeakObject.gen.h

File members: omni/core/IWeakObject.gen.h

// Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
// --------- Warning: This is a build system generated file. ----------
//

#include <omni/core/OmniAttr.h>
#include <omni/core/Interface.h>
#include <omni/core/ResultError.h>

#include <functional>
#include <utility>
#include <type_traits>

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL

template <>
class omni::core::Generated<omni::core::IWeakObjectControlBlock_abi> : public omni::core::IWeakObjectControlBlock_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::core::IWeakObjectControlBlock")

    omni::core::ObjectPtr<omni::core::IObject> getObject() noexcept;
};

template <>
class omni::core::Generated<omni::core::IWeakObject_abi> : public omni::core::IWeakObject_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::core::IWeakObject")

    omni::core::ObjectPtr<omni::core::IWeakObjectControlBlock> getWeakObjectControlBlock() noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline omni::core::ObjectPtr<omni::core::IObject> omni::core::Generated<omni::core::IWeakObjectControlBlock_abi>::getObject() noexcept
{
    return omni::core::steal(getObject_abi());
}

inline omni::core::ObjectPtr<omni::core::IWeakObjectControlBlock> omni::core::Generated<
    omni::core::IWeakObject_abi>::getWeakObjectControlBlock() noexcept
{
    return omni::core::steal(getWeakObjectControlBlock_abi());
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL