ScEng::TimeInterval Class Reference

#include <time.h>

List of all members.

Public Member Functions

void Set (int t)
 Sets the start and end times of the valid_time_range to the same instant time.
void Set (int s, int e)
 Sets the start and end times of the valid_time_range.
void SetStart (int s)
 Sets the start time of the valid_time_range.
void SetEnd (int e)
 Sets the end time of the valid_time_range.
int GetStart () const
 Gets the start time of the valid_time_range.
int GetEnd () const
 Gets the end time of the valid_time_range.
TimeIntervaloperator= (const TimeInterval &vtr)
 Assigment operator.
bool operator== (const TimeInterval &other_valid_time_range)
 Identity Operator.
bool operator!= (const TimeInterval &other_valid_time_range)
 Inequality Operator.
TimeInterval TimeInterval::operator & (const TimeInterval vtr) const
 AND operator. Intersects two intervals, returning a new valid_time_range.
bool Valid (int time)
 Returns true if time is inside the valid_time_range.
bool Valid (const TimeInterval other_valid_time_range)
 Returns true if valid_time_range is inside the valid_time_range.

Static Public Member Functions

static TimeInterval Forever ()
 Returns an always valid valid_time_range.
static TimeInterval Never ()
 Returns an always invalid valid_time_range.


Detailed Description

This class describes a TimeInterval. A TimeInterval defines a time range. During this time range the status is supposed to be valid.


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 10:49:23 2007 for SceneEngine by  doxygen 1.5.1-p1