Spinning Topp Logo BlackTopp Studios
inc
Public Types | Public Member Functions | Protected Attributes | List of all members
Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument > Class Template Reference

A Null implementation of a ScriptArgument that is suitable for primitive types in most situations. More...

#include <scriptargument.h>

+ Inheritance diagram for Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >:
+ Collaboration diagram for Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >:

Public Types

typedef NullArgument Type
 To make working with this easier.
 

Public Member Functions

 ScriptArgumentGeneric (NullArgument InitialValue=NullArgument())
 Create an initialized Argument. More...
 
virtual ~ScriptArgumentGeneric ()
 Overloadable Deconstructor.
 
virtual Boole GetBoole () const
 Get as a Bool. More...
 
virtual Integer GetInteger () const
 Get Null as a Integer. More...
 
virtual ScriptArgumentGeneric< NullArgument > * GetMostDerived ()
 Get a pointer to the most Derived type of this class. More...
 
virtual Real GetReal () const
 Get Null as a Real. More...
 
virtual String GetString () const
 Get Null as a String. More...
 
virtual Integer GetTypeData () const
 Get data about this being a Bool. More...
 
virtual NullArgument GetValue () const
 Get the raw primitive to value. More...
 
virtual Whole GetWhole () const
 Get Null as a Whole. More...
 
virtual Boole IsNull () const
 Is this value representing a Null/Nil value. More...
 
virtual void SetValue (NullArgument 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...
 
IntrusiveRefCountGetReferenceCountTargetAsPointer ()
 Gets the actual pointer to the target. More...
 
Whole IncrementReferenceCount ()
 Increase the reference count by one and return the updated count. More...
 

Protected Attributes

NullArgument Datum
 The Bool actual data.
 

Detailed Description

template<>
class Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >

A Null implementation of a ScriptArgument that is suitable for primitive types in most situations.

This will likely need to be overidden to get the string varation correct.

Definition at line 594 of file scriptargument.h.

Constructor & Destructor Documentation

Create an initialized Argument.

Parameters
InitialValueThe value to initialize the Argument Integer value with.
Note
Intentionally not explicit, this allow for passing convertable types directly to functions.

Definition at line 607 of file scriptargument.h.

Member Function Documentation

virtual Boole Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetBoole ( ) const
inlinevirtual

Get as a Bool.

Returns
False.

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 637 of file scriptargument.h.

virtual Integer Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetInteger ( ) const
inlinevirtual

Get Null as a Integer.

Returns
The Bool value lexographically converted as an Integer

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 627 of file scriptargument.h.

Get a pointer to the most Derived type of this class.

Returns
A pointer of the most derived pointing to this.

Reimplemented from Mezzanine::Scripting::iScriptArgument.

Reimplemented in Mezzanine::Scripting::Lua::Lua51NilArgument.

Definition at line 662 of file scriptargument.h.

virtual Real Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetReal ( ) const
inlinevirtual

Get Null as a Real.

Returns
The Bool value lexographically converted as an Integer

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 632 of file scriptargument.h.

virtual String Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetString ( ) const
inlinevirtual

Get Null as a String.

Returns
The Bool value lexographically converted as a String

Implements Mezzanine::Scripting::iScriptArgument.

Reimplemented in Mezzanine::Scripting::Lua::Lua51NilArgument.

Definition at line 617 of file scriptargument.h.

virtual Integer Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetTypeData ( ) const
inlinevirtual

Get data about this being a Bool.

Returns
This will return an Integer containing GenericBool.

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 657 of file scriptargument.h.

virtual NullArgument Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetValue ( ) const
inlinevirtual

Get the raw primitive to value.

Returns
The internal value that meaningful operations can be performed on.

Definition at line 652 of file scriptargument.h.

virtual Whole Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::GetWhole ( ) const
inlinevirtual

Get Null as a Whole.

Returns
The Bool value lexographically converted as a Whole

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 622 of file scriptargument.h.

virtual Boole Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::IsNull ( ) const
inlinevirtual

Is this value representing a Null/Nil value.

Returns
In most languages false is a valid value for Bools, so any value in this is assumed to not be NULL. This should be overridden if different behavior is required.

Implements Mezzanine::Scripting::iScriptArgument.

Definition at line 642 of file scriptargument.h.

virtual void Mezzanine::Scripting::ScriptArgumentGeneric< NullArgument >::SetValue ( NullArgument  NewValue)
inlinevirtual

Provide an overload point to change assignment that operators will use.

Parameters
NewValueThe new value for this.

Definition at line 647 of file scriptargument.h.


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