#include <value.h>
Inheritance diagram for IntValue:

Public Member Functions | |
| IntValue () | |
| Default constructor. | |
| IntValue (int i) | |
| Construct a BoolValue with the given value. | |
| virtual | ~IntValue () |
| Destructor is declared virtual, as it always should be. | |
| ValueType | GetType () const |
| Return this instance's type. | |
| virtual std::string | AsString () const |
| Gets the value as a string. | |
| virtual long | AsInt () const |
| Gets the value as an int. | |
| virtual double | AsFloat () const |
| Gets the value as a float. | |
| virtual bool | AsBool () const |
| Gets the value as a bool. | |
| IntValue::IntValue | ( | ) | [inline] |
Default constructor.
| IntValue::IntValue | ( | int | i | ) | [inline] |
| virtual IntValue::~IntValue | ( | ) | [inline, virtual] |
Destructor is declared virtual, as it always should be.
| ValueType IntValue::GetType | ( | ) | const [inline, virtual] |
| virtual std::string IntValue::AsString | ( | ) | const [inline, virtual] |
| virtual long IntValue::AsInt | ( | ) | const [inline, virtual] |
| virtual double IntValue::AsFloat | ( | ) | const [inline, virtual] |
| virtual bool IntValue::AsBool | ( | ) | const [inline, virtual] |
1.5.2