Scippy

SoPlex

Sequential object-oriented simPlex

Rational::Private Class Reference

Defines the "Pimpl"-class Private. More...

#include <rational.h>

Public Member Functions

 Private ()
 default constructor More...
 
 Private (const Private &p)
 copy constructor More...
 
 Private (const long double &r)
 constructor from long double More...
 
 Private (const double &r)
 constructor from double More...
 
 Private (const int &i)
 constructor from int More...
 
 Private (const mpq_t &q)
 constructor from mpq_t (GMP only) More...
 
 ~Private ()
 constructor from boost number More...
 
Privateoperator= (const Private &p)
 assignment operator More...
 
Privateoperator= (const long double &r)
 assignment operator from long double More...
 
Privateoperator= (const double &r)
 assignment operator from double More...
 
Privateoperator= (const int &i)
 assignment operator from int More...
 
Privateoperator= (const mpq_t &q)
 assignment operator from mpq_t More...
 
Private *& prev ()
 previous Private element More...
 
Private *const & prev () const
 previous Private element More...
 
Private *& next ()
 next Private element More...
 
Private *const & next () const
 next Private element More...
 

Public Attributes

mpq_t privatevalue
 actual value of the Rational object More...
 
Privatetheprev
 pointer to the previous element in the list More...
 
Privatethenext
 pointer to the next element in the list More...
 

Detailed Description

Defines the "Pimpl"-class Private.

Definition at line 634 of file rational.h.

Constructor & Destructor Documentation

◆ Private() [1/6]

Private ( )

default constructor

Definition at line 643 of file rational.h.

◆ Private() [2/6]

Private ( const Private p)

copy constructor

Definition at line 651 of file rational.h.

References Rational::Private::privatevalue.

◆ Private() [3/6]

Private ( const long double &  r)

constructor from long double

Definition at line 662 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ Private() [4/6]

Private ( const double &  r)

constructor from double

Definition at line 681 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ Private() [5/6]

Private ( const int &  i)

constructor from int

Definition at line 700 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ Private() [6/6]

Private ( const mpq_t &  q)

constructor from mpq_t (GMP only)

Definition at line 719 of file rational.h.

◆ ~Private()

~Private ( )

constructor from boost number

destructor

Definition at line 744 of file rational.h.

Referenced by Rational::~Rational().

Member Function Documentation

◆ next() [1/2]

Private*& next ( )

next Private element

Definition at line 919 of file rational.h.

◆ next() [2/2]

◆ operator=() [1/5]

Private& operator= ( const Private p)

assignment operator

Definition at line 750 of file rational.h.

References Rational::Private::privatevalue.

◆ operator=() [2/5]

Private& operator= ( const long double &  r)

assignment operator from long double

Definition at line 765 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ operator=() [3/5]

Private& operator= ( const double &  r)

assignment operator from double

Definition at line 803 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ operator=() [4/5]

Private& operator= ( const int &  i)

assignment operator from int

Definition at line 841 of file rational.h.

References Rational::dpointer, Rational::NEGONE, Rational::POSONE, Rational::Private::privatevalue, and Rational::ZERO.

◆ operator=() [5/5]

Private& operator= ( const mpq_t &  q)

assignment operator from mpq_t

Definition at line 879 of file rational.h.

References Rational::operator=().

◆ prev() [1/2]

Private*& prev ( )

previous Private element

Definition at line 907 of file rational.h.

◆ prev() [2/2]

Private* const& prev ( ) const

previous Private element

Definition at line 913 of file rational.h.

Member Data Documentation

◆ privatevalue

◆ thenext

Private* thenext

pointer to the next element in the list

Definition at line 640 of file rational.h.

◆ theprev

Private* theprev

pointer to the previous element in the list

Definition at line 639 of file rational.h.