|
ICG 2
Electric Boogaloo
|
IntegerValue is a Value that represents an integer value on the right-hand-side of an equation. More...
#include <IntegerValue.hpp>
Public Member Functions | |
| IntegerValue (long long value) | |
| double | getFloatingPointValue () const |
| long long | getIntegerValue () const |
| void | print (std::ostream &s) const |
| std::string | toString () const |
| ValueType | getValueType () const override |
Public Member Functions inherited from Value | |
| virtual | ~Value () |
Additional Inherited Members | |
Public Types inherited from Value | |
| enum | ValueType { STRING , INTEGER , FLOATING_POINT , POINTER } |
IntegerValue is a Value that represents an integer value on the right-hand-side of an equation.
| IntegerValue::IntegerValue | ( | long long | value | ) |
Constructor.
| value | The value of this IntegerValue. |
|
virtual |
Get the value of the IntegerValue as floating point.
Implements NumericValue.
|
virtual |
Get the value of this IntegerValue as an integer.
Implements NumericValue.
|
virtual |
Print this FloatingPointValue to a stream.
Implements Value.
|
virtual |
Get a string representation of this IntegerValue.
Implements Value.