bpp-core3  3.0.0
bpp::BppNumberI Class Referenceabstract

The Number interface. More...

#include <Bpp/Numeric/Number.h>

+ Inheritance diagram for bpp::BppNumberI:
+ Collaboration diagram for bpp::BppNumberI:

Public Member Functions

 BppNumberI ()
 
virtual ~BppNumberI ()
 
virtual BppNumberIclone () const =0
 Create a copy of this object and send a pointer to it. More...
 
virtual std::string toString () const =0
 

Detailed Description

The Number interface.

This template class may be used to deal with number in an object way.

Definition at line 20 of file Number.h.

Constructor & Destructor Documentation

◆ BppNumberI()

bpp::BppNumberI::BppNumberI ( )
inline

Definition at line 23 of file Number.h.

◆ ~BppNumberI()

virtual bpp::BppNumberI::~BppNumberI ( )
inlinevirtual

Definition at line 25 of file Number.h.

References clone(), and toString().

Member Function Documentation

◆ clone()

virtual BppNumberI* bpp::BppNumberI::clone ( ) const
pure virtual

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

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Implemented in bpp::BppUnsignedInteger, bpp::BppInteger, bpp::BppDouble, bpp::Number< T >, bpp::Number< double >, bpp::Number< int >, bpp::Number< unsigned int >, and bpp::BppNotANumber.

Referenced by ~BppNumberI().

◆ toString()

virtual std::string bpp::BppNumberI::toString ( ) const
pure virtual

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