1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::Interval Class Reference

#include <Interval.hpp>

Inheritance diagram for gstlrn::Interval:
gstlrn::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 ()
 
String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable.
 
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)
 
 getBounds () const
 
bool isValid () const
 
bool isDisjoint (const Interval &m) const
 
- Public Member Functions inherited from gstlrn::AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (Id level) const final
 

Constructor & Destructor Documentation

◆ Interval() [1/2]

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

◆ Interval() [2/2]

gstlrn::Interval::Interval ( const Interval m)

◆ ~Interval()

gstlrn::Interval::~Interval ( )
virtual

Member Function Documentation

◆ getBounds()

gstlrn::Interval::getBounds ( ) const

◆ getMaxIncluded()

bool gstlrn::Interval::getMaxIncluded ( ) const
inline

◆ getMinIncluded()

bool gstlrn::Interval::getMinIncluded ( ) const
inline

◆ getVmax()

double gstlrn::Interval::getVmax ( ) const
inline

◆ getVmin()

double gstlrn::Interval::getVmin ( ) const
inline

◆ init()

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

◆ isDisjoint()

bool gstlrn::Interval::isDisjoint ( const Interval m) const

◆ isInside()

bool gstlrn::Interval::isInside ( double  value) const

◆ isMaxDefined()

bool gstlrn::Interval::isMaxDefined ( ) const
inline

◆ isMinDefined()

bool gstlrn::Interval::isMinDefined ( ) const
inline

◆ isOutsideAbove()

bool gstlrn::Interval::isOutsideAbove ( double  value) const

◆ isOutsideBelow()

bool gstlrn::Interval::isOutsideBelow ( double  value) const

◆ isValid()

bool gstlrn::Interval::isValid ( ) const

◆ operator=()

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

◆ setMaxIncluded()

void gstlrn::Interval::setMaxIncluded ( bool  maxIncluded)
inline

◆ setMinIncluded()

void gstlrn::Interval::setMinIncluded ( bool  minIncluded)
inline

◆ setVmax()

void gstlrn::Interval::setVmax ( double  vmax)
inline

◆ setVmin()

void gstlrn::Interval::setVmin ( double  vmin)
inline

◆ toString()

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

Interface for AStringable.

Reimplemented from gstlrn::AStringable.


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