// 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. ----------
//

//! @file
//!
//! @brief This file was generated by <i>omni.bind</i>.

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

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

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL


template <>
class omni::core::Generated<omni::graph::core::unstable::IDirtyID2_abi> : public omni::graph::core::unstable::IDirtyID2_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::graph::core::unstable::IDirtyID2")

    //! @brief Activate or deactivate dirty id tracking for specific bundle on its attributes and children.
    //! @param handle to dirty id track.
    //! @param isActive Bool flag indicating if tracking is on or off.
    //! @return An omni::core::Result indicating the success of the operation.
    omni::core::Result setup(const omni::graph::core::BundleHandle& handle, bool isActive) noexcept;

    //! @brief Get dirty id values for bundles.
    //!
    //! The output array for dirty id values needs to be at least size of input
    //! array of bundle handles.
    //!
    //! @param bundles      Input bundles to get dirty ids for.
    //! @param bundleCount  Size of input bundles.
    //! @param ids          Output dirty id values for requested bundles.
    //!
    //! @returns Success if operation was successful.
    omni::core::Result getForBundles(const omni::graph::core::ConstBundleHandle* const bundles,
                                     size_t bundleCount,
                                     omni::graph::core::DirtyIDType* const ids);

    //! @brief Get dirty id values for attributes.
    //!
    //! The output array for dirty id values needs to be at least size of input
    //! array of attribute handles.
    //!
    //! @param attributes       Input attributes to get dirty ids for.
    //! @param attributeCount   Size of input attributes.
    //! @param ids              Output dirty id values for requested attributes.
    //!
    //! @returns Success if operation was successful.
    omni::core::Result getForAttributes(const omni::graph::core::ConstAttributeDataHandle* const attributes,
                                        size_t attributeCount,
                                        omni::graph::core::DirtyIDType* const ids);
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline omni::core::Result omni::core::Generated<omni::graph::core::unstable::IDirtyID2_abi>::setup(
    const omni::graph::core::BundleHandle& handle, bool isActive) noexcept
{
    return setup_abi(handle, isActive);
}

inline omni::core::Result omni::core::Generated<omni::graph::core::unstable::IDirtyID2_abi>::getForBundles(
    const omni::graph::core::ConstBundleHandle* const bundles, size_t bundleCount, omni::graph::core::DirtyIDType* const ids)
{
    OMNI_THROW_IF_ARG_NULL(bundles);
    OMNI_THROW_IF_ARG_NULL(ids);
    auto return_ = getForBundles_abi(bundles, bundleCount, ids);
    return return_;
}

inline omni::core::Result omni::core::Generated<omni::graph::core::unstable::IDirtyID2_abi>::getForAttributes(
    const omni::graph::core::ConstAttributeDataHandle* const attributes,
    size_t attributeCount,
    omni::graph::core::DirtyIDType* const ids)
{
    OMNI_THROW_IF_ARG_NULL(attributes);
    OMNI_THROW_IF_ARG_NULL(ids);
    auto return_ = getForAttributes_abi(attributes, attributeCount, ids);
    return return_;
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
