DelayedMatrix3::DelayedOp Struct Reference

DelayedMatrix3::DelayedOp Struct Reference

#include <control.h>

+ Inheritance diagram for DelayedMatrix3::DelayedOp:

Public Types

enum  OpCode {
  kPreTrans, kPreRotateX, kPreRotateY, kPreRotateZ,
  kPreRotate
}
 

Public Member Functions

 DelayedOp ()
 
 DelayedOp (const Point3 &p)
 
 DelayedOp (const Quat &q)
 
 DelayedOp (float x)
 
 DelayedOp (int, float y)
 
 DelayedOp (int, int, float z)
 
bool operator== (const DelayedOp &b) const
 

Public Attributes

OpCode code
 
Quat arg
 

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...
 

Member Enumeration Documentation

enum OpCode
Enumerator
kPreTrans 
kPreRotateX 
kPreRotateY 
kPreRotateZ 
kPreRotate 
288  {
289  kPreTrans,
290  kPreRotateX,
291  kPreRotateY,
292  kPreRotateZ,
293  kPreRotate
294  };
Definition: control.h:293
Definition: control.h:289

Constructor & Destructor Documentation

DelayedOp ( )
inline
297 {}
DelayedOp ( const Point3 p)
inline
298 : code(kPreTrans), arg(p.x, p.y, p.z, 0.0f) {}
float y
Definition: point3.h:60
OpCode code
Definition: control.h:295
Definition: control.h:289
Quat arg
Definition: control.h:296
float z
Definition: point3.h:61
float x
Definition: point3.h:59
DelayedOp ( const Quat q)
inline
299 : code(kPreRotate), arg(q) {}
OpCode code
Definition: control.h:295
Definition: control.h:293
Quat arg
Definition: control.h:296
DelayedOp ( float  x)
inline
300 : code(kPreRotateX), arg(x, 0.0f, 0.0f, 0.0f) {}
controller mat max min numsubs x z controller keys x z controller keys x
Definition: generics.inl:211
OpCode code
Definition: control.h:295
Quat arg
Definition: control.h:296
DelayedOp ( int  ,
float  y 
)
inline
302  : code(kPreRotateY), arg(0.0f, y, 0.0f, 0.0f) {}
OpCode code
Definition: control.h:295
Quat arg
Definition: control.h:296
DelayedOp ( int  ,
int  ,
float  z 
)
inline
304  : code(kPreRotateZ), arg(0.0f, 0.0f, z, 0.0f) {}
OpCode code
Definition: control.h:295
Quat arg
Definition: control.h:296
controller mat max min numsubs x z controller keys x z controller keys x z
Definition: generics.inl:213

Member Function Documentation

bool operator== ( const DelayedOp b) const
inline
Remarks
Compares this class instance to another one
308  {
309  return code == b.code && arg == b.arg;
310  }
OpCode code
Definition: control.h:295
Quat arg
Definition: control.h:296

Member Data Documentation

OpCode code
Quat arg