Time Class Reference

#include <HashTime.h>

List of all members.

Public Types

enum  { TICKSPERSECOND = 135000 }
enum  TimeType { TT_MINSTEP, TT_MAX }

Public Member Functions

 Time ()
 Time (double seconds)
 Time (double frame, double fps)
 Time (TimeType rt)
Timeoperator= (const double seconds)
Timeoperator= (Time other)
BOOL operator== (Time other) const
BOOL operator!= (Time other) const
BOOL operator> (Time other) const
BOOL operator< (Time other) const
BOOL operator>= (Time other) const
BOOL operator<= (Time other) const
Time operator+ (Time other) const
Time operator- (Time other) const
Time operator * (Time other) const
Time operator * (double n) const
float operator/ (Time other) const
Time operator/ (double n) const
Time operator% (Time other) const
void operator+= (Time other)
void operator-= (Time other)
void operator *= (Time other)
void operator *= (double n)
void operator/= (Time other)
void operator/= (double n)
Time operator- () const
float GetSeconds () const
double GetSecondsDouble () const
void SetSeconds (double seconds)
long GetTicks () const
void SetTicks (long ticks)
BOOL IsZero () const
float GetFrame (double fps) const
int GetFrameInt (double fps) const
void SetFrame (double frame, double fps)
void StepFrame (double fps)
void StepFrames (double frames, double fps)
void SnapToFrame (double fps)
void FloorToFrame (double fps)
void CeilToFrame (double fps)
float GetCell (double fps) const
void SetCell (double cell, double fps)
String ToString (double fps, int timeunits, BOOL treatasdelta=FALSE) const
void SetTagged (BOOL state=TRUE)
BOOL IsTagged ()
void SetMax ()
void SetMin ()
void SetMinStep ()
BOOL IsMax ()
BOOL IsMin ()
BOOL IsMinStep ()

Private Attributes

long m_ticks

Friends

Time operator * (double n, Time right)


Detailed Description

Definition at line 21 of file HashTime.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
TICKSPERSECOND 

Definition at line 26 of file HashTime.h.

enum Time::TimeType
 

Enumerator:
TT_MINSTEP 
TT_MAX 

Definition at line 27 of file HashTime.h.


Constructor & Destructor Documentation

Time::Time  )  [inline]
 

Definition at line 29 of file HashTime.h.

Time::Time double  seconds  )  [inline]
 

Definition at line 34 of file HashTime.h.

Time::Time double  frame,
double  fps
[inline]
 

Definition at line 39 of file HashTime.h.

Time::Time TimeType  rt  )  [inline]
 

Definition at line 44 of file HashTime.h.


Member Function Documentation

void Time::CeilToFrame double  fps  )  [inline]
 

Definition at line 256 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

void Time::FloorToFrame double  fps  )  [inline]
 

Definition at line 250 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

float Time::GetCell double  fps  )  const [inline]
 

Definition at line 264 of file HashTime.h.

float Time::GetFrame double  fps  )  const [inline]
 

Definition at line 218 of file HashTime.h.

int Time::GetFrameInt double  fps  )  const [inline]
 

Definition at line 223 of file HashTime.h.

float Time::GetSeconds  )  const [inline]
 

Definition at line 188 of file HashTime.h.

double Time::GetSecondsDouble  )  const [inline]
 

Definition at line 193 of file HashTime.h.

long Time::GetTicks  )  const [inline]
 

Definition at line 203 of file HashTime.h.

Referenced by abs().

BOOL Time::IsMax  )  [inline]
 

Definition at line 303 of file HashTime.h.

References MAX_TICKS.

BOOL Time::IsMin  )  [inline]
 

Definition at line 308 of file HashTime.h.

References MAX_TICKS.

BOOL Time::IsMinStep  )  [inline]
 

Definition at line 313 of file HashTime.h.

BOOL Time::IsTagged  )  [inline]
 

Definition at line 283 of file HashTime.h.

BOOL Time::IsZero  )  const [inline]
 

Definition at line 213 of file HashTime.h.

Time Time::operator * double  n  )  const [inline]
 

Definition at line 119 of file HashTime.h.

References m_ticks, and RoundValue().

Here is the call graph for this function:

Time Time::operator * Time  other  )  const [inline]
 

Definition at line 112 of file HashTime.h.

References m_ticks.

void Time::operator *= double  n  )  [inline]
 

Definition at line 161 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

void Time::operator *= Time  other  )  [inline]
 

Definition at line 156 of file HashTime.h.

References m_ticks.

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

Definition at line 73 of file HashTime.h.

References m_ticks.

Time Time::operator% Time  other  )  const [inline]
 

Definition at line 138 of file HashTime.h.

References m_ticks.

Time Time::operator+ Time  other  )  const [inline]
 

Definition at line 98 of file HashTime.h.

References m_ticks.

void Time::operator+= Time  other  )  [inline]
 

Definition at line 146 of file HashTime.h.

References m_ticks.

Time Time::operator-  )  const [inline]
 

Definition at line 176 of file HashTime.h.

References m_ticks.

Time Time::operator- Time  other  )  const [inline]
 

Definition at line 105 of file HashTime.h.

References m_ticks.

void Time::operator-= Time  other  )  [inline]
 

Definition at line 151 of file HashTime.h.

References m_ticks.

Time Time::operator/ double  n  )  const [inline]
 

Definition at line 131 of file HashTime.h.

References m_ticks, and RoundValue().

Here is the call graph for this function:

float Time::operator/ Time  other  )  const [inline]
 

Definition at line 126 of file HashTime.h.

References m_ticks.

void Time::operator/= double  n  )  [inline]
 

Definition at line 171 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

void Time::operator/= Time  other  )  [inline]
 

Definition at line 166 of file HashTime.h.

References m_ticks.

BOOL Time::operator< Time  other  )  const [inline]
 

Definition at line 83 of file HashTime.h.

References m_ticks.

BOOL Time::operator<= Time  other  )  const [inline]
 

Definition at line 93 of file HashTime.h.

References m_ticks.

Time& Time::operator= Time  other  )  [inline]
 

Definition at line 62 of file HashTime.h.

References m_ticks.

Time& Time::operator= const double  seconds  )  [inline]
 

Definition at line 56 of file HashTime.h.

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

Definition at line 68 of file HashTime.h.

References m_ticks.

BOOL Time::operator> Time  other  )  const [inline]
 

Definition at line 78 of file HashTime.h.

References m_ticks.

BOOL Time::operator>= Time  other  )  const [inline]
 

Definition at line 88 of file HashTime.h.

References m_ticks.

void Time::SetCell double  cell,
double  fps
[inline]
 

Definition at line 269 of file HashTime.h.

void Time::SetFrame double  frame,
double  fps
[inline]
 

Definition at line 228 of file HashTime.h.

void Time::SetMax  )  [inline]
 

Definition at line 288 of file HashTime.h.

References MAX_TICKS.

void Time::SetMin  )  [inline]
 

Definition at line 293 of file HashTime.h.

References MAX_TICKS.

void Time::SetMinStep  )  [inline]
 

Definition at line 298 of file HashTime.h.

void Time::SetSeconds double  seconds  )  [inline]
 

Definition at line 198 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

void Time::SetTagged BOOL  state = TRUE  )  [inline]
 

Definition at line 278 of file HashTime.h.

void Time::SetTicks long  ticks  )  [inline]
 

Definition at line 208 of file HashTime.h.

Referenced by abs().

void Time::SnapToFrame double  fps  )  [inline]
 

Definition at line 243 of file HashTime.h.

References RoundValue(), and SIGN.

Here is the call graph for this function:

void Time::StepFrame double  fps  )  [inline]
 

Definition at line 233 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

void Time::StepFrames double  frames,
double  fps
[inline]
 

Definition at line 238 of file HashTime.h.

References RoundValue().

Here is the call graph for this function:

String Time::ToString double  fps,
int  timeunits,
BOOL  treatasdelta = FALSE
const
 


Friends And Related Function Documentation

Time operator * double  n,
Time  right
[friend]
 

Definition at line 319 of file HashTime.h.


Member Data Documentation

long Time::m_ticks [private]
 

Definition at line 23 of file HashTime.h.

Referenced by operator *(), operator *=(), operator!=(), operator%(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().


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:03 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001