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.
 
 ~Heap ()
 Destructor.
 
void * malloc (size_t n)
 Allocate n bytes of memory.
 
void free (void *p)
 Free the given memory.
 

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.