Public Member Functions | Private Attributes | List of all members
ChunkMemoryHandler Class Reference

#include <MemoryHandler.hpp>

Public Member Functions

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

Private Attributes

size_t m_capacity
 
std::vector< unsigned char * > m_memory
 
std::vector< size_t > m_used
 

Detailed Description

Definition at line 8 of file MemoryHandler.hpp.

Constructor & Destructor Documentation

◆ ChunkMemoryHandler()

ChunkMemoryHandler::ChunkMemoryHandler ( size_t  size = 131072)
inline

Definition at line 17 of file MemoryHandler.hpp.

◆ ~ChunkMemoryHandler()

virtual ChunkMemoryHandler::~ChunkMemoryHandler ( )
inlinevirtual

Definition at line 26 of file MemoryHandler.hpp.

Member Function Documentation

◆ alloc()

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

Definition at line 34 of file MemoryHandler.hpp.

Member Data Documentation

◆ m_capacity

size_t ChunkMemoryHandler::m_capacity
private

Definition at line 13 of file MemoryHandler.hpp.

◆ m_memory

std::vector<unsigned char*> ChunkMemoryHandler::m_memory
private

Definition at line 10 of file MemoryHandler.hpp.

◆ m_used

std::vector<size_t> ChunkMemoryHandler::m_used
private

Definition at line 11 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 Wed Mar 2 2022 00:37:26