DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Member Functions | Private Attributes | Friends | List of all members
Diades::Utils::Interval Class Reference

#include <Interval.hh>

Public Member Functions

 Interval ()
 
 Interval (const string &minusInfinity, const string &plusInfinity)
 
 Interval (int min, const string &plusInfinity, bool open=false)
 
 Interval (const string &minusInfinity, int max, bool open=false)
 
 Interval (const Interval &interval)
 
 Interval (const Interval &i1, const Interval &i2)
 
 Interval (int min, int max)
 
 Interval (int min, int max, bool openMin, bool openMax)
 
Intervaloperator= (const Interval &interval)
 
bool operator== (const Interval &interval) const
 
virtual ~Interval ()
 
void setMin (int min, bool open)
 
void setMinusInfinity ()
 
void setPlusInfinity ()
 
void setMax (int max, bool open)
 
bool isIn (int x) const
 
string toTina () const
 
bool isValid () const
 
int lower () const
 
int upper () const
 
bool isOpen () const
 
bool isHalfOpen () const
 
bool isClosed () const
 
bool isLbOpen () const
 
bool isUbOpen () const
 
bool isBounded () const
 
bool isLbBounded () const
 
bool isUbBounded () const
 
bool isUnBounded () const
 
bool isLbUnBounded () const
 
bool isUbUnBounded () const
 

Private Attributes

int _min
 
int _max
 
bool _minInfinity
 
bool _maxInfinity
 
bool _minOpen
 
bool _maxOpen
 

Friends

ostream & operator<< (ostream &os, const Interval &interval)
 

Detailed Description

Definition at line 29 of file Interval.hh.

Constructor & Destructor Documentation

◆ Interval() [1/8]

Diades::Utils::Interval::Interval ( )

◆ Interval() [2/8]

Diades::Utils::Interval::Interval ( const string &  minusInfinity,
const string &  plusInfinity 
)

◆ Interval() [3/8]

Diades::Utils::Interval::Interval ( int  min,
const string &  plusInfinity,
bool  open = false 
)

◆ Interval() [4/8]

Diades::Utils::Interval::Interval ( const string &  minusInfinity,
int  max,
bool  open = false 
)

◆ Interval() [5/8]

Diades::Utils::Interval::Interval ( const Interval interval)

◆ Interval() [6/8]

Diades::Utils::Interval::Interval ( const Interval i1,
const Interval i2 
)

◆ Interval() [7/8]

Diades::Utils::Interval::Interval ( int  min,
int  max 
)

◆ Interval() [8/8]

Diades::Utils::Interval::Interval ( int  min,
int  max,
bool  openMin,
bool  openMax 
)

◆ ~Interval()

virtual Diades::Utils::Interval::~Interval ( )
virtual

Member Function Documentation

◆ isBounded()

bool Diades::Utils::Interval::isBounded ( ) const
inline

Definition at line 65 of file Interval.hh.

◆ isClosed()

bool Diades::Utils::Interval::isClosed ( ) const
inline

Definition at line 62 of file Interval.hh.

◆ isHalfOpen()

bool Diades::Utils::Interval::isHalfOpen ( ) const
inline

Definition at line 61 of file Interval.hh.

◆ isIn()

bool Diades::Utils::Interval::isIn ( int  x) const

◆ isLbBounded()

bool Diades::Utils::Interval::isLbBounded ( ) const
inline

Definition at line 66 of file Interval.hh.

◆ isLbOpen()

bool Diades::Utils::Interval::isLbOpen ( ) const
inline

Definition at line 63 of file Interval.hh.

◆ isLbUnBounded()

bool Diades::Utils::Interval::isLbUnBounded ( ) const
inline

Definition at line 69 of file Interval.hh.

◆ isOpen()

bool Diades::Utils::Interval::isOpen ( ) const
inline

Definition at line 60 of file Interval.hh.

◆ isUbBounded()

bool Diades::Utils::Interval::isUbBounded ( ) const
inline

Definition at line 67 of file Interval.hh.

◆ isUbOpen()

bool Diades::Utils::Interval::isUbOpen ( ) const
inline

Definition at line 64 of file Interval.hh.

◆ isUbUnBounded()

bool Diades::Utils::Interval::isUbUnBounded ( ) const
inline

Definition at line 70 of file Interval.hh.

References Diades::Utils::operator<<().

◆ isUnBounded()

bool Diades::Utils::Interval::isUnBounded ( ) const
inline

Definition at line 68 of file Interval.hh.

◆ isValid()

bool Diades::Utils::Interval::isValid ( ) const
inline

Definition at line 57 of file Interval.hh.

◆ lower()

int Diades::Utils::Interval::lower ( ) const
inline

Definition at line 58 of file Interval.hh.

◆ operator=()

Interval& Diades::Utils::Interval::operator= ( const Interval interval)

◆ operator==()

bool Diades::Utils::Interval::operator== ( const Interval interval) const

◆ setMax()

void Diades::Utils::Interval::setMax ( int  max,
bool  open 
)

◆ setMin()

void Diades::Utils::Interval::setMin ( int  min,
bool  open 
)

◆ setMinusInfinity()

void Diades::Utils::Interval::setMinusInfinity ( )

◆ setPlusInfinity()

void Diades::Utils::Interval::setPlusInfinity ( )

◆ toTina()

string Diades::Utils::Interval::toTina ( ) const

◆ upper()

int Diades::Utils::Interval::upper ( ) const
inline

Definition at line 59 of file Interval.hh.

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  os,
const Interval interval 
)
friend

Member Data Documentation

◆ _max

int Diades::Utils::Interval::_max
private

Definition at line 34 of file Interval.hh.

◆ _maxInfinity

bool Diades::Utils::Interval::_maxInfinity
private

Definition at line 36 of file Interval.hh.

◆ _maxOpen

bool Diades::Utils::Interval::_maxOpen
private

Definition at line 38 of file Interval.hh.

◆ _min

int Diades::Utils::Interval::_min
private

Definition at line 33 of file Interval.hh.

◆ _minInfinity

bool Diades::Utils::Interval::_minInfinity
private

Definition at line 35 of file Interval.hh.

◆ _minOpen

bool Diades::Utils::Interval::_minOpen
private

Definition at line 37 of file Interval.hh.


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