All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
soth::Bound Class Reference

#include <Bound.hpp>

Public Types

enum  bound_t {
  BOUND_NONE,
  BOUND_INF,
  BOUND_SUP,
  BOUND_DOUBLE,
  BOUND_TWIN
}
 

Public Member Functions

 Bound (void)
 
 Bound (const Bound &clone)
 
 Bound (const double &val, bound_t type)
 
 Bound (const double &inValInf, const double &inValSup)
 
 Bound (const double &valTwin)
 
const bound_tgetType (void) const
 
const double & getBound (bound_t type) const
 
bound_t check (const double &val, const double &EPSILON=0) const
 
bound_t check (const double &val, std::pair< double, double > damp, const double &EPSILON=0) const
 
bound_t checkSaturation (const double &val, const double &EPSILON) const
 
double distance (const double &val) const
 
Boundoperator= (const Bound &clone)
 
Boundoperator= (const double &val)
 
Boundoperator= (const std::pair< double, double > &val)
 

Protected Attributes

bound_t type
 
double valInf
 
double valSup
 
double & valTwin
 

Friends

SOTH_EXPORT friend std::ostream & operator<< (std::ostream &os, const Bound &)
 

Member Enumeration Documentation

Enumerator
BOUND_NONE 
BOUND_INF 
BOUND_SUP 
BOUND_DOUBLE 
BOUND_TWIN 

Constructor & Destructor Documentation

soth::Bound::Bound ( void  )
soth::Bound::Bound ( const Bound clone)
soth::Bound::Bound ( const double &  val,
bound_t  type 
)

References BOUND_DOUBLE, BOUND_NONE, and type.

soth::Bound::Bound ( const double &  inValInf,
const double &  inValSup 
)
soth::Bound::Bound ( const double &  valTwin)

Member Function Documentation

Bound::bound_t soth::Bound::check ( const double &  val,
const double &  EPSILON = 0 
) const
Bound::bound_t soth::Bound::check ( const double &  val,
std::pair< double, double >  damp,
const double &  EPSILON = 0 
) const
Bound::bound_t soth::Bound::checkSaturation ( const double &  val,
const double &  EPSILON 
) const
double soth::Bound::distance ( const double &  val) const
const double & soth::Bound::getBound ( bound_t  type) const
const bound_t& soth::Bound::getType ( void  ) const
inline
Bound & soth::Bound::operator= ( const Bound clone)

References type, valInf, and valSup.

Bound & soth::Bound::operator= ( const double &  val)

References BOUND_TWIN, type, and valTwin.

Bound & soth::Bound::operator= ( const std::pair< double, double > &  val)

References BOUND_DOUBLE, type, valInf, and valSup.

Friends And Related Function Documentation

SOTH_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const Bound b 
)
friend

Member Data Documentation

bound_t soth::Bound::type
protected
double soth::Bound::valInf
protected
double soth::Bound::valSup
protected
double& soth::Bound::valTwin
protected