A namespace containing data structure classes and memory manipulation functions.
More...
|
template<typename T > |
T * | allocate () |
| Allocate memory for a single object of type T. More...
|
|
template<typename T > |
T * | allocate (Size count) |
| Allocate memory for the specified number of objects of type T. More...
|
|
template<typename T > |
T * | allocateAligned (Size count, Size alignment=Size(16)) |
| Allocate memory for the specified number of objects of type T. More...
|
|
template<typename T > |
void | deallocate (T *pointer) |
| Free the memory block pointed to by the specified pointer. More...
|
|
template<typename T > |
void | deallocateAligned (T *pointer) |
| Free the aligned memory block pointed to by the specified pointer. More...
|
|
template<typename T > |
T * | construct () |
| Construct and allocate an object of the templated type T, calling the default constructor. More...
|
|
template<typename T , typename P1 > |
T * | construct (const P1 &p1) |
| Construct and allocate an object of the templated type T with one constructor parameter. More...
|
|
template<typename T , typename P1 , typename P2 > |
T * | construct (const P1 &p1, const P2 &p2) |
| Construct and allocate an object of the templated type T with 2 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3) |
| Construct and allocate an object of the templated type T with 3 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4) |
| Construct and allocate an object of the templated type T with 4 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5) |
| Construct and allocate an object of the templated type T with 5 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6) |
| Construct and allocate an object of the templated type T with 6 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7) |
| Construct and allocate an object of the templated type T with 7 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8) |
| Construct and allocate an object of the templated type T with 8 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9) |
| Construct and allocate an object of the templated type T with 9 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 > |
T * | construct (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9, const P10 &p10) |
| Construct and allocate an object of the templated type T with 10 constructor parameters. More...
|
|
template<typename T > |
void | destruct (T *object) |
| Destruct and free an object of the templated type T at the specified location. More...
|
|
template<typename T > |
void | destructAligned (T *object) |
| Destruct and free an object of the templated type T at the specified location. More...
|
|
template<typename T > |
T * | constructArray (Size number) |
| Construct and allocate an array of objects of the templated type T, calling the default constructor. More...
|
|
template<typename T , typename P1 > |
T * | constructArray (Size number, const P1 &p1) |
| Construct and allocate an array of objects of the templated type T with one constructor parameter. More...
|
|
template<typename T , typename P1 , typename P2 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2) |
| Construct and allocate an array of objects of the templated type T with 2 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3) |
| Construct and allocate an array of objects of the templated type T with 3 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4) |
| Construct and allocate an array of objects of the templated type T with 4 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5) |
| Construct and allocate an array of objects of the templated type T with 5 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6) |
| Construct and allocate an array of objects of the templated type T with 6 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7) |
| Construct and allocate an array of objects of the templated type T with 7 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8) |
| Construct and allocate an array of objects of the templated type T with 8 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9) |
| Construct and allocate an array of objects of the templated type T with 9 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 > |
void | constructArray (Size number, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9, const P10 &p10) |
| Construct and allocate an array of objects of the templated type T with 10 constructor parameters. More...
|
|
template<typename T > |
T * | constructArrayAligned (Size number, Size alignment) |
| Construct and allocate an array of objects of the templated type T, calling the default constructor. More...
|
|
template<typename T , typename P1 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1) |
| Construct and allocate an array of objects of the templated type T with one constructor parameter. More...
|
|
template<typename T , typename P1 , typename P2 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2) |
| Construct and allocate an array of objects of the templated type T with 2 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3) |
| Construct and allocate an array of objects of the templated type T with 3 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4) |
| Construct and allocate an array of objects of the templated type T with 4 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5) |
| Construct and allocate an array of objects of the templated type T with 5 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6) |
| Construct and allocate an array of objects of the templated type T with 6 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7) |
| Construct and allocate an array of objects of the templated type T with 7 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8) |
| Construct and allocate an array of objects of the templated type T with 8 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9) |
| Construct and allocate an array of objects of the templated type T with 9 constructor parameters. More...
|
|
template<typename T , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 > |
T * | constructArrayAligned (Size number, Size alignment, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, const P7 &p7, const P8 &p8, const P9 &p9, const P10 &p10) |
| Construct and allocate an array of objects of the templated type T with 10 constructor parameters. More...
|
|
template<typename T > |
T * | copyArray (const T *oldArray, Size number) |
| Allocate a new array and copy the specified number of elements from an old array. More...
|
|
template<typename T > |
T * | copyArrayAligned (const T *oldArray, Size number, Size alignment) |
| Allocate a new aligned array and copy the specified number of elements from an old array. More...
|
|
template<typename T > |
void | destructArray (T *objects, Size number) |
| Destruct and free an array of objects of the templated type T at the specified location. More...
|
|
template<typename T > |
void | destructArrayAligned (T *objects, Size number) |
| Destruct and free an array of objects of the templated type T at the specified location. More...
|
|
template<typename T > |
void | swap (T &a, T &b) |
| Swap the locations of two values of the templated type. More...
|
|
template<typename T , typename SizeType > |
void | swap (T *a, T *b, SizeType number) |
| Swap the contents of two arrays of the templated type. More...
|
|
template<typename T , typename SizeType > |
void | copy (T *destination, const T *source, SizeType number) |
| Copy the specified number of objects from the source pointer to the destination pointer. More...
|
|
template<typename SizeType > |
void | copy (unsigned char *destination, const unsigned char *source, SizeType number) |
|
template<typename SizeType > |
void | copy (char *destination, const char *source, SizeType number) |
|
template<typename SizeType > |
void | copy (unsigned short *destination, const unsigned short *source, SizeType number) |
|
template<typename SizeType > |
void | copy (short *destination, const short *source, SizeType number) |
|
template<typename SizeType > |
void | copy (unsigned int *destination, const unsigned int *source, SizeType number) |
|
template<typename SizeType > |
void | copy (int *destination, const int *source, SizeType number) |
|
template<typename SizeType > |
void | copy (unsigned long *destination, const unsigned long *source, SizeType number) |
|
template<typename SizeType > |
void | copy (long *destination, const long *source, SizeType number) |
|
template<typename SizeType > |
void | copy (unsigned long long *destination, const unsigned long long *source, SizeType number) |
|
template<typename SizeType > |
void | copy (long long *destination, const long long *source, SizeType number) |
|
template<typename SizeType > |
void | copy (float *destination, const float *source, SizeType number) |
|
template<typename SizeType > |
void | copy (double *destination, const double *source, SizeType number) |
|
template<typename T > |
void | copyPOD (T *destination, const T *source, Size number) |
| Copy the specified number of POD-type (plain-old-data) objects from the source pointer to the destination pointer. More...
|
|
template<typename T , typename U > |
void | convert (T *destination, const U *source, Size number) |
| Copy the specified number of objects from the source pointer to the destination pointer, converting object type. More...
|
|
template<typename T > |
void | set (T *destination, T value, Size number) |
| Set the specified number of objects at the destination pointer to the given value. More...
|
|
template<> |
void | set (unsigned char *destination, unsigned char value, Size number) |
|
template<typename T > |
void | zero (T *destination, Size number) |
| Set the specified number of objects at the destination pointer to zero. More...
|
|
template<> |
void | zero (unsigned char *destination, Size number) |
|
template<> |
void | zero (char *destination, Size number) |
|
template<> |
void | zero (unsigned short *destination, Size number) |
|
template<> |
void | zero (short *destination, Size number) |
|
template<> |
void | zero (unsigned int *destination, Size number) |
|
template<> |
void | zero (int *destination, Size number) |
|
template<> |
void | zero (unsigned long *destination, Size number) |
|
template<> |
void | zero (long *destination, Size number) |
|
template<> |
void | zero (unsigned long long *destination, Size number) |
|
template<> |
void | zero (long long *destination, Size number) |
|
template<> |
void | zero (float *destination, Size number) |
|
template<> |
void | zero (double *destination, Size number) |
|
template<typename T > |
void | zeroPOD (T *destination, Size number) |
| Set the specified number of POD-type (plain-old-data) objects from the source pointer to all zeros. More...
|
|