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

#include <allocator.h>

Inheritance diagram for ChunkAllocator:
Inheritance graph
[legend]

Public Member Functions

 ChunkAllocator (unsigned int _csize=(1<< 20))
 
void printSize () const
 
 ~ChunkAllocator ()
 
- Public Member Functions inherited from Allocator
template<typename T >
T * allocate (unsigned int nr=1)
 
virtual ~Allocator ()
 

Protected Member Functions

unsigned char * allocate (unsigned int size)
 

Private Attributes

const unsigned int chunksize
 
unsigned int index
 
std::vector< unsigned char * > mem
 
unsigned long int memsize
 
unsigned long int wastedspace
 

Detailed Description

Definition at line 27 of file allocator.h.

Constructor & Destructor Documentation

◆ ChunkAllocator()

ChunkAllocator::ChunkAllocator ( unsigned int  _csize = (1 << 20))

Definition at line 23 of file allocator.cc.

◆ ~ChunkAllocator()

ChunkAllocator::~ChunkAllocator ( )

Definition at line 27 of file allocator.cc.

Member Function Documentation

◆ allocate()

unsigned char * ChunkAllocator::allocate ( unsigned int  size)
protectedvirtual

Implements Allocator.

Definition at line 40 of file allocator.cc.

◆ printSize()

void ChunkAllocator::printSize ( ) const
virtual

Implements Allocator.

Definition at line 34 of file allocator.cc.

Member Data Documentation

◆ chunksize

const unsigned int ChunkAllocator::chunksize
private

Definition at line 36 of file allocator.h.

◆ index

unsigned int ChunkAllocator::index
private

Definition at line 37 of file allocator.h.

◆ mem

std::vector<unsigned char *> ChunkAllocator::mem
private

Definition at line 35 of file allocator.h.

◆ memsize

unsigned long int ChunkAllocator::memsize
private

Definition at line 38 of file allocator.h.

◆ wastedspace

unsigned long int ChunkAllocator::wastedspace
private

Definition at line 39 of file allocator.h.


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


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