|
Cogs.Foundation
|
#include <SmallVector.h>
Public Member Functions | |
| void | push_back (const T &t) |
| void | pop_back () |
| void | erase (const T *pos) |
Public Member Functions inherited from Cogs::Collections::SmallVectorTemplateBase< T > | |
| bool | empty () const |
| size_t | size () const |
| size_t | capacity () const |
| T * | data () |
| const T * | data () const |
| T * | begin () |
| T * | end () |
| const T * | begin () const |
| const T * | end () const |
| const T * | cbegin () const |
| const T * | cend () const |
| T & | operator[] (const size_t index) |
| const T & | operator[] (const size_t index) const |
| T & | back () |
| const T & | back () const |
| T & | front () |
| const T & | front () const |
Protected Member Functions | |
| SmallVectorImplBase (size_t capacity, Memory::Allocator *allocator) | |
| void | grow (size_t minSize=0) |
| void | initialize (T *, T *) |
| void | destroy (T *, T *) |
| template<typename T1 , typename T2 > | |
| void | move (T1 first, T1 last, T2 dest) |
| template<typename T1 , typename T2 > | |
| void | copy (T1 first, T1 last, T2 dest) |
| template<typename T1 , typename T2 > | |
| void | copyNew (T1 first, T1 last, T2 dest) |
Protected Member Functions inherited from Cogs::Collections::SmallVectorTemplateBase< T > | |
| SmallVectorTemplateBase (size_t capacity, Memory::Allocator *allocator) | |
| bool | isSmall () const |
| void | setSize (size_t newSize) |
| void | reset () |
Protected Member Functions inherited from Cogs::Collections::SmallVectorBase | |
| SmallVectorBase (void *data, size_t capacity, Memory::Allocator *allocator) | |
| void | growPod (const void *firstElement, const size_t minSizeBytes) |
| size_t | sizeInBytes () const |
| size_t | capacityInBytes () const |
Additional Inherited Members | |
Protected Attributes inherited from Cogs::Collections::SmallVectorTemplateBase< T > | |
| uint8_t | firstElement [sizeof(T)] |
Protected Attributes inherited from Cogs::Collections::SmallVectorBase | |
| void * | firstPtr |
| void * | lastPtr |
| void * | capacityPtr |
| Memory::Allocator * | allocator |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
References Cogs::T.
|
inlineprotected |
|
inline |
References Cogs::Collections::SmallVectorTemplateBase< T >::begin(), Cogs::Collections::SmallVectorTemplateBase< T >::end(), Cogs::Collections::SmallVectorImplBase< T, isPod >::move(), Cogs::Collections::SmallVectorTemplateBase< T >::setSize(), and Cogs::Collections::SmallVectorTemplateBase< T >::size().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
References Cogs::Collections::SmallVectorTemplateBase< T >::capacity(), Cogs::Collections::SmallVectorTemplateBase< T >::end(), Cogs::Collections::SmallVectorImplBase< T, isPod >::grow(), Cogs::Collections::SmallVectorTemplateBase< T >::setSize(), Cogs::Collections::SmallVectorTemplateBase< T >::size(), and Cogs::T.