Cogs.Foundation
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
Cogs::Collections::SmallVectorBase Class Reference

#include <SmallVector.h>

Inheritance diagram for Cogs::Collections::SmallVectorBase:
Cogs::Collections::SmallVectorTemplateBase< T > 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 >

Protected Member Functions

 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

void * firstPtr
 
void * lastPtr
 
void * capacityPtr
 
Memory::Allocatorallocator
 

Constructor & Destructor Documentation

◆ SmallVectorBase()

Cogs::Collections::SmallVectorBase::SmallVectorBase ( void *  data,
size_t  capacity,
Memory::Allocator allocator 
)
inlineprotected

Member Function Documentation

◆ capacityInBytes()

size_t Cogs::Collections::SmallVectorBase::capacityInBytes ( ) const
inlineprotected

◆ growPod()

void Cogs::Collections::SmallVectorBase::growPod ( const void *  firstElement,
const size_t  minSizeBytes 
)
protected

◆ sizeInBytes()

size_t Cogs::Collections::SmallVectorBase::sizeInBytes ( ) const
inlineprotected

Referenced by growPod().

Member Data Documentation

◆ allocator

Memory::Allocator* Cogs::Collections::SmallVectorBase::allocator
protected

◆ capacityPtr

void* Cogs::Collections::SmallVectorBase::capacityPtr
protected

◆ firstPtr

void* Cogs::Collections::SmallVectorBase::firstPtr
protected

◆ lastPtr

void* Cogs::Collections::SmallVectorBase::lastPtr
protected

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