Overture  Version 25
Public Member Functions | Protected Attributes | Friends | List of all members
Bound Class Reference

#include <Bound.h>

Collaboration diagram for Bound:
Collaboration graph
[legend]

Public Member Functions

 Bound ()
 
 Bound (const real x0)
 
 Bound (const int i)
 
 Bound (const Fraction f0)
 
virtual ~Bound ()
 
virtual int get (const GenericDataBase &dir, const aString &name)
 
virtual int put (GenericDataBase &dir, const aString &name) const
 
void set (const real value)
 
void set (const int value)
 
void set (const int n, const int d)
 
void get (boundType &bndType, real &rvalue, Fraction &fvalue) const
 
bool isFinite ()
 
 operator real ()
 

Protected Attributes

boundType bt
 
real x
 
Fraction f
 

Friends

Bound operator+ (const Bound b1, const Bound b2)
 
Bound operator- (const Bound b1, const Bound b2)
 
Bound operator* (const Bound b1, const Bound b2)
 
Bound operator/ (const Bound b1, const Bound b2)
 
int operator<= (const Bound b1, const Bound b2)
 
int operator< (const Bound b1, const Bound b2)
 
int operator>= (const Bound b1, const Bound b2)
 
int operator> (const Bound b1, const Bound b2)
 
int operator== (const Bound b1, const Bound b2)
 
ostream & operator<< (ostream &, const Bound &)
 

Constructor & Destructor Documentation

Bound::Bound ( )
inline

References bt, f, null, and x.

Bound::Bound ( const real  x0)
inline

References bt, f, realNumber, and x.

Bound::Bound ( const int  i)
inline

References bt, f, fraction, and x.

Bound::Bound ( const Fraction  f0)
inline

References bt, f, and fraction.

virtual Bound::~Bound ( )
inlinevirtual

Member Function Documentation

int Bound::get ( const GenericDataBase dir,
const aString name 
)
virtual
void Bound::get ( boundType bndType,
real rvalue,
Fraction fvalue 
) const

References bt, f, fraction, realNumber, and x.

bool Bound::isFinite ( )
Bound::operator real ( )

References fraction, null, REAL_MAX, realNumber, and x.

int Bound::put ( GenericDataBase dir,
const aString name 
) const
virtual
void Bound::set ( const real  value)
inline

References bt, realNumber, and x.

void Bound::set ( const int  value)
inline

References bt, f, and fraction.

void Bound::set ( const int  n,
const int  d 
)
inline

References bt, f, and fraction.

Friends And Related Function Documentation

Bound operator* ( const Bound  b1,
const Bound  b2 
)
friend
Bound operator+ ( const Bound  b1,
const Bound  b2 
)
friend
Bound operator- ( const Bound  b1,
const Bound  b2 
)
friend
Bound operator/ ( const Bound  b1,
const Bound  b2 
)
friend
int operator< ( const Bound  b1,
const Bound  b2 
)
friend
ostream& operator<< ( ostream &  os,
const Bound b 
)
friend
int operator<= ( const Bound  b1,
const Bound  b2 
)
friend
int operator== ( const Bound  b1,
const Bound  b2 
)
friend
int operator> ( const Bound  b1,
const Bound  b2 
)
friend
int operator>= ( const Bound  b1,
const Bound  b2 
)
friend

Member Data Documentation

boundType Bound::bt
protected
Fraction Bound::f
protected
real Bound::x
protected

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