bpp-core3  3.0.0
bpp::BppInteger Class Reference

An object wrapper for integer values. More...

#include <Bpp/Numeric/Number.h>

+ Inheritance diagram for bpp::BppInteger:
+ Collaboration diagram for bpp::BppInteger:

Public Member Functions

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

Protected Attributes

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

Detailed Description

An object wrapper for integer values.

Definition at line 161 of file Number.h.

Constructor & Destructor Documentation

◆ BppInteger()

bpp::BppInteger::BppInteger ( int  value = 0)
inline

Build a new BppInteger number object with a specific value.

Parameters
valueThe value that the Number must have.

Definition at line 169 of file Number.h.

Referenced by clone().

◆ ~BppInteger()

virtual bpp::BppInteger::~BppInteger ( )
inlinevirtual

Definition at line 171 of file Number.h.

Member Function Documentation

◆ clone()

BppInteger* bpp::BppInteger::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 179 of file Number.h.

References BppInteger().

◆ getValue()

int bpp::Number< int >::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< int >::toString ( ) const
inlinevirtualinherited

Implements bpp::BppNumberI.

Definition at line 130 of file Number.h.

Member Data Documentation

◆ value_

int bpp::Number< int >::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: