|
bpp-core
2.1.0
|
The Number object template class. More...
#include <Bpp/Numeric/Number.h>
Inheritance diagram for bpp::Number< T >:
Collaboration diagram for bpp::Number< T >: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... | |
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::Clonable.
Definition at line 84 of file Number.h.
References bpp::Number< T >::_value.
|
inline |
Get the value of this number.
Definition at line 94 of file Number.h.
References bpp::Number< T >::_value.
|
inline |
Definition at line 71 of file Number.h.
References bpp::Number< T >::_value.
|
protected |
The value of this parameter.
Definition at line 58 of file Number.h.
Referenced by bpp::Number< T >::clone(), bpp::Number< T >::getValue(), and bpp::Number< T >::operator=().