TorqueScript  0.2
Public Member Functions | List of all members
TorqueScript::NativeFunction Class Reference

A NativeFunction is a specialization of Function that allows native C++ programming to be called from within the interpreter. More...

#include <nativefunction.hpp>

Inheritance diagram for TorqueScript::NativeFunction:
Inheritance graph
[legend]
Collaboration diagram for TorqueScript::NativeFunction:
Collaboration graph
[legend]

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 > &parameterNames)
 
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...
 

Detailed Description

A NativeFunction is a specialization of Function that allows native C++ programming to be called from within the interpreter.


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