|
jaula API Reference version 1.4.0
|
Class for handling numeric (int) values. More...
#include <jaula_value_number_int.h>
Public Member Functions | |
| long | getData (void) const |
| Retrieves the value contained by the instance. | |
| virtual void | repr (std::ostream &ostr) const |
| Represents the instance in a stream. | |
| void | set (long data) |
| Establishes the contents of the instance. | |
| virtual void | set (Value const &origin) throw (Bad_Data_Type) |
| Copies the contents of one instance into another. | |
| Value_Number_Int (long data=0) | |
| Constructor. | |
| virtual | ~Value_Number_Int () |
| Destructor. | |
Private Attributes | |
| long | data_ |
| Container to hold the value itself. | |
Class for handling numeric (int) values.
| JAULA::Value_Number_Int::Value_Number_Int | ( | long | data = 0 | ) |
Constructor.
| data | Initial value to be hold by the conatiner |
| JAULA::Value_Number_Int::~Value_Number_Int | ( | ) | [virtual] |
Destructor.
| long JAULA::Value_Number_Int::getData | ( | void | ) | const |
Retrieves the value contained by the instance.
References data_.
Referenced by JAULA::Value::duplicate(), and set().
| void JAULA::Value_Number_Int::repr | ( | std::ostream & | ostr | ) | const [virtual] |
Represents the instance in a stream.
| ostr | Stream where the instance is to be represented. |
Implements JAULA::Value.
References data_.
| void JAULA::Value_Number_Int::set | ( | long | data | ) |
| void JAULA::Value_Number_Int::set | ( | Value const & | origin | ) | throw (Bad_Data_Type) [virtual] |
Copies the contents of one instance into another.
| origin | Reference to the value to be copied. |
| Bad_Data_Type | This exception is launched in case that origin and destination value types are different. |
Reimplemented from JAULA::Value.
References JAULA::Exception::addOrigin(), getData(), and JAULA::Value::set().
long JAULA::Value_Number_Int::data_ [private] |