lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Allocator Class Referenceabstract

Abstract allocator interface with malloc() and free(). More...

#include <Allocator.hh>

Inherited by Heap, and Stack.

Public Member Functions

virtual void * malloc (size_t size)=0
 Allocate size bytes.
 
virtual void free (void *ptr)=0
 Release ptr.
 

Detailed Description

Abstract allocator interface with malloc() and free().

Member Function Documentation

◆ free()

virtual void Allocator::free ( void *  ptr)
pure virtual

Release ptr.

Pure virtual.

◆ malloc()

virtual void * Allocator::malloc ( size_t  size)
pure virtual

Allocate size bytes.

Pure virtual.


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