|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
Implements a dynamic array-like list for storing and managing a collection of elements. More...
#include <List.hpp>
Public Member Functions | |
| List () noexcept=default | |
| List (const List &other) | |
| List (List &&other) noexcept | |
| List (std::initializer_list< T > initList) | |
| List (T *Data, size_t Size) | |
| Adopts an existing buffer directly; List takes ownership. | |
| ~List () | |
| Frees the backing array. | |
| void | add (const T &value) |
| void | add (std::initializer_list< T > AddList) |
| void | add (T &&value) |
| T & | at (size_t index) |
| const T & | at (size_t index) const |
| T * | begin () |
| const T * | begin () const |
| void | clear () |
| bool | empty () const |
| T * | end () |
| const T * | end () const |
| void | erase (size_t index) |
| T * | find (std::function< bool(const T &)> predicate) |
| const T * | find (std::function< bool(const T &)> predicate) const |
| size_t | GetByteSize () const |
| size_t | GetCapacity () const |
| T * | GetData () |
| const T * | GetData () const |
| void * | GetRawData () |
| const void * | GetRawData () const |
| size_t | GetSize () const |
| int32_t | indexOf (const T &value) |
| void | insert (size_t index, const T &value) |
| List & | operator= (const List &other) |
| List & | operator= (List &&other) noexcept |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| void | release () |
| void | resize () |
| void | resize (size_t newCapacity) |
| void | reverse () |
| void | sort (std::function< bool(const T &, const T &)> compare) |
| void | swap (List &other) noexcept |
Implements a dynamic array-like list for storing and managing a collection of elements.
The List class provides a flexible and efficient way to store and access elements in a linear order. It is suitable for scenarios where you need to dynamically resize the collection or access elements by index.
|
defaultnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |