A generic implementation of a ScriptArgument that is suitable for primitive types in most situations. More...
#include <scriptargument.h>
Public Types | |
typedef T | Type |
To make working with this easier. | |
Public Member Functions | |
ScriptArgumentGeneric (T InitialValue) | |
Create an initialized Argument. More... | |
virtual | ~ScriptArgumentGeneric () |
Overloadable Deconstructor. | |
virtual Boole | GetBoole () const |
Get the Argument as a Boole. More... | |
virtual Integer | GetInteger () const |
Get the Argument as a Integer, slow default implementation. More... | |
virtual ScriptArgumentGeneric< T > * | GetMostDerived () |
Get a pointer to the most Derived type of this class. More... | |
virtual Real | GetReal () const |
Get the Argument as a Real, slow default implementation. More... | |
virtual String | GetString () const |
Get the Argument as a String, slow default implementation. More... | |
virtual Integer | GetTypeData () const |
Get data about this having an unknown type. More... | |
virtual T | GetValue () const |
Get the raw primitive to value. More... | |
virtual Whole | GetWhole () const |
Get the Argument as a Whole, slow default implementation. More... | |
virtual Boole | IsNull () const |
Is this value representing a Null/Nil value. More... | |
virtual void | SetValue (T NewValue) |
Provide an overload point to change assignment that operators will use. More... | |
Public Member Functions inherited from Mezzanine::Scripting::iScriptArgument | |
virtual | ~iScriptArgument () |
Overidable Deconstructor. | |
Public Member Functions inherited from Mezzanine::IntrusiveRefCount | |
IntrusiveRefCount () | |
Constructor for instatiating the Reference Count. | |
virtual | ~IntrusiveRefCount () |
Virtual Deconstructor to prevent issues with deletion with incomplete type information. | |
Whole | DecrementReferenceCount () |
Decrease the reference count by one and return the updated count. More... | |
Whole | GetReferenceCount () const |
Get the current amount of references. More... | |
IntrusiveRefCount * | GetReferenceCountTargetAsPointer () |
Gets the actual pointer to the target. More... | |
Whole | IncrementReferenceCount () |
Increase the reference count by one and return the updated count. More... | |
Protected Attributes | |
T | Datum |
The actual data. More... | |
A generic implementation of a ScriptArgument that is suitable for primitive types in most situations.
Scripting languages the do not benefit from having different implementations per type should implement their argument subclass derived from this. This will attempt to provide basic type conversion for Datum to C++ types lexigraphically. Any that is innapropriate or suboptimal should be overidden
Definition at line 132 of file scriptargument.h.
|
inline |
Create an initialized Argument.
InitialValue | The value to initialize the Argument with. |
Definition at line 149 of file scriptargument.h.
|
inlinevirtual |
Get the Argument as a Boole.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 179 of file scriptargument.h.
|
inlinevirtual |
Get the Argument as a Integer, slow default implementation.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 169 of file scriptargument.h.
|
inlinevirtual |
Get a pointer to the most Derived type of this class.
Reimplemented from Mezzanine::Scripting::iScriptArgument.
Definition at line 204 of file scriptargument.h.
|
inlinevirtual |
Get the Argument as a Real, slow default implementation.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 174 of file scriptargument.h.
|
inlinevirtual |
Get the Argument as a String, slow default implementation.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 159 of file scriptargument.h.
|
inlinevirtual |
Get data about this having an unknown type.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 199 of file scriptargument.h.
|
inlinevirtual |
Get the raw primitive to value.
Definition at line 194 of file scriptargument.h.
|
inlinevirtual |
Get the Argument as a Whole, slow default implementation.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 164 of file scriptargument.h.
|
inlinevirtual |
Is this value representing a Null/Nil value.
Implements Mezzanine::Scripting::iScriptArgument.
Definition at line 184 of file scriptargument.h.
|
inlinevirtual |
Provide an overload point to change assignment that operators will use.
NewValue | The new value for this. |
Definition at line 189 of file scriptargument.h.
|
protected |
The actual data.
Definition at line 140 of file scriptargument.h.