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

◆ bound_t

Enumerator
BOUND_NONE 
BOUND_INF 
BOUND_SUP 
BOUND_DOUBLE 
BOUND_TWIN 

Constructor & Destructor Documentation

◆ Bound() [1/5]

soth::Bound::Bound ( void  )

◆ Bound() [2/5]

soth::Bound::Bound ( const Bound clone)

◆ Bound() [3/5]

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

References BOUND_DOUBLE, BOUND_NONE, and type.

◆ Bound() [4/5]

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

◆ Bound() [5/5]

soth::Bound::Bound ( const double &  valTwin)

Member Function Documentation

◆ check() [1/2]

Bound::bound_t soth::Bound::check ( const double &  val,
const double &  EPSILON = 0 
) const

◆ check() [2/2]

Bound::bound_t soth::Bound::check ( const double &  val,
std::pair< double, double >  damp,
const double &  EPSILON = 0 
) const

◆ checkSaturation()

Bound::bound_t soth::Bound::checkSaturation ( const double &  val,
const double &  EPSILON 
) const

◆ distance()

double soth::Bound::distance ( const double &  val) const

◆ getBound()

const double & soth::Bound::getBound ( bound_t  type) const

◆ getType()

const bound_t& soth::Bound::getType ( void  ) const
inline

◆ operator=() [1/3]

Bound & soth::Bound::operator= ( const Bound clone)

References type, valInf, and valSup.

◆ operator=() [2/3]

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

References BOUND_TWIN, type, and valTwin.

◆ operator=() [3/3]

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

References BOUND_DOUBLE, type, valInf, and valSup.

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ type

bound_t soth::Bound::type
protected

◆ valInf

double soth::Bound::valInf
protected

◆ valSup

double soth::Bound::valSup
protected

◆ valTwin

double& soth::Bound::valTwin
protected