replicode
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
mBrane::sdk::Memory Class Reference

#include <memory.h>

Collaboration diagram for mBrane::sdk::Memory:
Collaboration graph

Classes

class  Block
 

Public Member Functions

 Memory ()
 
 ~Memory ()
 
const uint32_t getObjectSize () const
 
void * alloc ()
 
void * alloc (uint32_t &normalizedSize)
 
void dealloc (void *o)
 

Static Public Member Functions

static MemoryGetStatic (size_t s)
 
static MemoryGetDynamic (size_t s)
 

Private Member Functions

 Memory (size_t objectSize)
 
void * operator new (size_t s, uint16_t index)
 
void operator delete (void *b)
 

Static Private Member Functions

static size_t GetNormalizedSize (size_t s, uint8_t &pow2)
 

Private Attributes

const size_t objectSize
 
BlockfirstBlock
 
BlocklastBlock
 
BlockemptyBlock
 
uint32_t freeObjects
 
std::mutex m_mutex
 

Static Private Attributes

static Array< Memory, 16 > * Memories = NULL
 
static std::mutex s_mutex
 

Constructor & Destructor Documentation

mBrane::sdk::Memory::Memory ( size_t  objectSize)
inlineprivate
mBrane::sdk::Memory::Memory ( )

Here is the caller graph for this function:

mBrane::sdk::Memory::~Memory ( )
inline

Member Function Documentation

void * mBrane::sdk::Memory::alloc ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void * mBrane::sdk::Memory::alloc ( uint32_t normalizedSize)

Here is the call graph for this function:

void mBrane::sdk::Memory::dealloc ( void *  o)

Here is the call graph for this function:

Memory * mBrane::sdk::Memory::GetDynamic ( size_t  s)
static

Here is the call graph for this function:

size_t mBrane::sdk::Memory::GetNormalizedSize ( size_t  s,
uint8_t pow2 
)
inlinestaticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

const uint32_t mBrane::sdk::Memory::getObjectSize ( ) const
inline
Memory * mBrane::sdk::Memory::GetStatic ( size_t  s)
static

Here is the call graph for this function:

void mBrane::sdk::Memory::operator delete ( void *  b)
inlineprivate
void * mBrane::sdk::Memory::operator new ( size_t  s,
uint16_t  index 
)
inlineprivate

Member Data Documentation

Block* mBrane::sdk::Memory::emptyBlock
private
Block* mBrane::sdk::Memory::firstBlock
private
uint32_t mBrane::sdk::Memory::freeObjects
private
Block* mBrane::sdk::Memory::lastBlock
private
std::mutex mBrane::sdk::Memory::m_mutex
private
Array< Memory, 16 > * mBrane::sdk::Memory::Memories = NULL
staticprivate
const size_t mBrane::sdk::Memory::objectSize
private
std::mutex mBrane::sdk::Memory::s_mutex
staticprivate

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