API Documentation
Public Member Functions | List of all members
nkMemory::MemorySpaceAllocator< T > Class Template Referenceabstract

Defines the interface for a memory space allocator, to be used within the pagers. More...

Inheritance diagram for nkMemory::MemorySpaceAllocator< T >:
nkMemory::DefaultMemorySpaceAllocator< T >

Public Member Functions

virtual ~MemorySpaceAllocator ()=default
 
virtual UniquePtr< T > allocate (unsigned long long size)=0
 

Detailed Description

template<typename T>
class nkMemory::MemorySpaceAllocator< T >

Defines the interface for a memory space allocator, to be used within the pagers.

Constructor & Destructor Documentation

◆ ~MemorySpaceAllocator()

template<typename T >
virtual nkMemory::MemorySpaceAllocator< T >::~MemorySpaceAllocator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ allocate()

template<typename T >
virtual UniquePtr<T> nkMemory::MemorySpaceAllocator< T >::allocate ( unsigned long long  size)
pure virtual

Allocates a memory space of given size.

Parameters
sizeThe size of the memory space that should be allocated, in number of elements.

Implemented in nkMemory::DefaultMemorySpaceAllocator< T >.


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