SPH
Public Member Functions | List of all members
Segregator< TLimit, TSmall, TLarge > Class Template Reference

Compositor that uses one allocator for small allocations and another allocator for large allocations. More...

#include <Allocators.h>

Inheritance diagram for Segregator< TLimit, TSmall, TLarge >:

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 const TSmall & small () const
 
INLINE const TLarge & large () const
 

Detailed Description

template<std::size_t TLimit, typename TSmall, typename TLarge>
class Segregator< TLimit, TSmall, TLarge >

Compositor that uses one allocator for small allocations and another allocator for large allocations.

Definition at line 132 of file Allocators.h.

Member Function Documentation

◆ allocate()

template<std::size_t TLimit, typename TSmall , typename TLarge >
INLINE MemoryBlock Segregator< TLimit, TSmall, TLarge >::allocate ( const std::size_t  size,
const std::size_t  align 
)
inlinenoexcept

Definition at line 134 of file Allocators.h.

◆ deallocate()

template<std::size_t TLimit, typename TSmall , typename TLarge >
INLINE void Segregator< TLimit, TSmall, TLarge >::deallocate ( MemoryBlock block)
inlinenoexcept

Definition at line 142 of file Allocators.h.

◆ large()

template<std::size_t TLimit, typename TSmall , typename TLarge >
INLINE const TLarge& Segregator< TLimit, TSmall, TLarge >::large ( ) const
inline

Definition at line 162 of file Allocators.h.

◆ owns()

template<std::size_t TLimit, typename TSmall , typename TLarge >
INLINE bool Segregator< TLimit, TSmall, TLarge >::owns ( const MemoryBlock block) const
inlinenoexcept

Definition at line 150 of file Allocators.h.

◆ small()

template<std::size_t TLimit, typename TSmall , typename TLarge >
INLINE const TSmall& Segregator< TLimit, TSmall, TLarge >::small ( ) const
inline

Definition at line 158 of file Allocators.h.


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