|
ADPCM Codecs
|
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 <ADPCMVector.h>
Classes | |
| class | iterator |
| Iterator for the Vector class. More... | |
Public Member Functions | |
| ADPCMVector (size_t len=0) | |
| Default constructor: size 0: The len defines the capacity. | |
| ADPCMVector (int size, T value) | |
| Allocate size and initialize array. | |
| ADPCMVector (ADPCMVector< T > &&moveFrom) | |
| Move constructor. | |
| ADPCMVector & | operator= (ADPCMVector &&moveFrom) |
| Move operator. | |
| ADPCMVector (const ADPCMVector< T > ©From) | |
| copy constructor | |
| template<typename TT , int N> | |
| ADPCMVector (TT(&a)[N]) | |
| convert from c array | |
| ADPCMVector< T > & | operator= (const ADPCMVector< T > ©From) |
| copy operator | |
| ADPCMVector (T *from, T *to) | |
| legacy constructor with pointer range | |
| ~ADPCMVector () | |
| void | clear () |
| int | size () const |
| bool | empty () const |
| 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 (ADPCMVector< T > &in) |
| T & | operator[] (int index) |
| const 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 () |
| void | clearContent () |
Protected Member Functions | |
| void | resize_internal (int newSize, bool copy, bool shrink=false) |
| T * | newArray (int newSize) |
| void | deleteArray (T *oldData, int oldBufferLen) |
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 |
Destructor (intentionally non-virtual: a vtable pointer would be corrupted when the elements of a nested ADPCMVector are moved)