Class EnvFunc#

Inheritance Relationships#

Base Type#

  • public ffi::ObjectRef

Class Documentation#

class EnvFunc : public ffi::ObjectRef#

Managed reference to EnvFuncObj.

See also

EnvFuncObj

Public Types

using ContainerType = EnvFuncObj#

specify container node

Public Functions

inline explicit EnvFunc(ffi::UnsafeInit tag, ffi::ObjectPtr<ffi::Object> n)#
inline explicit EnvFunc(ffi::UnsafeInit tag)#

constructor with UnsafeInit

inline const EnvFuncObj *operator->() const#
Returns:

The internal global function pointer

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

Invoke the function.

Parameters:

args – The arguments

Returns:

The return value.

Public Static Functions

static EnvFunc Get(const ffi::String &name)#

Get a global function based on the name.

Note

The function can be unique

Parameters:

name – The name of the global function.

Returns:

The created global function.