Public Member Functions | Public Attributes | List of all members
BlockMemoryHandler Class Reference

#include <MemoryHandler.hpp>

Public Member Functions

template<typename T >
void * alloc (size_t required, long &offset)
 
 BlockMemoryHandler (size_t size=32)
 
void shrinkToFit ()
 
virtual ~BlockMemoryHandler ()
 

Public Attributes

unsigned char * m_address
 
size_t m_capacity
 
unsigned char * m_memory
 
size_t m_size
 
size_t m_used
 

Detailed Description

Definition at line 61 of file MemoryHandler.hpp.

Constructor & Destructor Documentation

◆ BlockMemoryHandler()

BlockMemoryHandler::BlockMemoryHandler ( size_t  size = 32)
inline

Definition at line 65 of file MemoryHandler.hpp.

◆ ~BlockMemoryHandler()

virtual BlockMemoryHandler::~BlockMemoryHandler ( )
inlinevirtual

Definition at line 119 of file MemoryHandler.hpp.

Member Function Documentation

◆ alloc()

template<typename T >
void* BlockMemoryHandler::alloc ( size_t  required,
long &  offset 
)
inline

Definition at line 78 of file MemoryHandler.hpp.

◆ shrinkToFit()

void BlockMemoryHandler::shrinkToFit ( )
inline

Definition at line 110 of file MemoryHandler.hpp.

Member Data Documentation

◆ m_address

unsigned char* BlockMemoryHandler::m_address

Definition at line 75 of file MemoryHandler.hpp.

◆ m_capacity

size_t BlockMemoryHandler::m_capacity

Definition at line 73 of file MemoryHandler.hpp.

◆ m_memory

unsigned char* BlockMemoryHandler::m_memory

Definition at line 74 of file MemoryHandler.hpp.

◆ m_size

size_t BlockMemoryHandler::m_size

Definition at line 71 of file MemoryHandler.hpp.

◆ m_used

size_t BlockMemoryHandler::m_used

Definition at line 72 of file MemoryHandler.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:10