|
| | SmallArray () |
| |
| template<int J> |
| void | append (const SmallArray< T, J > &other) |
| |
| void | append (const T &v) |
| |
| void | append (const T &v, const T &v2) |
| |
| void | append (const T &v, const T &v2, const T &v3) |
| |
| void | append (const T &v, const T &v2, const T &v3, const T &v4) |
| |
| void | clear (bool shrinkIfNecessary=true) |
| |
| void | clearAndSetMemoryManager (shared_ptr< MemoryManager > &m) |
| |
| bool | contains (const T &value) const |
| |
| void | fastRemove (int i, bool shrinkIfNecessary=false) |
| |
| int | findIndex (const T &v) |
| | Find the index of v or -1 if not found. More...
|
| |
| const T & | last () const |
| |
| T & | last () |
| |
| T & | next () |
| |
| template<int MIN_ELEMENTS> |
| SmallArray< T, N > & | operator= (const Array< T, MIN_ELEMENTS > &src) |
| |
| T & | operator[] (int i) |
| |
| const T & | operator[] (int i) const |
| |
| T | pop () |
| |
| void | popDiscard () |
| |
| void | push (const T &v) |
| |
| void | resize (int n, bool shrinkIfNecessary=true) |
| |
| int | size () const |
| |
template<class T, int N>
class G3D::SmallArray< T, N >
Embeds N elements to reduce allocation time and increase memory coherence when working with arrays of arrays.
Offers a limited subset of the functionality of G3D::Array.