Public Member Functions

TimeSegment Class Reference
[GUIDO Mapping]

a time segment definition and operations More...

List of all members.

Public Member Functions

 TimeSegment ()
 TimeSegment (const TimeSegment &s)
 TimeSegment (const GuidoDate &a, const GuidoDate &b)
virtual ~TimeSegment ()
void print (std::ostream &out) const
 print the time segment
bool empty () const
 check for empty segment
bool intersect (const TimeSegment &ts) const
 check for segments intersection
bool include (const GuidoDate &date) const
 check for date inclusion
bool include (const TimeSegment &ts) const
 check for segment inclusion
bool operator< (const TimeSegment &ts) const
 order relationship: the smaller is the smaller first date
bool operator== (const TimeSegment &ts) const
TimeSegment operator& (const TimeSegment &ts) const
 intersection operation (may return an arbitrary empty segment)

Detailed Description

a time segment definition and operations


Constructor & Destructor Documentation

TimeSegment (  ) [inline]
TimeSegment ( const TimeSegment s ) [inline]
TimeSegment ( const GuidoDate a,
const GuidoDate b 
) [inline]
virtual ~TimeSegment (  ) [inline, virtual]

Member Function Documentation

void print ( std::ostream &  out ) const

print the time segment

Referenced by operator<<().

bool empty (  ) const

check for empty segment

bool intersect ( const TimeSegment ts ) const

check for segments intersection

bool include ( const GuidoDate date ) const

check for date inclusion

bool include ( const TimeSegment ts ) const

check for segment inclusion

bool operator< ( const TimeSegment ts ) const

order relationship: the smaller is the smaller first date

bool operator== ( const TimeSegment ts ) const
TimeSegment operator& ( const TimeSegment ts ) const

intersection operation (may return an arbitrary empty segment)