|
size_t | Align (size_t inSize) |
| Align the size to a multiple of inSize, returns the length after alignment. More...
|
|
template<class Type > |
Type * | Allocate (size_t inSize=1) |
| Allocate block of data of inSize elements and return the pointer. More...
|
|
template<class Type > |
void | AppendVector (const Array< Type > &inData) |
| Append inData to the buffer. More...
|
|
template<class Type > |
const Type * | Get (size_t inPosition) const |
| Get object at inPosition (an offset in bytes) More...
|
|
template<class Type > |
Type * | Get (size_t inPosition) |
| Get object at inPosition (an offset in bytes) More...
|
|
void | reserve (size_type inNewSize) |
| Reserve array space. More...
|
|
void | resize (size_type inNewSize) |
| Resize array to new length. More...
|
|
void | resize (size_type inNewSize, const T &inValue) |
| Resize array to new length and initialize all elements with inValue. More...
|
|
void | clear () |
| Destruct all elements and set length to zero. More...
|
|
template<class Iterator > |
void | assign (Iterator inBegin, Iterator inEnd) |
| Replace the contents of this array with inBegin .. inEnd. More...
|
|
void | assign (std::initializer_list< T > inList) |
| Replace the contents of this array with inList. More...
|
|
| Array ()=default |
| Default constructor. More...
|
|
| Array (const Allocator &inAllocator) |
| Constructor with allocator. More...
|
|
| Array (size_type inLength, const Allocator &inAllocator={ }) |
| Constructor with length. More...
|
|
| Array (size_type inLength, const T &inValue, const Allocator &inAllocator={ }) |
| Constructor with length and value. More...
|
|
| Array (std::initializer_list< T > inList, const Allocator &inAllocator={ }) |
| Constructor from initializer list. More...
|
|
| Array (const_iterator inBegin, const_iterator inEnd, const Allocator &inAllocator={ }) |
| Constructor from iterator. More...
|
|
| Array (const Array< T, Allocator > &inRHS) |
| Copy constructor. More...
|
|
| Array (Array< T, Allocator > &&inRHS) noexcept |
| Move constructor. More...
|
|
| ~Array () |
| Destruct all elements. More...
|
|
Allocator & | get_allocator () |
| Get the allocator. More...
|
|
const Allocator & | get_allocator () const |
|
void | push_back (const T &inValue) |
| Add element to the back of the array. More...
|
|
void | push_back (T &&inValue) |
|
template<class... A> |
T & | emplace_back (A &&... inValue) |
| Construct element at the back of the array. More...
|
|
void | pop_back () |
| Remove element from the back of the array. More...
|
|
bool | empty () const |
| Returns true if there are no elements in the array. More...
|
|
size_type | size () const |
| Returns amount of elements in the array. More...
|
|
size_type | capacity () const |
| Returns maximum amount of elements the array can hold. More...
|
|
void | shrink_to_fit () |
| Reduce the capacity of the array to match its size. More...
|
|
void | swap (Array< T, Allocator > &inRHS) noexcept |
| Swap the contents of two arrays. More...
|
|
template<class Iterator > |
void | insert (const_iterator inPos, Iterator inBegin, Iterator inEnd) |
|
void | insert (const_iterator inPos, const T &inValue) |
|
void | erase (const_iterator inIter) |
| Remove one element from the array. More...
|
|
void | erase (const_iterator inBegin, const_iterator inEnd) |
| Remove multiple element from the array. More...
|
|
const_iterator | begin () const |
| Iterators. More...
|
|
const_iterator | end () const |
|
const_iterator | cbegin () const |
|
const_iterator | cend () const |
|
iterator | begin () |
|
iterator | end () |
|
const T * | data () const |
|
T * | data () |
|
T & | operator[] (size_type inIdx) |
| Access element. More...
|
|
const T & | operator[] (size_type inIdx) const |
|
T & | at (size_type inIdx) |
| Access element. More...
|
|
const T & | at (size_type inIdx) const |
|
const T & | front () const |
| First element in the array. More...
|
|
T & | front () |
|
const T & | back () const |
| Last element in the array. More...
|
|
T & | back () |
|
Array< T, Allocator > & | operator= (const Array< T, Allocator > &inRHS) |
| Assignment operator. More...
|
|
Array< T, Allocator > & | operator= (Array< T, Allocator > &&inRHS) noexcept |
| Assignment move operator. More...
|
|
Array< T, Allocator > & | operator= (std::initializer_list< T > inRHS) |
| Assignment operator. More...
|
|
bool | operator== (const Array< T, Allocator > &inRHS) const |
| Comparing arrays. More...
|
|
bool | operator!= (const Array< T, Allocator > &inRHS) const |
|
Simple byte buffer, aligned to a cache line.