Cogs.Foundation
|
#include <SmallVector.h>
Public Member Functions | |
void | push_back (const T &t) |
void | push_back (T &&t) |
template<typename... Args> | |
void | emplace_back (Args &&... args) |
void | pop_back () |
void | erase (const T *pos) |
![]() | |
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 *first, const T *last) |
void | destroy (T *first, const T *last) |
template<typename T1 , typename T2 > | |
void | moveNew (T1 first, T1 last, T2 dest) |
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) |
![]() | |
SmallVectorTemplateBase (size_t capacity, Memory::Allocator *allocator) | |
bool | isSmall () const |
void | setSize (size_t newSize) |
void | reset () |
![]() | |
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 | |
![]() | |
uint8_t | firstElement [sizeof(T)] |
![]() | |
void * | firstPtr |
void * | lastPtr |
void * | capacityPtr |
Memory::Allocator * | allocator |
|
inlineprotected |
|
inlineprotected |
Referenced by Cogs::Collections::SmallVectorImplBase< T, true >::move().
|
inlineprotected |
References Cogs::T.
Referenced by Cogs::Collections::SmallVectorImplBase< T, true >::copy().
|
inlineprotected |
References Cogs::T.
Referenced by Cogs::Collections::SmallVectorImplBase< T, isPod >::grow().
|
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.
|
inline |
References Cogs::Collections::SmallVectorTemplateBase< T >::begin(), Cogs::Collections::SmallVectorTemplateBase< T >::end(), Cogs::Collections::SmallVectorImplBase< T, isPod >::move(), Cogs::Collections::SmallVectorTemplateBase< T >::setSize(), Cogs::Collections::SmallVectorTemplateBase< T >::size(), and Cogs::T.
|
inlineprotected |
References Cogs::Memory::Allocator::allocate(), Cogs::Collections::SmallVectorBase::allocator, Cogs::Collections::SmallVectorTemplateBase< T >::begin(), Cogs::Collections::SmallVectorTemplateBase< T >::capacity(), Cogs::Collections::SmallVectorBase::capacityPtr, Cogs::Collections::SmallVectorImplBase< T, isPod >::destroy(), Cogs::Collections::SmallVectorTemplateBase< T >::end(), Cogs::Collections::SmallVectorBase::firstPtr, Cogs::Collections::SmallVectorBase::lastPtr, Cogs::Collections::SmallVectorImplBase< T, isPod >::moveNew(), Cogs::Collections::SmallVectorTemplateBase< T >::size(), and Cogs::T.
Referenced by Cogs::Collections::SmallVectorImplBase< T, isPod >::emplace_back(), Cogs::Collections::SmallVectorImplBase< T, isPod >::push_back(), and Cogs::Collections::SmallVectorImplBase< T, true >::push_back().
|
inlineprotected |
References Cogs::T.
|
inlineprotected |
|
inlineprotected |
References Cogs::T.
Referenced by Cogs::Collections::SmallVectorImplBase< T, isPod >::grow().
|
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.
Referenced by Cogs::IO::readFileAsync(), Cogs::StringView::split(), and Cogs::StringView::splitAll().
|
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.