|
Arduino DLNA Server
|
Vector implementation which provides the most important methods as defined by std::vector. This class it is quite handy to have and most of the times quite better then dealing with raw c arrays. More...
#include <Vector.h>

Classes | |
| class | Iterator |
Lightweight iterator for tiny_dlna::Vector<T>. More... | |
Public Member Functions | |
| Vector (size_t len=0, Allocator &allocator=DefaultAllocator) | |
| Default constructor: size 0 with DefaultAllocator. | |
| Vector (Allocator &allocator) | |
| Constructor with only allocator. | |
| Vector (int size, T value, Allocator &allocator=DefaultAllocator) | |
| Allocate size and initialize array. | |
| Vector (Vector< T > &&moveFrom) | |
| Move constructor. | |
| Vector & | operator= (Vector &&moveFrom) |
| Move operator. | |
| Vector (Vector< T > ©From) | |
| copy constructor | |
| Vector< T > & | operator= (Vector< T > ©From) |
| copy operator | |
| Vector (T *from, T *to, Allocator &allocator=DefaultAllocator) | |
| legacy constructor with pointer range | |
| virtual | ~Vector () |
| Destructor. | |
| void | setAllocator (Allocator &allocator) |
| void | clear () |
| int | size () |
| bool | empty () |
| void | push_back (T &&value) |
| void | push_back (T &value) |
| void | push_front (T &value) |
| void | push_front (T &&value) |
| void | pop_back () |
| void | pop_front () |
| void | assign (Iterator v1, Iterator v2) |
| void | assign (size_t number, T value) |
| void | swap (Vector< T > &in) |
| T & | operator[] (int index) |
| T & | operator[] (const int index) const |
| bool | resize (int newSize, T value) |
| void | shrink_to_fit () |
| int | capacity () |
| bool | resize (int newSize) |
| Iterator | begin () |
| T & | back () |
| Iterator | end () |
| void | erase (Iterator it) |
| void | erase (int pos) |
| T * | data () |
| operator bool () const | |
| int | indexOf (T obj) |
| bool | contains (T obj) |
| void | swap (T &other) |
| void | reset () |
Protected Member Functions | |
| void | resize_internal (int newSize, bool copy, bool shrink=false) |
| T * | newArray (int newSize) |
| void | deleteArray (T *oldData, int oldBufferLen) |
| void | cleanup (T *data, int from, int to) |
Protected Attributes | |
| int | max_capacity = 0 |
| int | len = 0 |
| T * | p_data = nullptr |
| Allocator * | p_allocator = &DefaultAllocator |
Vector implementation which provides the most important methods as defined by std::vector. This class it is quite handy to have and most of the times quite better then dealing with raw c arrays.
|
inline |
Default constructor: size 0 with DefaultAllocator.
|
inline |
Constructor with only allocator.
|
inline |
Allocate size and initialize array.
|
inline |
Move constructor.
|
inline |
copy constructor
|
inline |
legacy constructor with pointer range
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
Move operator.
|
inline |
copy operator
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |