Gorgon Game Engine
Value Struct Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ SetIdentifier()

void SetIdentifier ( const std::string &  name)

◆ SetLiteral() [1/2]

void SetLiteral ( const Data value)

◆ SetLiteral() [2/2]

void SetLiteral ( const Scripting::Type type,
Any  value 
)

◆ SetStringLiteral()

void SetStringLiteral ( const std::string &  value)

◆ SetTemp()

void SetTemp ( Byte  index)

References Value::Result.

◆ SetVariable()

void SetVariable ( const std::string &  name)

◆ ToString()

Member Data Documentation

◆ Literal

Data Literal

Used for literal values.

◆ Name

std::string Name

Used for variables and constants.

◆ Result

Byte Result

Used for temporary results.

◆ Type

Type of this value.


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