Class Function

Inheritance Relationships

Base Type

  • public Object

Class Documentation

class Function : public Object

Function defines a type of function.

Public Functions

Function()

The constructor of Function.

Returns

The instance of Function.

Function(const std::vector<TypePtr> &args, const TypePtr retval)

The constructor of Function with some parameters.

Parameters
  • args[in] Define the args type of the function.

  • retval[in] Define the return value type of the function.

Returns

The instance of Function.

~Function() override = default

The destructor of Function.

inline bool IsTransparent() const

Judge whether the function is transparent.

Returns

The result of the judgment.

inline const std::vector<TypePtr> &args() const

Get the args type of the function.

Returns

The args of the function.

inline const TypePtr &retval() const

Get the return value type of the function.

Returns

The return value of the function.