tvm
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
tvm::EnvFunc Class Reference

Managed reference to EnvFuncObj. More...

#include <env_func.h>

Inheritance diagram for tvm::EnvFunc:
Collaboration diagram for tvm::EnvFunc:

Public Types

using ContainerType = EnvFuncObj
 specify container node
 

Public Member Functions

 EnvFunc (ffi::UnsafeInit tag, ffi::ObjectPtr< ffi::Object > n)
 
 EnvFunc (ffi::UnsafeInit tag)
 constructor with UnsafeInit
 
const EnvFuncObj * operator-> () const
 
template<typename... Args>
ffi::Any operator() (Args &&... args) const
 Invoke the function.
 

Static Public Member Functions

static TVM_TIRX_DLL EnvFunc Get (const ffi::String &name)
 Get a global function based on the name.
 

Static Public Attributes

static constexpr bool _type_is_nullable = false
 

Detailed Description

Managed reference to EnvFuncObj.

See also
EnvFuncObj

Member Typedef Documentation

◆ ContainerType

specify container node

Constructor & Destructor Documentation

◆ EnvFunc() [1/2]

tvm::EnvFunc::EnvFunc ( ffi::UnsafeInit  tag,
ffi::ObjectPtr< ffi::Object >  n 
)
inlineexplicit

◆ EnvFunc() [2/2]

tvm::EnvFunc::EnvFunc ( ffi::UnsafeInit  tag)
inlineexplicit

constructor with UnsafeInit

Member Function Documentation

◆ Get()

static TVM_TIRX_DLL EnvFunc tvm::EnvFunc::Get ( const ffi::String &  name)
static

Get a global function based on the name.

Parameters
nameThe name of the global function.
Returns
The created global function.
Note
The function can be unique

◆ operator()()

template<typename... Args>
ffi::Any tvm::EnvFunc::operator() ( Args &&...  args) const
inline

Invoke the function.

Parameters
argsThe arguments
Returns
The return value.

◆ operator->()

const EnvFuncObj * tvm::EnvFunc::operator-> ( ) const
inline
Returns
The internal global function pointer

Member Data Documentation

◆ _type_is_nullable

constexpr bool tvm::EnvFunc::_type_is_nullable = false
staticconstexpr

The documentation for this class was generated from the following file: