TorqueScript
0.2
|
A NativeFunction is a specialization of Function that allows native C++ programming to be called from within the interpreter. More...
#include <nativefunction.hpp>
Public Member Functions | |
NativeFunction (NativeFunctionPointer native, const std::string &package, const std::string &space, const std::string &name) | |
virtual void | execute (std::shared_ptr< ConsoleObject > thisObject, std::shared_ptr< ExecutionState > state, const std::size_t argumentCount) override |
Executes the native function provided to the interpreter. | |
Public Member Functions inherited from TorqueScript::Function | |
Function (const std::string &package, const std::string &space, const std::string &name) | |
Function (const std::string &package, const std::string &space, const std::string &name, const std::vector< std::string > ¶meterNames) | |
void | addInstructions (const InstructionSequence &instructions) |
const std::string & | getDeclaredName () |
Retrieves the declared name of this function. More... | |
const std::string & | getDeclaredNameSpace () |
Retrieves the declared namespace of this function. More... | |
const std::string & | getDeclaredPackage () |
Retrieves the declared package of this function. More... | |
A NativeFunction is a specialization of Function that allows native C++ programming to be called from within the interpreter.