All Classes Functions Friends
Public Member Functions | Friends | List of all members
Intervals Class Reference

Public Member Functions

 Intervals ()
 
 Intervals (int v)
 
 Intervals (const Intervals &b)
 
 ~Intervals ()
 
Intervalsoperator= (Intervals b)
 
int numberOfVariables ()
 
int numberOfIntervals ()
 
void pushInterval (Interval pI)
 
void pushInterval (lfixq l, lfixq r)
 
void pushInterval (double l, double r)
 
void popInterval ()
 
void clear ()
 
Intervalinterval (int k, int l=0)
 
Intervals root (int k)
 
void setVariableNames (std::vector< std::string > xs)
 
void copyFrom (Intervals &pIs, int k)
 
void scale (int k)
 
void transformLeft ()
 
void transformRight ()
 
void negate ()
 
void concatenate (Intervals &pIs)
 
bool isExactEqual (Intervals &pIs)
 

Friends

std::ostream & operator<< (std::ostream &out, Intervals &a)
 

Constructor & Destructor Documentation

Intervals::Intervals ( )
inline

Construct intervals

Parameters
Intervals::Intervals ( int  v)
inline

Construct intervals with number of variates

Parameters
v,:Number of variates
Intervals::Intervals ( const Intervals b)
inline

Copy construct

Parameters
b,:Intervals
Intervals::~Intervals ( )
inline

Destroy intervals

Parameters

Member Function Documentation

void Intervals::clear ( )
inline

Clear all the intervals

Parameters
void Intervals::concatenate ( Intervals pIs)

Merge another intervals into the end of the current one

Parameters
pIs,:A list of intervals
void Intervals::copyFrom ( Intervals pIs,
int  k 
)

Copy the k-th root

Parameters
pIs,:A list of roots
k,:Offset of roots
Interval* Intervals::interval ( int  k,
int  l = 0 
)
inline

Get a root of a variate

Parameters
k,:Offset of roots
l,:Offset of variables in an ascending order
void Intervals::negate ( )

Negate each interval and re-sort

Parameters
int Intervals::numberOfIntervals ( )
inline

Get the number of roots

Parameters
int Intervals::numberOfVariables ( )
inline

Get number of variables

Parameters
Intervals& Intervals::operator= ( Intervals  b)
inline

Overload operator =

Parameters
b,:Intervals
void Intervals::popInterval ( )
inline

Pop the last interval

Parameters
void Intervals::pushInterval ( Interval  pI)
inline

Push an interval to the end of the list

Parameters
pI,:An interval
void Intervals::pushInterval ( lfixq  l,
lfixq  r 
)
inline

Push an interval to the end of the list

Parameters
l,:Interval's left
r,:Interval's right
Intervals Intervals::root ( int  k)
inline

Get a root of variates

Parameters
k,:Offset of roots
void Intervals::scale ( int  k)

Scale to 2^k

Parameters
k,:The power of 2
void Intervals::setVariableNames ( std::vector< std::string >  xs)
inline

Set variable names

Parameters
xs,:Variable names
void Intervals::transformLeft ( )

Scale to that over 2

Parameters
void Intervals::transformRight ( )

Scale to that plus 1 and then over 2

Parameters

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
Intervals a 
)
friend

Overload stream operator <<

Parameters
out,:Stream object
a,:Intervals

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