NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::AllocatorContext Class Reference

#include <allocator.hpp>

Public Member Functions

void setStrategy (std::unique_ptr< AllocatorStrategy > strategyIn)
template<typename T>
T * alloc (sizeType elements) const
 allocate a space for n elements of type T
template<typename T>
T * realloc (void *ptr, sizeType elements) const
 reallocate a space for n elements of type T
void free (void *ptr) const

Detailed Description

Definition at line 50 of file allocator.hpp.

Member Function Documentation

◆ alloc()

template<typename T>
T * NeoN::AllocatorContext::alloc ( sizeType elements) const
inline

allocate a space for n elements of type T

Definition at line 64 of file allocator.hpp.

◆ free()

void NeoN::AllocatorContext::free ( void * ptr) const
inline

Definition at line 84 of file allocator.hpp.

◆ realloc()

template<typename T>
T * NeoN::AllocatorContext::realloc ( void * ptr,
sizeType elements ) const
inline

reallocate a space for n elements of type T

Definition at line 75 of file allocator.hpp.

◆ setStrategy()

void NeoN::AllocatorContext::setStrategy ( std::unique_ptr< AllocatorStrategy > strategyIn)
inline

Definition at line 57 of file allocator.hpp.


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