libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Types | Public Member Functions | Friends | List of all members
donut::LinearAllocator< T > Class Template Reference

#include <donut/LinearAllocator.hpp>

Public Types

using value_type = T
 

Public Member Functions

 LinearAllocator (LinearMemoryResource *memoryResource) noexcept
 
template<typename U >
 LinearAllocator (const LinearAllocator< U > &other) noexcept
 
 LinearAllocator (const LinearAllocator &other) noexcept=default
 
 LinearAllocator (LinearAllocator &&other) noexcept=default
 
LinearAllocatoroperator= (const LinearAllocator &other) noexcept=default
 
LinearAllocatoroperator= (LinearAllocator &&other) noexcept=default
 
T * allocate (std::size_t n)
 
void deallocate (T *, std::size_t) noexcept
 
template<typename U >
bool operator== (const LinearAllocator< U > &other) const noexcept
 

Friends

template<typename U >
class LinearAllocator
 

Member Typedef Documentation

◆ value_type

template<typename T >
using donut::LinearAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ LinearAllocator() [1/4]

template<typename T >
donut::LinearAllocator< T >::LinearAllocator ( LinearMemoryResource memoryResource)
inlinenoexcept

◆ LinearAllocator() [2/4]

template<typename T >
template<typename U >
donut::LinearAllocator< T >::LinearAllocator ( const LinearAllocator< U > &  other)
inlinenoexcept

◆ LinearAllocator() [3/4]

template<typename T >
donut::LinearAllocator< T >::LinearAllocator ( const LinearAllocator< T > &  other)
defaultnoexcept

◆ LinearAllocator() [4/4]

template<typename T >
donut::LinearAllocator< T >::LinearAllocator ( LinearAllocator< T > &&  other)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
LinearAllocator& donut::LinearAllocator< T >::operator= ( const LinearAllocator< T > &  other)
defaultnoexcept

◆ operator=() [2/2]

template<typename T >
LinearAllocator& donut::LinearAllocator< T >::operator= ( LinearAllocator< T > &&  other)
defaultnoexcept

◆ allocate()

template<typename T >
T* donut::LinearAllocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<typename T >
void donut::LinearAllocator< T >::deallocate ( T *  ,
std::size_t   
)
inlinenoexcept

◆ operator==()

template<typename T >
template<typename U >
bool donut::LinearAllocator< T >::operator== ( const LinearAllocator< U > &  other) const
inlinenoexcept

Friends And Related Function Documentation

◆ LinearAllocator

template<typename T >
template<typename U >
friend class LinearAllocator
friend

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