PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::Heap Class Reference

#include <Puma/Heap.h>

+ Inheritance diagram for Puma::Heap:

Description

Heap implementation using standard malloc and free.

Warning
This class is not used and may disappear without notice.

Public Member Functions

 Heap ()
 Constructor. More...
 
 ~Heap ()
 Destructor. More...
 
void * malloc (size_t n)
 Allocate n bytes of memory. More...
 
void free (void *p)
 Free the given memory. More...
 

Constructor & Destructor Documentation

◆ Heap()

Puma::Heap::Heap ( )
inline

Constructor.

◆ ~Heap()

Puma::Heap::~Heap ( )
inline

Destructor.

Member Function Documentation

◆ free()

void Puma::Heap::free ( void *  p)
inline

Free the given memory.

Parameters
pA pointer to the memory to free.

◆ malloc()

void * Puma::Heap::malloc ( size_t  n)
inline

Allocate n bytes of memory.

Parameters
nThe number of bytes to allocate.
Returns
A pointer to memory allocated.