Support Forum G3D Web Page |
Embeds N elements to reduce allocation time and increase memory coherence when working with arrays of arrays. More...
Public Member Functions | |
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 |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::insert().
|
inline |
Referenced by G3D::MeshAlg::Vertex::inEdge(), and G3D::MeshAlg::Vertex::inFace().
|
inline |
Referenced by G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::remove().
|
inline |
Find the index of v or -1 if not found.
|
inline |
|
inline |
|
inline |
Referenced by G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::insert().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by G3D::SmallArray< G3D::Vector4, 8 >::append().
|
inline |
|
inline |