| Array ()
Constructs an array object with null values (default constructor)
|
| Array (const Array<PEGASUS_ARRAY_T>& x)
Creates a new Array object using the parameters and values in the Array object.
|
| Array (Uint32 size)
Constructs an array with size elements.
|
| Array (Uint32 size, const PEGASUS_ARRAY_T& x)
Constructs an array with size elements.
|
| Array (const PEGASUS_ARRAY_T* items, Uint32 size)
Constructs an array with size elements.
|
| ~Array ()
Destroys the objects, freeing any resources
|
Array<PEGASUS_ARRAY_T> & | operator= (const Array<PEGASUS_ARRAY_T>& x)
The values of one array object are assigned to another (assignment operator).
|
void | clear ()
Clears the contents of the array.
|
void | reserveCapacity (Uint32 capacity)
Reserves memory for capacity elements.
|
void | grow (Uint32 size, const PEGASUS_ARRAY_T& x)
Make the size of the array grow by size elements.
|
void | swap (Array<PEGASUS_ARRAY_T>& x)
Swaps the contents of two arrays.
|
Uint32 | size () const
Returns the number of elements in the array.
|
Uint32 | getCapacity () const
Returns the capacity of the array.
|
const PEGASUS_ARRAY_T* | getData () const
Returns a pointer to the first element of the array.
|
PEGASUS_ARRAY_T& | operator[] (Uint32 index)
Returns the element indicated by the index argument.
|
const PEGASUS_ARRAY_T& | operator[] (Uint32 index) const
Returns the element in the const array specified as the index argument.
|
void | append (const PEGASUS_ARRAY_T& x)
Appends an element to the end of the array.
|
void | append (const PEGASUS_ARRAY_T* x, Uint32 size)
Appends size elements at x to the end of this array.
|
void | appendArray (const Array<PEGASUS_ARRAY_T>& x)
Appends one array to another.
|
void | prepend (const PEGASUS_ARRAY_T& x)
Appends one element to the beginning of the array.
|
void | prepend (const PEGASUS_ARRAY_T* x, Uint32 size)
Appends size elements to the array starting at the memory address given by x.
|
void | insert (Uint32 index, const PEGASUS_ARRAY_T& x)
Inserts the element at the given index in the array.
|
void | insert (Uint32 index, const PEGASUS_ARRAY_T* x, Uint32 size)
Inserts size elements at x into the array at the given index.
|
void | remove (Uint32 index)
Removes the element at the given index from the array.
|
void | remove (Uint32 index, Uint32 size)
Removes size elements starting at the given index.
|