![]() |
Gorgon Game Engine
|
This class contains a parsed value. More...
Public Member Functions | |
void | SetIdentifier (const std::string &name) |
void | SetLiteral (const Data &value) |
void | SetLiteral (const Scripting::Type *type, Any value) |
void | SetStringLiteral (const std::string &value) |
void | SetTemp (Byte index) |
void | SetVariable (const std::string &name) |
std::string | ToString () const |
Public Attributes | |
Data | Literal |
Used for literal values. More... | |
std::string | Name |
Used for variables and constants. More... | |
Byte | Result |
Used for temporary results. More... | |
ValueType | Type |
Type of this value. More... | |
This class contains a parsed value.
A value can be a temporary, literal, variable or a constant. For variables and constants, Name is stored. For a temporary, Result is stored, for a literal Value is stored.
void SetIdentifier | ( | const std::string & | name | ) |
References Gorgon::Scripting::Identifier, and Value::Name.
void SetLiteral | ( | const Data & | value | ) |
References Gorgon::Scripting::Literal, and Value::Literal.
void SetLiteral | ( | const Scripting::Type * | type, |
Any | value | ||
) |
References Gorgon::Scripting::Literal, and Value::Literal.
void SetStringLiteral | ( | const std::string & | value | ) |
References Gorgon::Scripting::Literal, and Value::Literal.
void SetTemp | ( | Byte | index | ) |
References Value::Result.
void SetVariable | ( | const std::string & | name | ) |
References Value::Name, and Gorgon::Scripting::Variable.
std::string ToString | ( | ) | const |
References Gorgon::String::From(), Gorgon::Scripting::Literal, Value::Literal, Value::Name, Value::Result, and Data::ToString().
Data Literal |
Used for literal values.
std::string Name |
Used for variables and constants.
Byte Result |
Used for temporary results.