PreciseTimeValue Class Reference

#include <PreciseTimeValue.h>

+ Inheritance diagram for PreciseTimeValue:

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
 
PreciseTimeValueoperator-= (const PreciseTimeValue &)
 
PreciseTimeValueoperator-= (const int v)
 
PreciseTimeValueoperator-= (const float)
 
PreciseTimeValueoperator+= (const PreciseTimeValue &)
 
PreciseTimeValueoperator+= (const int v)
 
PreciseTimeValueoperator+= (const float)
 
PreciseTimeValueoperator*= (const int)
 
PreciseTimeValueoperator*= (const float)
 
PreciseTimeValueoperator/= (const float)
 
PreciseTimeValueSet (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
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Constructor & Destructor Documentation

PreciseTimeValue ( )
inline
33 {}
PreciseTimeValue ( int  t,
float  f 
)
inline
34 { tick = t; fraction = f; }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
PreciseTimeValue ( int  t)
inline
35 { tick = t; fraction = 0.0f; }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
PreciseTimeValue ( float  f)

Member Function Documentation

operator int ( )
inline
43 { return tick; }
int tick
Definition: PreciseTimeValue.h:29
operator float ( )
inline
44 { return tick+fraction; }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
PreciseTimeValue operator- ( ) const
PreciseTimeValue operator+ ( ) const
inline
48 { return *this; }
int TimeValue ( ) const
inline
51 { return tick; }
int tick
Definition: PreciseTimeValue.h:29
float PreciseTime ( ) const
inline
52 { return tick+fraction; }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
PreciseTimeValue& operator-= ( const PreciseTimeValue )
PreciseTimeValue& operator-= ( const int  v)
inline
56 { tick -= v; return *this; }
int tick
Definition: PreciseTimeValue.h:29
PreciseTimeValue& operator-= ( const float  )
PreciseTimeValue& operator+= ( const PreciseTimeValue )
PreciseTimeValue& operator+= ( const int  v)
inline
59 { tick += v; return *this; }
int tick
Definition: PreciseTimeValue.h:29
PreciseTimeValue& operator+= ( const float  )
PreciseTimeValue& operator*= ( const int  )
PreciseTimeValue& operator*= ( const float  )
PreciseTimeValue& operator/= ( const float  )
PreciseTimeValue& Set ( int  t,
float  f 
)
inline
65 { tick=t; fraction=f; return *this; }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
int operator== ( const PreciseTimeValue v) const
inline
69  { return ((v.tick==tick)&&(v.fraction==fraction)); }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
int operator!= ( const PreciseTimeValue v) const
inline
71  { return ((v.tick!=tick)||(v.fraction!=fraction)); }
int tick
Definition: PreciseTimeValue.h:29
float fraction
Definition: PreciseTimeValue.h:30
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