#include <Container.hpp>
Public Member Functions | |
size_type | Size () const |
Returns the size of the container. | |
size_type | Capacity () const |
Returns the capacity of the container. | |
pointer | Data () |
Returns a pointer to the data managed by the container. | |
const_pointer | Data () const |
Returns a constant pointer to the data managed by the container. | |
size_type | Add (size_type Count, size_type ElementSize) |
Adds a number of elements to the container, and returns an index to the beginning of the new elements. | |
size_type | Add (size_type Count, size_type ElementSize, const_reference Value) |
Adds a number of elements to the container, initializes them with the specified value, and returns an index to the beginning of the new elements. | |
VOID | Insert (size_type Index, size_type Count, size_type ElementSize) |
Inserts a number of elements starting from the specified index. | |
VOID | Insert (size_type Index, size_type Count, size_type ElementSize, const_reference Value) |
Inserts a number of elements starting from the specified index, and initializes them with the specified value. | |
VOID | Reserve (size_type Count, size_type ElementSize) |
Reserves a specified number of elements, allocating more if necessary. | |
VOID | Resize (size_type Count, size_type ElementSize) |
Resizes the container to the specified count, with the input element size. | |
VOID | Resize (size_type Count, size_type ElementSize, const_reference Value) |
Resizes the container to the specified count, with the input element size, and initializes each element with the specified value. | |
VOID | Shrink (size_type ElementSize) |
Shrinks the container to the current size. | |
VOID | Remove (size_type Index, size_type Count, size_type ElementSize) |
Remove a number of elements starting from the specified index. | |
VOID | Clear (size_type ElementSize, size_type Capacity=0) |
All elements from the container are removed. | |
Container () | |
Constructs an empty container. | |
Container (size_type Count, size_type ElementSize) | |
Constructs a container with the specified number of elements. | |
Container (size_type Count, size_type ElementSize, const_reference Value) | |
Constructs a container with the specified number of elements and initializes them with the specified value. | |
Container (E_SkipInitialization) | |
Skip container initialization. | |
~Container () | |
Frees any allocated memory. | |
Protected Attributes | |
pointer | _Data |
size_type | _Size |
size_type | _Capacity |
System::Container< Ay >::Container | ( | size_type | Count, | |
size_type | ElementSize | |||
) | [inline] |
Count | The number of elements to initialize the container with. | |
ElementSize | The size of each element in the container. |
System::Container< Ay >::Container | ( | size_type | Count, | |
size_type | ElementSize, | |||
const_reference | Value | |||
) | [inline] |
Count | The number of elements to initialize the container with. | |
ElementSize | The size of each element in the container. | |
Value | The value to initialize each element with. |
size_type System::Container< Ay >::Size | ( | ) | const [inline] |
size_type System::Container< Ay >::Capacity | ( | ) | const [inline] |
pointer System::Container< Ay >::Data | ( | ) | [inline] |
const_pointer System::Container< Ay >::Data | ( | ) | const [inline] |
size_type System::Container< Ay >::Add | ( | size_type | Count, | |
size_type | ElementSize | |||
) | [inline] |
Count | The number of elements to add. | |
ElementSize | The size of each element. |
size_type System::Container< Ay >::Add | ( | size_type | Count, | |
size_type | ElementSize, | |||
const_reference | Value | |||
) | [inline] |
Count | The number of elements to add. | |
ElementSize | The size of each element. | |
Value | The value to initialize new elements with. |
VOID System::Container< Ay >::Insert | ( | size_type | Index, | |
size_type | Count, | |||
size_type | ElementSize | |||
) | [inline] |
Index | The index where the elements will be inserted. | |
Count | The number of elements to insert. | |
ElementSize | The size of each element in the container. |
VOID System::Container< Ay >::Insert | ( | size_type | Index, | |
size_type | Count, | |||
size_type | ElementSize, | |||
const_reference | Value | |||
) | [inline] |
Index | The index where the elements will be inserted. | |
Count | The number of elements to insert. | |
ElementSize | The size of each element in the container. | |
Value | The value to initialize each new element with. |
VOID System::Container< Ay >::Reserve | ( | size_type | Count, | |
size_type | ElementSize | |||
) | [inline] |
Count | The number of elements to reserve. | |
ElementSize | The size of each element. |
VOID System::Container< Ay >::Resize | ( | size_type | Count, | |
size_type | ElementSize | |||
) | [inline] |
Count | The number of elements to resize the container to. | |
ElementSize | The size of each element in the container. |
VOID System::Container< Ay >::Resize | ( | size_type | Count, | |
size_type | ElementSize, | |||
const_reference | Value | |||
) | [inline] |
Count | The number of elements to resize the container to. | |
ElementSize | The size of each element in the container. | |
Value | The value to initialize new elements with. |
VOID System::Container< Ay >::Shrink | ( | size_type | ElementSize | ) | [inline] |
ElementSize | The size of each element in the container. |
VOID System::Container< Ay >::Remove | ( | size_type | Index, | |
size_type | Count, | |||
size_type | ElementSize | |||
) | [inline] |
Index | The index at which to remove the elements. | |
Count | The number of elements to remove. | |
ElementSize | The size of each element in the container. |
VOID System::Container< Ay >::Clear | ( | size_type | ElementSize, | |
size_type | Capacity = 0 | |||
) | [inline] |
ElementSize | The size of each element in the container. | |
Capacity | The new capacity for the container. |
pointer System::Container< Ay >::_Data [protected] |
The address of the data the container is managing.
size_type System::Container< Ay >::_Size [protected] |
The size of the container.
size_type System::Container< Ay >::_Capacity [protected] |
The capacity of the container.