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


//! @ref omni::kit::exec::core::unstable::IExecutionContext inherits all of the functionality of @ref
//! omni::graph::exec::unstable::IExecutionContext but adds information related to Kit.
template <>
class omni::core::Generated<omni::kit::exec::core::unstable::IExecutionContext_abi>
    : public omni::kit::exec::core::unstable::IExecutionContext_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::kit::exec::core::unstable::IExecutionContext")

    //! Returns Kit's timing parameters for the current execution.
    const omni::kit::exec::core::unstable::ExecutionContextTime* getTime() noexcept;

    //! Returns Kit's update settings for the current execution.
    const omni::kit::StageUpdateSettings* getUpdateSettings() noexcept;

    //! Schedule given function to execute at the end of current execution.
    void schedulePostTask(omni::core::ObjectParam<graph::exec::unstable::IScheduleFunction> fn) noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline const omni::kit::exec::core::unstable::ExecutionContextTime* omni::core::Generated<
    omni::kit::exec::core::unstable::IExecutionContext_abi>::getTime() noexcept
{
    return getTime_abi();
}

inline const omni::kit::StageUpdateSettings* omni::core::Generated<
    omni::kit::exec::core::unstable::IExecutionContext_abi>::getUpdateSettings() noexcept
{
    return getUpdateSettings_abi();
}

inline void omni::core::Generated<omni::kit::exec::core::unstable::IExecutionContext_abi>::schedulePostTask(
    omni::core::ObjectParam<graph::exec::unstable::IScheduleFunction> fn) noexcept
{
    schedulePostTask_abi(fn.get());
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
static_assert(std::is_standard_layout<omni::kit::exec::core::unstable::ExecutionContextTime>::value,
              "omni::kit::exec::core::unstable::ExecutionContextTime must be standard layout to be used in ONI ABI");
