This script can return simple group of values. More...
#include <script.h>
Public Member Functions | |
virtual void | AddReturn (CountedPtr< iScriptArgument > ReturnArg)=0 |
Add another value to be returned. More... | |
virtual bool | CanReturnMultples () const |
Does this script support multiple return values. More... | |
virtual ArgumentGroup | GetAllReturns () const =0 |
Get the returns from the last exection of the script. More... | |
virtual iScriptMultipleReturn * | GetAsiScriptMultipleReturn () |
If your only handle to this is a pointer of type iScript this can be called to get a pointer to an iScriptMultipleReturn if it would be valid. More... | |
virtual iScriptMultipleReturn * | GetMostDerived () |
Get a pointer to the most Derived type of this class. More... | |
virtual CountedPtr< iScriptArgument > | GetReturn (Whole ReturnNumber) const =0 |
Retrieve a value returned from a script. More... | |
virtual Whole | GetReturnCount () const =0 |
How many values are being returned. More... | |
Public Member Functions inherited from Mezzanine::Scripting::iScript | |
iScript () | |
default constructor More... | |
virtual void | AddArgument (CountedPtr< iScriptArgument > Arg)=0 |
This adds an argument to be passed to the script. More... | |
virtual bool | CanReturnMultples () |
Does this script support multiple return values. More... | |
virtual void | ClearArguments ()=0 |
Remove all the ARGs!!! http://imgur.com/DJhw7. More... | |
Whole | DecrementReferenceCount () |
Decrease the reference count by one and return the updated count. More... | |
virtual CountedPtr< iScriptArgument > | GetArgument (Whole ArgNumber) const =0 |
Retrieve a argument previously passed in. More... | |
virtual Whole | GetArgumentCount () const =0 |
How many arguments have been attached to this script? More... | |
virtual iScriptCompilable * | GetAsScriptCompilable () |
If your only handle to this is a pointer of type iScript this can be called to get a pointer to an iScriptCompilable if it would be valid. More... | |
virtual iScriptCompilable * | GetAsScriptCompilable () const |
If your only handle to this is a pointer of type iScript this can be called to get a pointer to an iScriptCompilable if it would be valid. More... | |
Whole | GetReferenceCount () |
Get the current amount of references. More... | |
virtual iScript * | GetReferenceCountTargetAsPointer () |
Gets the actual pointer to the target. More... | |
virtual String | GetSourceCode () const =0 |
If present this returns the code of script. More... | |
Whole | IncrementReferenceCount () |
Increase the reference count by one and return the updated count. More... | |
virtual bool | IsCompilable () const |
Used to check if this Script supports compilation bytecode. More... | |
virtual bool | IsCompiled () const |
Used to check if there is a bytecode version of the script available. More... | |
virtual void | RemoveArgument (CountedPtr< iScriptArgument > Arg)=0 |
Remove an argument based on a CountedPtr to the script. More... | |
virtual void | RemoveArgument (Whole ArgNumber)=0 |
Remove a Script argument based on the order it will be passed into the Script at Execution. More... | |
virtual void | SetSourceCode (const String &Code)=0 |
Sets the string version of the script. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Mezzanine::Scripting::iScript | |
Whole | RefCount |
This is the Counter that stores how many references exist. | |
This script can return simple group of values.
This loosely correlates to a tuple like the simple returns in Lua or any return in Python. This cannot handle returns that include tuples that contain tuples in a graceful way.
|
pure virtual |
Add another value to be returned.
ReturnArg | A copy assignable script argument that conveys type information to the specific language runtime |
Some scripting languages (Lua51) require knowledge of the return types of the scripts in order to extract them from the language runtime. Pointers to classes derived from iScriptArgument should convey that typing information to such language runtimes.
Implemented in Mezzanine::Scripting::Lua::Lua51Script.
|
inlinevirtual |
|
pure virtual |
Get the returns from the last exection of the script.
Implemented in Mezzanine::Scripting::Lua::Lua51Script.
|
inlinevirtual |
If your only handle to this is a pointer of type iScript this can be called to get a pointer to an iScriptMultipleReturn if it would be valid.
Reimplemented from Mezzanine::Scripting::iScript.
|
inlinevirtual |
Get a pointer to the most Derived type of this class.
Reimplemented from Mezzanine::Scripting::iScript.
Reimplemented in Mezzanine::Scripting::Lua::Lua51Script.
|
pure virtual |
Retrieve a value returned from a script.
ReturnNumber | The index of the return to return. |
Implemented in Mezzanine::Scripting::Lua::Lua51Script.
|
pure virtual |
How many values are being returned.
Implemented in Mezzanine::Scripting::Lua::Lua51Script.