|
ICG 2
Electric Boogaloo
|
Value is an abstract base-class that represents a value on the right-hand-side of an assignment. More...
#include <Value.hpp>
Public Types | |
| enum | ValueType { STRING , INTEGER , FLOATING_POINT , POINTER } |
Public Member Functions | |
| virtual | ~Value () |
| virtual void | print (std::ostream &s) const =0 |
| virtual std::string | toString () const =0 |
| virtual ValueType | getValueType () const =0 |
Value is an abstract base-class that represents a value on the right-hand-side of an assignment.
| enum Value::ValueType |
|
inlinevirtual |
Destroy the Value.
|
pure virtual |
Implemented in StringValue, PointerValue, IntegerValue, and FloatingPointValue.
|
pure virtual |
Print a representation of this Value to the given stream.
Implemented in StringValue, PointerValue, FloatingPointValue, and IntegerValue.
|
pure virtual |
Get a string representation of this Value.
Implemented in StringValue, PointerValue, FloatingPointValue, and IntegerValue.