// Copyright (c) 2022, 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


//! Interface wrapping a function (possibly with storage) to forward topology invalidation notices.
template <>
class omni::core::Generated<omni::graph::exec::unstable::IInvalidationForwarder_abi>
    : public omni::graph::exec::unstable::IInvalidationForwarder_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::graph::exec::unstable::IInvalidationForwarder")

    //! Invokes the wrapped function.
    //!
    //! The given topology must not be @c nullptr.
    void invoke(omni::core::ObjectParam<omni::graph::exec::unstable::ITopology> topology);
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline void omni::core::Generated<omni::graph::exec::unstable::IInvalidationForwarder_abi>::invoke(
    omni::core::ObjectParam<omni::graph::exec::unstable::ITopology> topology)
{
    OMNI_THROW_IF_ARG_NULL(topology);
    invoke_abi(topology.get());
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
