SPH
Public Member Functions | List of all members
MonotonicMemoryResource< TAllocator > Class Template Reference

Simple memory resource with pre-allocated contiguous memory buffer. More...

#include <Allocators.h>

Inheritance diagram for MonotonicMemoryResource< TAllocator >:

Public Member Functions

 MonotonicMemoryResource (const std::size_t size, const std::size_t align)
 
 ~MonotonicMemoryResource ()
 
INLINE MemoryBlock allocate (const std::size_t size, const std::size_t UNUSED(align)) noexcept
 
INLINE bool owns (const MemoryBlock &block) const noexcept
 

Detailed Description

template<typename TAllocator>
class MonotonicMemoryResource< TAllocator >

Simple memory resource with pre-allocated contiguous memory buffer.

Definition at line 237 of file Allocators.h.

Constructor & Destructor Documentation

◆ MonotonicMemoryResource()

template<typename TAllocator >
MonotonicMemoryResource< TAllocator >::MonotonicMemoryResource ( const std::size_t  size,
const std::size_t  align 
)
inline

Definition at line 242 of file Allocators.h.

◆ ~MonotonicMemoryResource()

template<typename TAllocator >
MonotonicMemoryResource< TAllocator >::~MonotonicMemoryResource ( )
inline

Definition at line 246 of file Allocators.h.

Member Function Documentation

◆ allocate()

template<typename TAllocator >
INLINE MemoryBlock MonotonicMemoryResource< TAllocator >::allocate ( const std::size_t  size,
const std::size_t   UNUSEDalign 
)
inlinenoexcept

Definition at line 250 of file Allocators.h.

◆ owns()

template<typename TAllocator >
INLINE bool MonotonicMemoryResource< TAllocator >::owns ( const MemoryBlock block) const
inlinenoexcept

Definition at line 262 of file Allocators.h.


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