TimeRange Class Reference

#include <TimeRang.h>

Collaboration diagram for TimeRange:

Collaboration graph
[legend]
List of all members.

Public Types

enum  RangeType { RT_NEVER, RT_FOREVER }

Public Member Functions

 TimeRange ()
 TimeRange (RangeType rt)
 TimeRange (Time time)
 TimeRange (const TimeRange &other)
 TimeRange (Time start, Time end)
 ~TimeRange ()
TimeRangeoperator= (const TimeRange &other)
void Set (Time start, Time end)
void SetNever ()
void SetForever ()
Time GetLength () const
BOOL IsValid ()
BOOL IsIntersect (const TimeRange &range) const
BOOL IsTimeInRange (Time time) const
BOOL IsTimeWithinRange (Time time) const
BOOL IsRangeInRange (const TimeRange &range) const
BOOL IsActiveHere (Time time) const
BOOL operator== (const TimeRange &other)
BOOL operator!= (const TimeRange &other)
void operator|= (const TimeRange &other)
void operator|= (Time time)
void operator &= (const TimeRange &other)
void operator &= (Time time)
void operator+= (Time time)
TimeRange operator+ (Time time) const
void operator-= (Time time)
TimeRange operator- (Time time) const
void operator *= (float n)
TimeRange operator * (float n) const
void Union (Time time)
BOOL IsInstance ()

Public Attributes

Time m_start
Time m_end

Detailed Description

Definition at line 16 of file TimeRang.h.


Member Enumeration Documentation

enum TimeRange::RangeType
 

Enumerator:
RT_NEVER 
RT_FOREVER 

Definition at line 20 of file TimeRang.h.


Constructor & Destructor Documentation

TimeRange::TimeRange  )  [inline]
 

Definition at line 22 of file TimeRang.h.

References SetNever().

Here is the call graph for this function:

TimeRange::TimeRange RangeType  rt  )  [inline]
 

Definition at line 26 of file TimeRang.h.

References RT_FOREVER, RT_NEVER, SetForever(), and SetNever().

Here is the call graph for this function:

TimeRange::TimeRange Time  time  )  [inline]
 

Definition at line 37 of file TimeRang.h.

References m_end, and m_start.

TimeRange::TimeRange const TimeRange other  )  [inline]
 

Definition at line 42 of file TimeRang.h.

References m_end, and m_start.

TimeRange::TimeRange Time  start,
Time  end
[inline]
 

Definition at line 47 of file TimeRang.h.

References m_end, and m_start.

TimeRange::~TimeRange  )  [inline]
 

Definition at line 52 of file TimeRang.h.


Member Function Documentation

Time TimeRange::GetLength  )  const [inline]
 

Definition at line 75 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsActiveHere Time  time  )  const [inline]
 

Definition at line 99 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsInstance  )  [inline]
 

Definition at line 177 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsIntersect const TimeRange range  )  const [inline]
 

Definition at line 83 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsRangeInRange const TimeRange range  )  const [inline]
 

Definition at line 95 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsTimeInRange Time  time  )  const [inline]
 

Definition at line 87 of file TimeRang.h.

References m_end, and m_start.

Referenced by operator &=().

BOOL TimeRange::IsTimeWithinRange Time  time  )  const [inline]
 

Definition at line 91 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::IsValid  )  [inline]
 

Definition at line 79 of file TimeRang.h.

References m_end, and m_start.

void TimeRange::operator &= Time  time  )  [inline]
 

Definition at line 128 of file TimeRang.h.

References IsTimeInRange(), m_end, m_start, and SetNever().

Here is the call graph for this function:

void TimeRange::operator &= const TimeRange other  )  [inline]
 

Definition at line 121 of file TimeRang.h.

References m_end, m_start, MAX, MIN, and SetNever().

Here is the call graph for this function:

TimeRange TimeRange::operator * float  n  )  const [inline]
 

Definition at line 166 of file TimeRang.h.

void TimeRange::operator *= float  n  )  [inline]
 

Definition at line 161 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::operator!= const TimeRange other  )  [inline]
 

Definition at line 107 of file TimeRang.h.

TimeRange TimeRange::operator+ Time  time  )  const [inline]
 

Definition at line 143 of file TimeRang.h.

void TimeRange::operator+= Time  time  )  [inline]
 

Definition at line 137 of file TimeRang.h.

References m_end, m_start, and MAXTIME.

TimeRange TimeRange::operator- Time  time  )  const [inline]
 

Definition at line 155 of file TimeRang.h.

void TimeRange::operator-= Time  time  )  [inline]
 

Definition at line 149 of file TimeRang.h.

References m_end, m_start, and MINTIME.

TimeRange& TimeRange::operator= const TimeRange other  )  [inline]
 

Definition at line 54 of file TimeRang.h.

References m_end, and m_start.

BOOL TimeRange::operator== const TimeRange other  )  [inline]
 

Definition at line 103 of file TimeRang.h.

References m_end, and m_start.

void TimeRange::operator|= Time  time  )  [inline]
 

Definition at line 116 of file TimeRang.h.

References m_end, m_start, MAX, and MIN.

void TimeRange::operator|= const TimeRange other  )  [inline]
 

Definition at line 111 of file TimeRang.h.

References m_end, m_start, MAX, and MIN.

void TimeRange::Set Time  start,
Time  end
[inline]
 

Definition at line 60 of file TimeRang.h.

References m_end, and m_start.

void TimeRange::SetForever  )  [inline]
 

Definition at line 70 of file TimeRang.h.

References m_end, m_start, and MAXTIME.

Referenced by TimeRange().

void TimeRange::SetNever  )  [inline]
 

Definition at line 65 of file TimeRang.h.

References m_end, m_start, and MAXTIME.

Referenced by operator &=(), and TimeRange().

void TimeRange::Union Time  time  )  [inline]
 

Definition at line 172 of file TimeRang.h.

References m_end, m_start, MAX, and MIN.


Member Data Documentation

Time TimeRange::m_end
 

Definition at line 18 of file TimeRang.h.

Referenced by GetLength(), IsActiveHere(), IsInstance(), IsIntersect(), IsRangeInRange(), IsTimeInRange(), IsTimeWithinRange(), IsValid(), operator &=(), operator *=(), operator+=(), operator-=(), operator=(), operator==(), operator|=(), Set(), SetForever(), SetNever(), TimeRange(), and Union().

Time TimeRange::m_start
 

Definition at line 18 of file TimeRang.h.

Referenced by GetLength(), IsActiveHere(), IsInstance(), IsIntersect(), IsRangeInRange(), IsTimeInRange(), IsTimeWithinRange(), IsValid(), operator &=(), operator *=(), operator+=(), operator-=(), operator=(), operator==(), operator|=(), Set(), SetForever(), SetNever(), TimeRange(), and Union().


The documentation for this class was generated from the following file:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:47:04 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001