|
| PODArray () |
| Create a new empty POD array without any memory allocated. More...
|
|
| PODArray (SizeType newSize) |
| Create a new POD array of the given size without any memory allocated. More...
|
|
| PODArray (const PODArray &other) |
| Create a new empty POD array that copies the state of another array. More...
|
|
| ~PODArray () |
| Destroy a POD array, releasing any allocated memory. More...
|
|
PODArray & | operator= (const PODArray &other) |
| Assign the state of another PODArray to this one, copying its elements. More...
|
|
SizeType | getCapacity () const |
| Return the current capacity of the array's allocated storage. More...
|
|
SizeType | getSize () const |
| Return the current valid size of the array. More...
|
|
SizeType | getSizeInBytes () const |
| Return the current number of bytes that are internally allocated, the memory usage. More...
|
|
void | setSize (SizeType newSize) |
| Set the current valid size of the array. More...
|
|
void | setSizeCopy (SizeType newSize) |
| Set the current valid size of the array. More...
|
|
Bool | isAllocated () const |
| Return whether or not this PODArray's internal memory buffer is currently allocated. More...
|
|
void | allocate (SizeType newSize) |
| Make sure that the internal memory is allocated and has at least the given size. More...
|
|
void | allocate () |
| Make sure that the internal memory is allocated. More...
|
|
void | deallocate () |
| Free the memory used by the array but keep its current size. More...
|
|
T * | getPointer () const |
| Return a pointer to the first element in this array. More...
|
|
T & | operator[] (SizeType i) |
| Return a reference to the array element at the specified index. More...
|
|
const T & | operator[] (SizeType i) const |
| Return a const reference to the array element at the specified index. More...
|
|
T & | operator() (SizeType i) |
| Return a reference to the array element at the specified index. More...
|
|
const T & | operator() (SizeType i) const |
| Return a const reference to the array element at the specified index. More...
|
|
void | zero () |
| Zero the entire contents of the array if it is allocated. More...
|
|
void | zero (SizeType startIndex, SizeType number) |
| Zero a range of the array if it is allocated. More...
|
|
template<typename T, typename SizeType, typename AllocatorType>
class om::util::PODArray< T, 1, SizeType, AllocatorType >
A specialization of the PODArray class with 1 dimension.
template<typename T , typename SizeType , typename AllocatorType >
Make sure that the internal memory is allocated and has at least the given size.
If the memory is already allocated with at least the given size, the method has no effect. If new memory is allocated, its contents are undefined.
template<typename T , typename SizeType , typename AllocatorType >
Make sure that the internal memory is allocated.
If the memory is already allocated, the method has no effect. If new memory is allocated, its contents are undefined.
template<typename T , typename SizeType , typename AllocatorType >
Free the memory used by the array but keep its current size.
If the memory is already allocated, the method has no effect. If new memory is allocated, its contents are undefined.