3ds Max C++ API Reference
Loading...
Searching...
No Matches
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

Constructor & Destructor Documentation

◆ PreciseTimeValue() [1/5]

PreciseTimeValue ( )
inline
33{}

◆ PreciseTimeValue() [2/5]

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

◆ PreciseTimeValue() [3/5]

PreciseTimeValue ( int  t)
inline
35{ tick = t; fraction = 0.0f; }

◆ PreciseTimeValue() [4/5]

PreciseTimeValue ( float  f)

◆ PreciseTimeValue() [5/5]

Member Function Documentation

◆ operator int()

operator int ( )
inline
43{ return tick; }

◆ operator float()

operator float ( )
inline
44{ return tick+fraction; }

◆ operator-() [1/4]

PreciseTimeValue operator- ( ) const

◆ operator+() [1/4]

PreciseTimeValue operator+ ( ) const
inline
48{ return *this; }

◆ TimeValue()

int TimeValue ( ) const
inline
51{ return tick; }

◆ PreciseTime()

float PreciseTime ( ) const
inline
52{ return tick+fraction; }

◆ operator-=() [1/3]

PreciseTimeValue & operator-= ( const PreciseTimeValue )

◆ operator-=() [2/3]

PreciseTimeValue & operator-= ( const int  v)
inline
56{ tick -= v; return *this; }

◆ operator-=() [3/3]

PreciseTimeValue & operator-= ( const float  )

◆ operator+=() [1/3]

PreciseTimeValue & operator+= ( const PreciseTimeValue )

◆ operator+=() [2/3]

PreciseTimeValue & operator+= ( const int  v)
inline
59{ tick += v; return *this; }

◆ operator+=() [3/3]

PreciseTimeValue & operator+= ( const float  )

◆ operator*=() [1/2]

PreciseTimeValue & operator*= ( const int  )

◆ operator*=() [2/2]

PreciseTimeValue & operator*= ( const float  )

◆ operator/=()

PreciseTimeValue & operator/= ( const float  )

◆ Set()

PreciseTimeValue & Set ( int  t,
float  f 
)
inline
65{ tick=t; fraction=f; return *this; }

◆ operator==()

int operator== ( const PreciseTimeValue v) const
inline
69 { return ((v.tick==tick)&&(v.fraction==fraction)); }

◆ operator!=()

int operator!= ( const PreciseTimeValue v) const
inline
71 { return ((v.tick!=tick)||(v.fraction!=fraction)); }

◆ Equals() [1/3]

int Equals ( const PreciseTimeValue v,
float  epsilon = 1E-6f 
) const

◆ Equals() [2/3]

int Equals ( int  t,
float  epsilon = 1E-6f 
) const

◆ Equals() [3/3]

int Equals ( float  t,
float  epsilon = 1E-6f 
) const

◆ operator>()

int operator> ( const PreciseTimeValue v) const

◆ operator<()

int operator< ( const PreciseTimeValue v) const

◆ operator>=()

int operator>= ( const PreciseTimeValue v) const

◆ operator<=()

int operator<= ( const PreciseTimeValue v) const

◆ operator-() [2/4]

PreciseTimeValue operator- ( const PreciseTimeValue ) const

◆ operator-() [3/4]

PreciseTimeValue operator- ( const int  ) const

◆ operator-() [4/4]

PreciseTimeValue operator- ( const float  ) const

◆ operator+() [2/4]

PreciseTimeValue operator+ ( const PreciseTimeValue ) const

◆ operator+() [3/4]

PreciseTimeValue operator+ ( const int  ) const

◆ operator+() [4/4]

PreciseTimeValue operator+ ( const float  ) const

◆ operator*() [1/2]

PreciseTimeValue operator* ( const int  ) const

◆ operator*() [2/2]

PreciseTimeValue operator* ( const float  ) const

◆ operator/()

PreciseTimeValue operator/ ( const float  ) const

◆ AdjustFraction()

void AdjustFraction ( )

Member Data Documentation

◆ tick

int tick

◆ fraction

float fraction

◆ Origin

const PreciseTimeValue Origin
static