NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoN::AllocatorContext Class Reference

#include <allocator.hpp>

Public Member Functions

void setStrategy (std::unique_ptr< AllocatorStrategy > strategyIn)
 
template<typename T >
T * alloc (size_t elements) const
 allocate a space for n elements of type T

 
template<typename T >
T * realloc (void *ptr, size_t elements) const
 reallocate a space for n elements of type T

 
void free (void *ptr) const
 

Detailed Description

Definition at line 49 of file allocator.hpp.

Member Function Documentation

◆ alloc()

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

allocate a space for n elements of type T

Definition at line 63 of file allocator.hpp.

◆ free()

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

Definition at line 83 of file allocator.hpp.

◆ realloc()

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

reallocate a space for n elements of type T

Definition at line 74 of file allocator.hpp.

◆ setStrategy()

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

Definition at line 56 of file allocator.hpp.


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