EHS
|
#include <Array.h>
Public Member Functions | |
~Array () | |
Frees any data created on the heap. | |
Array () | |
Default members initialization. | |
Array (const N size) | |
Array (std::initializer_list< T > list) | |
Array (const T *const data, const N size) | |
Array (Array &&array) noexcept | |
Array (const Array &array) | |
Array< T, N > & | operator= (Array &&array) noexcept |
Array< T, N > & | operator= (const Array &array) |
Array & | operator= (std::initializer_list< T > list) |
Array & | operator+= (Array value) |
bool | operator== (const Array &in) const |
bool | operator!= (const Array &in) const |
Array & | operator+= (std::initializer_list< T > value) |
Array & | operator+= (const T value) |
operator T* () const | |
Retrieves the raw C-style array from casting an array object. | |
void | Swap (N a, N b) const |
void | Insert (const N index, const T value) |
T | Remove (const N index) |
void | Push (const T *const value, const N size) |
void | Push (Array value) |
void | Push (std::initializer_list< T > value) |
void | Push (T value) |
T | Pop () |
T | Pop (const N index) |
void | Clear () |
Releases the resources of the array. | |
void | Resize (const N newSize) |
N | Size () const |
N | End () const |
Protected Attributes | |
T * | data |
N | size |
A helper class for C-style arrays.
T | Array data type to use. |
N | Number data type to use. |
|
inline |
Frees any data created on the heap.
|
inline |
Default members initialization.
|
inlineexplicit |
Initializes an empty array with the given size.
|
inline |
Initializes this array with an initializer list object.
[in] | list | The given initializer list. |
|
inline |
Initializes members with given C-style array.
[in] | data | The C-style array. |
[in] | size | The size of the given C-style array. |
|
inlinenoexcept |
|
inline |
Copies all members from the given array object.
[in] | array | The array object to copy from. |
|
inline |
Releases the resources of the array.
|
inline |
Retrieves the index at the end of the array.
|
inline |
Inserts a value at the specified index.
[in] | index | The index to insert the value at. |
[in] | value | The value to add. |
|
inline |
Retrieves the raw C-style array from casting an array object.
|
inline |
|
inline |
Adds a given array object at the end of the array.
[in] | value | The given array object to push to the end of the array. |
|
inline |
Adds a given value at the end of the array.
[in] | value | The given value to push to the end of the array. |
|
inline |
Adds a given array object at the end of the array.
[in] | value | The given initializer list to push to the end of the array. |
|
inlinenoexcept |
|
inline |
Copies all members from the given array object.
[in] | array | The array object to copy from. |
|
inline |
Copies all members from the given initializer list object.
[in] | list | The initializer list object to copy from. |
|
inline |
|
inline |
Removes a value at the end of the array.
|
inline |
Will swap the value at the given index with the value at the end of the array and pops it.
[in] | index | The index of the value to swap with. |
|
inline |
Adds a given array object at the end of the array.
[in] | value | The given array object to push to the end of the array. |
|
inline |
Adds a given C-style array at the end of the array.
[in] | value | The given C-style array to push to the end of the array. |
[in] | size | The size of the given C-style array. |
|
inline |
Adds a given array object at the end of the array.
[in] | value | The given initializer list to push to the end of the array. |
|
inline |
Adds a given value at the end of the array.
[in] | value | The given value to push to the end of the array. |
|
inline |
Removes a value at the specified index.
[in] | index | The index to remove a value. |
|
inline |
Resizes the array.
[in] | newSize | The size to change to. |
|
inline |
Retrieves the size of the array.
|
inline |
Swaps two values in the array.
a | The first index to swap with. |
b | The second index to swap with. |
|
protected |
|
protected |