replicode
Private Member Functions | Private Attributes | Friends | List of all members
mBrane::sdk::Memory::Block Class Reference
Collaboration diagram for mBrane::sdk::Memory::Block:
Collaboration graph

Private Member Functions

void * operator new (size_t s, size_t objectSize, uint16_t objectCount)
 
void operator delete (void *b)
 
 Block (size_t objectSize, uint16_t objectCount)
 
 ~Block ()
 
void * alloc ()
 
void dealloc (void *s)
 

Private Attributes

const uint16_t objectCount
 
uint16_t freeObjects
 
const size_t objectSize
 
const size_t totalSize
 
Block_next
 
Block_prev
 
uint8_tfirstFree
 

Friends

class Memory
 

Constructor & Destructor Documentation

mBrane::sdk::Memory::Block::Block ( size_t  objectSize,
uint16_t  objectCount 
)
inlineprivate
mBrane::sdk::Memory::Block::~Block ( )
inlineprivate

Member Function Documentation

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

Here is the caller graph for this function:

void mBrane::sdk::Memory::Block::dealloc ( void *  s)
inlineprivate

Here is the caller graph for this function:

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

Friends And Related Function Documentation

friend class Memory
friend

Member Data Documentation

Block* mBrane::sdk::Memory::Block::_next
private
Block* mBrane::sdk::Memory::Block::_prev
private
uint8_t* mBrane::sdk::Memory::Block::firstFree
private
uint16_t mBrane::sdk::Memory::Block::freeObjects
private
const uint16_t mBrane::sdk::Memory::Block::objectCount
private
const size_t mBrane::sdk::Memory::Block::objectSize
private
const size_t mBrane::sdk::Memory::Block::totalSize
private

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