gstlearn  1.0.0
CCC
Interval Class Reference

#include <Interval.hpp>

Inheritance diagram for Interval:
AStringable

Public Member Functions

 Interval (double vmin=TEST, double vmax=TEST, bool mininc=true, bool maxinc=false)
 
 Interval (const Interval &m)
 
Intervaloperator= (const Interval &m)
 
virtual ~Interval ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (double vmin=TEST, double vmax=TEST, bool mininc=true, bool maxinc=false)
 
bool isMinDefined () const
 
bool isMaxDefined () const
 
bool isInside (double value) const
 
bool isOutsideBelow (double value) const
 
bool isOutsideAbove (double value) const
 
double getVmax () const
 
void setVmax (double vmax)
 
double getVmin () const
 
void setVmin (double vmin)
 
bool getMaxIncluded () const
 
void setMaxIncluded (bool maxIncluded)
 
bool getMinIncluded () const
 
void setMinIncluded (bool minIncluded)
 
VectorDouble getBounds () const
 
bool isValid () const
 
bool isDisjoint (const Interval &m) const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Private Member Functions

void _modifyUnbounded ()
 
bool _isValidInterval (void)
 

Private Attributes

double _vmin
 
double _vmax
 
bool _minIncluded
 
bool _maxIncluded
 

Constructor & Destructor Documentation

◆ Interval() [1/2]

Interval::Interval ( double  vmin = TEST,
double  vmax = TEST,
bool  mininc = true,
bool  maxinc = false 
)

◆ Interval() [2/2]

Interval::Interval ( const Interval m)

◆ ~Interval()

Interval::~Interval ( )
virtual

Member Function Documentation

◆ _isValidInterval()

bool Interval::_isValidInterval ( void  )
private

◆ _modifyUnbounded()

void Interval::_modifyUnbounded ( void  )
private

◆ getBounds()

VectorDouble Interval::getBounds ( ) const

◆ getMaxIncluded()

bool Interval::getMaxIncluded ( ) const
inline

◆ getMinIncluded()

bool Interval::getMinIncluded ( ) const
inline

◆ getVmax()

double Interval::getVmax ( ) const
inline

◆ getVmin()

double Interval::getVmin ( ) const
inline

◆ init()

void Interval::init ( double  vmin = TEST,
double  vmax = TEST,
bool  mininc = true,
bool  maxinc = false 
)

◆ isDisjoint()

bool Interval::isDisjoint ( const Interval m) const

◆ isInside()

bool Interval::isInside ( double  value) const

◆ isMaxDefined()

bool Interval::isMaxDefined ( ) const
inline

◆ isMinDefined()

bool Interval::isMinDefined ( ) const
inline

◆ isOutsideAbove()

bool Interval::isOutsideAbove ( double  value) const

◆ isOutsideBelow()

bool Interval::isOutsideBelow ( double  value) const

◆ isValid()

bool Interval::isValid ( ) const

◆ operator=()

Interval & Interval::operator= ( const Interval m)

◆ setMaxIncluded()

void Interval::setMaxIncluded ( bool  maxIncluded)
inline

◆ setMinIncluded()

void Interval::setMinIncluded ( bool  minIncluded)
inline

◆ setVmax()

void Interval::setVmax ( double  vmax)
inline

◆ setVmin()

void Interval::setVmin ( double  vmin)
inline

◆ toString()

String Interval::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from AStringable.

Member Data Documentation

◆ _maxIncluded

bool Interval::_maxIncluded
private

◆ _minIncluded

bool Interval::_minIncluded
private

◆ _vmax

double Interval::_vmax
private

◆ _vmin

double Interval::_vmin
private

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