Public Member Functions | Public Attributes | Static Public Attributes

PreciseTimeValue Class Reference

Search for all occurrences

#include <PreciseTimeValue.h>

Inheritance diagram for PreciseTimeValue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  PreciseTimeValue ()
  PreciseTimeValue (int t, float f)
  PreciseTimeValue (int t)
  PreciseTimeValue (float f)
  PreciseTimeValue (const PreciseTimeValue &v)
  operator int ()
  operator float ()
PreciseTimeValue  operator- () const
PreciseTimeValue  operator+ () const
int  TimeValue () const
float  PreciseTime () const
PreciseTimeValue operator-= (const PreciseTimeValue &)
PreciseTimeValue operator-= (const int v)
PreciseTimeValue operator-= (const float)
PreciseTimeValue operator+= (const PreciseTimeValue &)
PreciseTimeValue operator+= (const int v)
PreciseTimeValue operator+= (const float)
PreciseTimeValue operator*= (const int)
PreciseTimeValue operator*= (const float)
PreciseTimeValue operator/= (const float)
PreciseTimeValue Set (int t, float f)
int  operator== (const PreciseTimeValue &v) const
int  operator!= (const PreciseTimeValue &v) const
int  Equals (const PreciseTimeValue &v, float epsilon=1E-6f) const
int  Equals (int t, float epsilon=1E-6f) const
int  Equals (float t, float epsilon=1E-6f) const
int  operator> (const PreciseTimeValue &v) const
int  operator< (const PreciseTimeValue &v) const
int  operator>= (const PreciseTimeValue &v) const
int  operator<= (const PreciseTimeValue &v) const
PreciseTimeValue  operator- (const PreciseTimeValue &) const
PreciseTimeValue  operator- (const int) const
PreciseTimeValue  operator- (const float) const
PreciseTimeValue  operator+ (const PreciseTimeValue &) const
PreciseTimeValue  operator+ (const int) const
PreciseTimeValue  operator+ (const float) const
PreciseTimeValue  operator* (const int) const
PreciseTimeValue  operator* (const float) const
PreciseTimeValue  operator/ (const float) const
void  AdjustFraction ()

Public Attributes

int  tick
float  fraction

Static Public Attributes

static const PreciseTimeValue  Origin

Constructor & Destructor Documentation

PreciseTimeValue ( ) [inline]
{}
PreciseTimeValue ( int  t,
float  f 
) [inline]
{ tick = t; fraction = f; }
PreciseTimeValue ( int  t ) [inline]
{ tick = t; fraction = 0.0f; }
PreciseTimeValue ( float  f )

Member Function Documentation

operator int ( ) [inline]
{ return tick; }
operator float ( ) [inline]
{ return tick+fraction; }
PreciseTimeValue operator- ( ) const
PreciseTimeValue operator+ ( ) const [inline]
{ return *this; }
int TimeValue ( ) const [inline]
float PreciseTime ( ) const [inline]
PreciseTimeValue& operator-= ( const PreciseTimeValue )
PreciseTimeValue& operator-= ( const int  v ) [inline]
{ tick -= v; return *this; }
PreciseTimeValue& operator-= ( const float  )
PreciseTimeValue& operator+= ( const PreciseTimeValue )
PreciseTimeValue& operator+= ( const int  v ) [inline]
{ tick += v; return *this; }
PreciseTimeValue& operator+= ( const float  )
PreciseTimeValue& operator*= ( const int  )
PreciseTimeValue& operator*= ( const float  )
PreciseTimeValue& operator/= ( const float  )
PreciseTimeValue& Set ( int  t,
float  f 
) [inline]
{ tick=t; fraction=f; return *this; }
int operator== ( const PreciseTimeValue v ) const [inline]
            { return ((v.tick==tick)&&(v.fraction==fraction)); }
int operator!= ( const PreciseTimeValue v ) const [inline]
            { return ((v.tick!=tick)||(v.fraction!=fraction)); }
int Equals ( const PreciseTimeValue v,
float  epsilon = 1E-6f 
) const
int Equals ( int  t,
float  epsilon = 1E-6f 
) const
int Equals ( float  t,
float  epsilon = 1E-6f 
) const
int operator> ( const PreciseTimeValue v ) const
int operator< ( const PreciseTimeValue v ) const
int operator>= ( const PreciseTimeValue v ) const
int operator<= ( const PreciseTimeValue v ) const
PreciseTimeValue operator- ( const PreciseTimeValue ) const
PreciseTimeValue operator- ( const int  ) const
PreciseTimeValue operator- ( const float  ) const
PreciseTimeValue operator+ ( const PreciseTimeValue ) const
PreciseTimeValue operator+ ( const int  ) const
PreciseTimeValue operator+ ( const float  ) const
PreciseTimeValue operator* ( const int  ) const
PreciseTimeValue operator* ( const float  ) const
PreciseTimeValue operator/ ( const float  ) const
void AdjustFraction ( )

Member Data Documentation

int tick
float fraction
const PreciseTimeValue Origin [static]

PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue
PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue PreciseTimeValue