41 #ifndef BPP_NUMERIC_NUMBER_H
42 #define BPP_NUMERIC_NUMBER_H
46 #include "../Clonable.h"
47 #include "../Text/TextTools.h"
82 virtual std::string
toString()
const {
return "NaN"; }
An object wrapper for double values.
BppDouble(double value=0)
Build a new BppDouble number object with a specific value.
BppDouble * clone() const
Create a copy of this object and send a pointer to it.
An object wrapper for integer values.
BppInteger * clone() const
Create a copy of this object and send a pointer to it.
BppInteger(int value=0)
Build a new BppInteger number object with a specific value.
virtual std::string toString() const
virtual BppNotANumber * clone() const
Create a copy of this object and send a pointer to it.
virtual BppNumberI * clone() const =0
Create a copy of this object and send a pointer to it.
virtual std::string toString() const =0
An object wrapper for unsigned integer values.
BppUnsignedInteger * clone() const
Create a copy of this object and send a pointer to it.
virtual ~BppUnsignedInteger()
BppUnsignedInteger(unsigned int value=0)
Build a new BppUnsignedInteger number object with a specific value.
The Clonable interface (allow an object to be cloned).
The Number object template class.
T value_
The value of this parameter.
Number(const T &value=0)
Build a new Number object with a specific value.
Number< T > & operator=(const T &t)
std::string toString() const
Number< T > * clone() const
Create a copy of this object and send a pointer to it.
T getValue() const
Get the value of this number.
std::string toString(T t)
General template method to convert to a string.