bpp-core3  3.0.0
bpp::BppDouble Class Reference

An object wrapper for double values. More...

#include <Bpp/Numeric/Number.h>

+ Inheritance diagram for bpp::BppDouble:
+ Collaboration diagram for bpp::BppDouble:

Public Member Functions

 BppDouble (double value=0)
 Build a new BppDouble number object with a specific value. More...
 
virtual ~BppDouble ()
 
double getValue () const
 Get the value of this number. More...
 
std::string toString () const
 
The Clonable interface.
BppDoubleclone () const
 Create a copy of this object and send a pointer to it. More...
 

Protected Attributes

double value_
 The value of this parameter. More...
 

Detailed Description

An object wrapper for double values.

Definition at line 136 of file Number.h.

Constructor & Destructor Documentation

◆ BppDouble()

bpp::BppDouble::BppDouble ( double  value = 0)
inline

Build a new BppDouble number object with a specific value.

Parameters
valueThe value that the Number must have.

Definition at line 144 of file Number.h.

Referenced by clone().

◆ ~BppDouble()

virtual bpp::BppDouble::~BppDouble ( )
inlinevirtual

Definition at line 146 of file Number.h.

Member Function Documentation

◆ clone()

BppDouble* bpp::BppDouble::clone ( ) const
inlinevirtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::BppNumberI.

Definition at line 154 of file Number.h.

References BppDouble().

◆ getValue()

double bpp::Number< double >::getValue ( ) const
inlineinherited

Get the value of this number.

Returns
The value of this number.

Definition at line 128 of file Number.h.

◆ toString()

std::string bpp::Number< double >::toString ( ) const
inlinevirtualinherited

Implements bpp::BppNumberI.

Definition at line 130 of file Number.h.

Member Data Documentation

◆ value_

double bpp::Number< double >::value_
protectedinherited

The value of this parameter.

Definition at line 95 of file Number.h.


The documentation for this class was generated from the following file: