Array
Array.h

Array

A resizable array
Description
Array is a container which stores its elements in a contiguous memory block. The Array container
will automatically resize as needed to contain the desired number of elements.
Definition
template <class AType> class Array : public ArrayBase
Base Classes
ArrayBase Used internally to encapsulate functionality that is independent of the template parameter.
Contructor
Array();
Member Functions
Array::Push_BackAdds an element to the end of the array
Array::Pop_BackRemoves an element from the end of the array
Array::SizeReturns the number of elements stored in an array
Array::CapacityReturns the current number of element slots
Array::ReserveIncreases the capacity of the array
Array::EmptyTests if an array is empty or not
Array::ClearRemoves all elements from an array
Array::InsertInserts an element into an array
Array::DeleteDeletes an element from an array
Operators
const AType& operator[](const unsigned int Index);Returns a copy of the element at the position given in the operator brackets. If the given position is not within
the current range of elements, an assertion is thrown (Debug mode only), and the return value is undefined.
Array& operator=(const Array &Source);Creates a copy of the Array in Source. The existing array is destroyed in favor of the source array.