bpp-core3
3.0.0
|
The Number object template class. More...
#include <Bpp/Numeric/Number.h>
Public Member Functions | |
Number (const T &value=0) | |
Build a new Number object with a specific value. More... | |
virtual | ~Number () |
Number< T > & | operator= (const T &t) |
T | getValue () const |
Get the value of this number. More... | |
std::string | toString () const |
The Clonable interface. | |
Number< T > * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
Protected Attributes | |
T | value_ |
The value of this parameter. More... | |
The Number object template class.
This template class may be used to deal with number in an object way.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::BppNumberI.
Definition at line 119 of file Number.h.
References bpp::Number< T >::value_.
|
inline |
Get the value of this number.
Definition at line 128 of file Number.h.
References bpp::Number< T >::value_.
|
inline |
Definition at line 107 of file Number.h.
References bpp::Number< T >::value_.
|
inlinevirtual |
Implements bpp::BppNumberI.
Definition at line 130 of file Number.h.
References bpp::TextTools::toString(), and bpp::Number< T >::value_.
|
protected |
The value of this parameter.
Definition at line 95 of file Number.h.
Referenced by bpp::Number< T >::clone(), bpp::Number< T >::getValue(), bpp::Number< T >::operator=(), and bpp::Number< T >::toString().