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

#include <allocator.h>

Inheritance diagram for SequentialAllocator:
Inheritance graph
[legend]

Public Member Functions

void printSize () const
 
 SequentialAllocator (unsigned char *base_ptr, unsigned int max_size)
 Handle a preallocated memory up to max_size. More...
 
 ~SequentialAllocator ()
 
- 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

unsigned char * m_base_ptr
 
unsigned int m_index
 
unsigned int m_size
 

Detailed Description

Definition at line 60 of file allocator.h.

Constructor & Destructor Documentation

◆ SequentialAllocator()

SequentialAllocator::SequentialAllocator ( unsigned char *  base_ptr,
unsigned int  max_size 
)

Handle a preallocated memory up to max_size.

Definition at line 120 of file allocator.cc.

◆ ~SequentialAllocator()

SequentialAllocator::~SequentialAllocator ( )

Definition at line 124 of file allocator.cc.

Member Function Documentation

◆ allocate()

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

Implements Allocator.

Definition at line 132 of file allocator.cc.

◆ printSize()

void SequentialAllocator::printSize ( ) const
virtual

Implements Allocator.

Definition at line 127 of file allocator.cc.

Member Data Documentation

◆ m_base_ptr

unsigned char* SequentialAllocator::m_base_ptr
private

Definition at line 69 of file allocator.h.

◆ m_index

unsigned int SequentialAllocator::m_index
private

Definition at line 70 of file allocator.h.

◆ m_size

unsigned int SequentialAllocator::m_size
private

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