arduino-audio-driver
|
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 |
Iterator for the Vector class. More... | |
Public Member Functions | |
Vector (int size, T value) | |
allocate size and initialize array More... | |
Vector (size_t len=20) | |
default constructor More... | |
Vector (T *from, T *to) | |
legacy constructor with pointer range More... | |
Vector (Vector< T > &&moveFrom)=default | |
Vector (Vector< T > ©From) | |
copy constructor More... | |
virtual | ~Vector () |
Destructor. More... | |
void | assign (iterator v1, iterator v2) |
void | assign (size_t number, T value) |
T & | back () |
iterator | begin () |
int | capacity () |
void | clear () |
T * | data () |
bool | empty () |
iterator | end () |
void | erase (int pos) |
void | erase (iterator it) |
operator bool () const | |
Vector< T > & | operator= (Vector< T > ©From) |
T & | operator[] (const int index) const |
T & | operator[] (int index) |
void | pop_back () |
void | pop_front () |
void | push_back (T value) |
void | push_front (T value) |
bool | resize (int newSize) |
bool | resize (int newSize, T value) |
void | shrink_to_fit () |
int | size () |
void | swap (Vector< T > &in) |
Protected Member Functions | |
void | cleanup (T *data, int from, int to) |
void | resize_internal (int newSize, bool copy, bool shrink=false) |
Protected Attributes | |
int | bufferLen =0 |
int | len = 0 |
T * | p_data = nullptr |
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
|
inline |
allocate size and initialize array
|
inline |
legacy constructor with pointer range
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |