Cogs.Foundation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Cogs::Collections::SmallVectorImplBase< T, isPod > Class Template Reference

#include <SmallVector.h>

Inheritance diagram for Cogs::Collections::SmallVectorImplBase< T, isPod >:
Cogs::Collections::SmallVectorTemplateBase< T > Cogs::Collections::SmallVectorBase

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)
 
- Public Member Functions inherited from Cogs::Collections::SmallVectorTemplateBase< T >
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
Tdata ()
 
const Tdata () const
 
Tbegin ()
 
Tend ()
 
const Tbegin () const
 
const Tend () const
 
const Tcbegin () const
 
const Tcend () const
 
Toperator[] (const size_t index)
 
const Toperator[] (const size_t index) const
 
Tback ()
 
const Tback () const
 
Tfront ()
 
const Tfront () 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)
 
- 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::Allocatorallocator
 

Constructor & Destructor Documentation

◆ SmallVectorImplBase()

template<typename T , bool isPod>
Cogs::Collections::SmallVectorImplBase< T, isPod >::SmallVectorImplBase ( size_t  capacity,
Memory::Allocator allocator 
)
inlineprotected

Member Function Documentation

◆ copy()

template<typename T , bool isPod>
template<typename T1 , typename T2 >
void Cogs::Collections::SmallVectorImplBase< T, isPod >::copy ( T1  first,
T1  last,
T2  dest 
)
inlineprotected

◆ copyNew()

template<typename T , bool isPod>
template<typename T1 , typename T2 >
void Cogs::Collections::SmallVectorImplBase< T, isPod >::copyNew ( T1  first,
T1  last,
T2  dest 
)
inlineprotected

◆ destroy()

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::destroy ( T first,
const T last 
)
inlineprotected

◆ emplace_back()

template<typename T , bool isPod>
template<typename... Args>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::emplace_back ( Args &&...  args)
inline

◆ erase()

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::erase ( const T pos)
inline

◆ grow()

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::grow ( size_t  minSize = 0)
inlineprotected

◆ initialize()

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::initialize ( T first,
const T last 
)
inlineprotected

References Cogs::T.

◆ move()

template<typename T , bool isPod>
template<typename T1 , typename T2 >
void Cogs::Collections::SmallVectorImplBase< T, isPod >::move ( T1  first,
T1  last,
T2  dest 
)
inlineprotected

◆ moveNew()

template<typename T , bool isPod>
template<typename T1 , typename T2 >
void Cogs::Collections::SmallVectorImplBase< T, isPod >::moveNew ( T1  first,
T1  last,
T2  dest 
)
inlineprotected

◆ pop_back()

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::pop_back ( )
inline

◆ push_back() [1/2]

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::push_back ( const T t)
inline

◆ push_back() [2/2]

template<typename T , bool isPod>
void Cogs::Collections::SmallVectorImplBase< T, isPod >::push_back ( T &&  t)
inline

The documentation for this class was generated from the following file: