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

Represents a memory space held by a page in a pager. More...

Public Member Functions

virtual ~MemorySpace ()=default
 
virtual T getBasePtr () const =0
 
virtual T getOffsetPtr (unsigned long long offset) const =0
 

Detailed Description

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

Represents a memory space held by a page in a pager.

Constructor & Destructor Documentation

◆ ~MemorySpace()

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

Destructor.

Member Function Documentation

◆ getBasePtr()

template<typename T >
virtual T nkMemory::MemorySpace< T >::getBasePtr ( ) const
pure virtual
Returns
The base pointer, pointing to the beginning of the memory space.
Remarks
This function is used by the pagers to be able to address the memory space.

◆ getOffsetPtr()

template<typename T >
virtual T nkMemory::MemorySpace< T >::getOffsetPtr ( unsigned long long  offset) const
pure virtual
Parameters
offsetThe offset in the memory space.
Returns
The offset pointer, pointing to the address in the space corresponding to the offset given.
Remarks
This function is used by the pagers to be able to address the memory space.

Implemented in nkMemory::DefaultMemorySpace.


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