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

Helper allocator that keeps track on allocated memory. More...

#include <Allocators.h>

Inheritance diagram for TrackingAllocator< TAllocator >:

Public Member Functions

INLINE MemoryBlock allocate (const std::size_t size, const std::size_t align) noexcept
 
INLINE void deallocate (MemoryBlock &block) noexcept
 
INLINE bool owns (const MemoryBlock &block) const noexcept
 
INLINE std::size_t allocated () const
 
INLINE const TAllocator & underlying () const
 

Detailed Description

template<typename TAllocator>
class TrackingAllocator< TAllocator >

Helper allocator that keeps track on allocated memory.

Definition at line 169 of file Allocators.h.

Member Function Documentation

◆ allocate()

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

Definition at line 174 of file Allocators.h.

◆ allocated()

template<typename TAllocator >
INLINE std::size_t TrackingAllocator< TAllocator >::allocated ( ) const
inline

Definition at line 193 of file Allocators.h.

◆ deallocate()

template<typename TAllocator >
INLINE void TrackingAllocator< TAllocator >::deallocate ( MemoryBlock block)
inlinenoexcept

Definition at line 182 of file Allocators.h.

◆ owns()

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

Definition at line 189 of file Allocators.h.

◆ underlying()

template<typename TAllocator >
INLINE const TAllocator& TrackingAllocator< TAllocator >::underlying ( ) const
inline

Definition at line 197 of file Allocators.h.


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