![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Value representing array access. More...
#include <Value.h>
Public Member Functions | |
ArrayValue (const ArrayValue &value)=delete | |
Copy constructor, disabled. More... | |
ArrayValue & | operator= (const ArrayValue &value)=delete |
Copy constructor, disabled. More... | |
ArrayValue (const std::string &name, const ValueList &indexes) | |
Constructor for ArrayValue. More... | |
virtual std::ostream & | Print (std::ostream &output) const override |
Print the value to a stream. More... | |
![]() | |
VarValue (std::string name) | |
Constructor for VarValue. More... | |
virtual std::ostream & | Print (std::ostream &output) const override |
Print the value to a stream. More... | |
![]() | |
virtual | ~Value () |
Destructor. More... | |
virtual bool | IsInteger () |
Return whether or not the Value is an integer. More... | |
virtual bool | IsAddress () |
Return whether or not the Value is an address. More... | |
virtual bool | IsSignedValue () |
Returns whether or not any stored integer value is signed. More... | |
virtual int32 | GetSigned () |
Retrieves a signed integer representing the value, if possible. More... | |
virtual uint32 | GetUnsigned () |
Retrieves an unsigned integer representing the value, if possible. More... | |
virtual std::ostream & | Print (std::ostream &output) const =0 |
Print the value to a stream. More... | |
virtual std::string | GetString () const |
Retrieves the string representation of the value. More... | |
virtual ValuePtr | Dup (std::ostream &output) |
Duplicates a value. More... | |
virtual ValuePtr | Negate () |
Negates a value. More... | |
virtual int | GetPrecedence () const |
Operator precedence for this value. More... | |
Protected Attributes | |
const ValueList | indexes_ |
Values representing the indexes used (left-to-right). More... | |
![]() | |
std::string | name_ |
The variable name. More... | |
Additional Inherited Members | |
![]() | |
RefCounted () | |
virtual | ~RefCounted () |
Value representing array access.
|
delete |
Copy constructor, disabled.
[in] | value | The value to copy. |
ArrayValue::ArrayValue | ( | const std::string & | name, |
const ValueList & | indexes | ||
) |
Constructor for ArrayValue.
[in] | name | The name of the array. |
[in] | indexes | List of stack entries representing the indexes used (left-to-right). |
|
delete |
Copy constructor, disabled.
[in] | value | The value to copy. |
|
overridevirtual |
Print the value to a stream.
Every item in the array will be printed.
[out] | output | The stream to write to. |
Reimplemented from VarValue.
|
protected |
Values representing the indexes used (left-to-right).