![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Class representing a value (stack entry, parameter, etc.) More...
#include <Value.h>
Public Member Functions | |
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... | |
Friends | |
std::ostream & | operator<< (std::ostream &output, Value *value) |
Output a value to a stream. More... | |
Additional Inherited Members | |
![]() | |
RefCounted () | |
virtual | ~RefCounted () |
Class representing a value (stack entry, parameter, etc.)
|
virtual |
Destructor.
|
virtual |
Duplicates a value.
[out] | output | The stream to output any necessary assignment. |
Reimplemented in IntValue, AddressValue, RelAddressValue, and DupValue.
|
virtual |
Operator precedence for this value.
Lower values bind stronger, i.e. they are resolved earlier. If an operand has a higher precedence value than the operator, parentheses are not required for that operand.
Reimplemented in BinaryOpValue, and UnaryOpValue.
|
virtual |
Retrieves a signed integer representing the value, if possible.
WrongTypeException | if the value is not an integer. |
Reimplemented in IntValue, and AddressValue.
|
virtual |
Retrieves the string representation of the value.
|
virtual |
Retrieves an unsigned integer representing the value, if possible.
WrongTypeException | if the value is not an integer. |
Reimplemented in IntValue, and RelAddressValue.
|
virtual |
Return whether or not the Value is an address.
Reimplemented in AddressValue, and RelAddressValue.
|
virtual |
|
virtual |
Returns whether or not any stored integer value is signed.
WrongTypeException | if the value is not an integer. |
Reimplemented in IntValue.
|
virtual |
Negates a value.
WrongTypeException | if negation is not possible. |
Reimplemented in BinaryOpValue, and NegatedValue.
|
pure virtual |
Print the value to a stream.
[out] | output | The stream to write to. |
Implemented in IntValue, AddressValue, RelAddressValue, DupValue, StringValue, UnquotedStringValue, VarValue, ArrayValue, BinaryOpValue, UnaryOpValue, and CallValue.
|
friend |
Output a value to a stream.
[out] | output | The stream to output to. |
[in] | value | Reference counted pointer to the value to output. |