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

#include <SmallVector.h>

Inheritance diagram for Cogs::Collections::SmallVectorTemplateBase< T >:
Cogs::Collections::SmallVectorBase Cogs::Collections::SmallVectorImplBase< T, std::is_trivially_copyable< T >::value > Cogs::Collections::SmallVectorImplBase< T, isPod > Cogs::Collections::SmallVectorImplBase< T, true > Cogs::Collections::SmallVectorImpl< T > Cogs::Collections::SmallVector< T, Size >

Public Member Functions

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

 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
 

Protected Attributes

uint8_t firstElement [sizeof(T)]
 
- Protected Attributes inherited from Cogs::Collections::SmallVectorBase
void * firstPtr
 
void * lastPtr
 
void * capacityPtr
 
Memory::Allocatorallocator
 

Constructor & Destructor Documentation

◆ SmallVectorTemplateBase()

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

Member Function Documentation

◆ back() [1/2]

template<typename T >
T & Cogs::Collections::SmallVectorTemplateBase< T >::back ( )
inline

◆ back() [2/2]

template<typename T >
const T & Cogs::Collections::SmallVectorTemplateBase< T >::back ( ) const
inline

◆ begin() [1/2]

template<typename T >
T * Cogs::Collections::SmallVectorTemplateBase< T >::begin ( )
inline

◆ begin() [2/2]

template<typename T >
const T * Cogs::Collections::SmallVectorTemplateBase< T >::begin ( ) const
inline

◆ capacity()

template<typename T >
size_t Cogs::Collections::SmallVectorTemplateBase< T >::capacity ( ) const
inline

◆ cbegin()

template<typename T >
const T * Cogs::Collections::SmallVectorTemplateBase< T >::cbegin ( ) const
inline

◆ cend()

template<typename T >
const T * Cogs::Collections::SmallVectorTemplateBase< T >::cend ( ) const
inline

◆ data() [1/2]

template<typename T >
T * Cogs::Collections::SmallVectorTemplateBase< T >::data ( )
inline

◆ data() [2/2]

template<typename T >
const T * Cogs::Collections::SmallVectorTemplateBase< T >::data ( ) const
inline

◆ empty()

template<typename T >
bool Cogs::Collections::SmallVectorTemplateBase< T >::empty ( ) const
inline

◆ end() [1/2]

template<typename T >
T * Cogs::Collections::SmallVectorTemplateBase< T >::end ( )
inline

◆ end() [2/2]

template<typename T >
const T * Cogs::Collections::SmallVectorTemplateBase< T >::end ( ) const
inline

◆ front() [1/2]

template<typename T >
T & Cogs::Collections::SmallVectorTemplateBase< T >::front ( )
inline

◆ front() [2/2]

template<typename T >
const T & Cogs::Collections::SmallVectorTemplateBase< T >::front ( ) const
inline

◆ isSmall()

template<typename T >
bool Cogs::Collections::SmallVectorTemplateBase< T >::isSmall ( ) const
inlineprotected

◆ operator[]() [1/2]

template<typename T >
T & Cogs::Collections::SmallVectorTemplateBase< T >::operator[] ( const size_t  index)
inline

◆ operator[]() [2/2]

template<typename T >
const T & Cogs::Collections::SmallVectorTemplateBase< T >::operator[] ( const size_t  index) const
inline

◆ reset()

template<typename T >
void Cogs::Collections::SmallVectorTemplateBase< T >::reset ( )
inlineprotected

◆ setSize()

template<typename T >
void Cogs::Collections::SmallVectorTemplateBase< T >::setSize ( size_t  newSize)
inlineprotected

◆ size()

template<typename T >
size_t Cogs::Collections::SmallVectorTemplateBase< T >::size ( ) const
inline

Member Data Documentation

◆ firstElement

template<typename T >
uint8_t Cogs::Collections::SmallVectorTemplateBase< T >::firstElement[sizeof(T)]
protected

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