libdballe  6.8
Public Member Functions | Static Public Member Functions | Data Fields
dballe::Trange Struct Reference

Public Member Functions

 Trange (int pind=MISSING_INT, int p1=MISSING_INT, int p2=MISSING_INT)
 
 Trange (const char *pind, const char *p1=NULL, const char *p2=NULL)
 
bool operator== (const Trange &tr) const
 
bool operator!= (const Trange &tr) const
 
bool operator< (const Trange &t) const
 
bool operator> (const Trange &t) const
 
int compare (const Trange &t) const
 Compare two Trange strutures, for use in sorting. More...
 
std::string describe () const
 Return a string description of this time range.
 
void format (std::ostream &out, const char *undef="-") const
 

Static Public Member Functions

static Trange instant ()
 
static Trange ana ()
 

Data Fields

int pind
 Time range type indicator. More...
 
int p1
 Time range P1 indicator. More...
 
int p2
 Time range P2 indicator. More...
 

Member Function Documentation

int dballe::Trange::compare ( const Trange t) const
inline

Compare two Trange strutures, for use in sorting.

Returns
-1 if *this < t, 0 if *this == t, 1 if *this > t

References p1, p2, and pind.

Referenced by dballe::memdb::LevTr::compare().

Field Documentation

int dballe::Trange::p1

Time range P1 indicator.

See Time range values.

Referenced by compare().

int dballe::Trange::p2

Time range P2 indicator.

See Time range values.

Referenced by compare().

int dballe::Trange::pind

Time range type indicator.

See Time range values.

Referenced by compare().


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