Detailed Description

The base class for a variable and its value. E.g. var something:type;

Inheritance diagram for Nitro.Variable:
Nitro.ISettable Nitro.LocalVariable Nitro.ParameterVariable

Public Member Functions

 Variable (string name)
 Creates a new variable with the given name. More...
 
virtual Type Type ()
 The type of the value that this variable holds. Note: This is not related to VariableType. More...
 
virtual void OutputIL (NitroIL into, bool accessingMember)
 Outputs this variable to read its content. More...
 
virtual void OutputSet (NitroIL into, Type setting)
 Outputs this variable to write its content. More...
 
virtual void OutputTarget (NitroIL into)
 Used with OutputSet, this outputs any additional information that 'targets' where this variable is located. More...
 
bool Equals (Variable other)
 Checks if two variables are equal to each other. More...
 

Public Attributes

string Name
 The name of the variable. More...
 

Constructor & Destructor Documentation

Nitro.Variable.Variable ( string  name)
inline

Creates a new variable with the given name.

Parameters
nameThe name of the variable.

Member Function Documentation

bool Nitro.Variable.Equals ( Variable  other)
inline

Checks if two variables are equal to each other.

Parameters
otherThe variable to check for equality with this one.
Returns
True if this and the given variable is equal.
virtual void Nitro.Variable.OutputIL ( NitroIL  into,
bool  accessingMember 
)
inlinevirtual

Outputs this variable to read its content.

Parameters
intoThe IL stream it should be put into.
accessingMemberTrue if the variable is being outputted and immediately having a method/property/field accessed. This is important for value type fields.

Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.

virtual void Nitro.Variable.OutputSet ( NitroIL  into,
Type  setting 
)
inlinevirtual

Outputs this variable to write its content.

Parameters
intoThe IL stream a set should be put into.
settingThe type being set to this variable.

Implements Nitro.ISettable.

Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.

virtual void Nitro.Variable.OutputTarget ( NitroIL  into)
inlinevirtual

Used with OutputSet, this outputs any additional information that 'targets' where this variable is located.

Parameters
intoThe IL stream a set should be put into.

Implements Nitro.ISettable.

virtual Type Nitro.Variable.Type ( )
inlinevirtual

The type of the value that this variable holds. Note: This is not related to VariableType.

Returns
The type of the value.

Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.

Member Data Documentation

string Nitro.Variable.Name

The name of the variable.