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

#include <allocator.h>

Inheritance diagram for PackedChunkAllocator:
Inheritance graph
[legend]

Public Member Functions

 PackedChunkAllocator (unsigned int _csize=(1<< 20))
 
void printSize () const
 
 ~PackedChunkAllocator ()
 
- 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
 
std::vector< unsigned int > index
 
std::vector< unsigned char * > mem
 
unsigned long int memsize
 

Detailed Description

Definition at line 44 of file allocator.h.

Constructor & Destructor Documentation

◆ PackedChunkAllocator()

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

Definition at line 69 of file allocator.cc.

◆ ~PackedChunkAllocator()

PackedChunkAllocator::~PackedChunkAllocator ( )

Definition at line 73 of file allocator.cc.

Member Function Documentation

◆ allocate()

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

Implements Allocator.

Definition at line 93 of file allocator.cc.

◆ printSize()

void PackedChunkAllocator::printSize ( ) const
virtual

Implements Allocator.

Definition at line 80 of file allocator.cc.

Member Data Documentation

◆ chunksize

const unsigned int PackedChunkAllocator::chunksize
private

Definition at line 54 of file allocator.h.

◆ index

std::vector<unsigned int > PackedChunkAllocator::index
private

Definition at line 53 of file allocator.h.

◆ mem

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

Definition at line 52 of file allocator.h.

◆ memsize

unsigned long int PackedChunkAllocator::memsize
private

Definition at line 55 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