GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::RangeAllocator< Index > Class Template Reference

#include <GREM/core/data/RangeAllocator.hpp>

Public Types

using size_type = decltype(std::declval<Index>() - std::declval<Index>())

Public Member Functions

 RangeAllocator () noexcept=default
 ~RangeAllocator ()=default
 RangeAllocator (const RangeAllocator &)=delete
 RangeAllocator (RangeAllocator &&) noexcept=default
RangeAllocator & operator= (const RangeAllocator &)=delete
RangeAllocator & operator= (RangeAllocator &&) noexcept=default
 RangeAllocator (Index begin, Index end)
void clear () noexcept
Optional< IndexAllocation< Index > > allocateIndex ()
Optional< RangeAllocation< Index > > allocateRange (size_type size)
void deallocateIndex (IndexAllocation< Index > allocation) noexcept
void deallocateRange (RangeAllocation< Index > allocation) noexcept
void expandFrontTo (Index newBegin)
void expandBackTo (Index newEnd)
Index getFullRangeBegin () const noexcept
Index getFullRangeEnd () const noexcept
size_type getFullRangeSize () const noexcept
Index getUsedRangeBegin () const noexcept
Index getUsedRangeEnd () const noexcept
size_type getUsedRangeSize () const noexcept

Member Typedef Documentation

◆ size_type

template<typename Index>
using grem::RangeAllocator< Index >::size_type = decltype(std::declval<Index>() - std::declval<Index>())

Constructor & Destructor Documentation

◆ RangeAllocator() [1/4]

template<typename Index>
grem::RangeAllocator< Index >::RangeAllocator ( )
defaultnoexcept

◆ ~RangeAllocator()

template<typename Index>
grem::RangeAllocator< Index >::~RangeAllocator ( )
default

◆ RangeAllocator() [2/4]

template<typename Index>
grem::RangeAllocator< Index >::RangeAllocator ( const RangeAllocator< Index > & )
delete

◆ RangeAllocator() [3/4]

template<typename Index>
grem::RangeAllocator< Index >::RangeAllocator ( RangeAllocator< Index > && )
defaultnoexcept

◆ RangeAllocator() [4/4]

template<typename Index>
grem::RangeAllocator< Index >::RangeAllocator ( Index begin,
Index end )
inlineexplicit

Member Function Documentation

◆ operator=() [1/2]

template<typename Index>
RangeAllocator & grem::RangeAllocator< Index >::operator= ( const RangeAllocator< Index > & )
delete

◆ operator=() [2/2]

template<typename Index>
RangeAllocator & grem::RangeAllocator< Index >::operator= ( RangeAllocator< Index > && )
defaultnoexcept

◆ clear()

template<typename Index>
void grem::RangeAllocator< Index >::clear ( )
inlinenoexcept

◆ allocateIndex()

template<typename Index>
Optional< IndexAllocation< Index > > grem::RangeAllocator< Index >::allocateIndex ( )
inlinenodiscard

◆ allocateRange()

template<typename Index>
Optional< RangeAllocation< Index > > grem::RangeAllocator< Index >::allocateRange ( size_type size)
inlinenodiscard

◆ deallocateIndex()

template<typename Index>
void grem::RangeAllocator< Index >::deallocateIndex ( IndexAllocation< Index > allocation)
inlinenoexcept

◆ deallocateRange()

template<typename Index>
void grem::RangeAllocator< Index >::deallocateRange ( RangeAllocation< Index > allocation)
inlinenoexcept

◆ expandFrontTo()

template<typename Index>
void grem::RangeAllocator< Index >::expandFrontTo ( Index newBegin)
inline

◆ expandBackTo()

template<typename Index>
void grem::RangeAllocator< Index >::expandBackTo ( Index newEnd)
inline

◆ getFullRangeBegin()

template<typename Index>
Index grem::RangeAllocator< Index >::getFullRangeBegin ( ) const
inlinenodiscardnoexcept

◆ getFullRangeEnd()

template<typename Index>
Index grem::RangeAllocator< Index >::getFullRangeEnd ( ) const
inlinenodiscardnoexcept

◆ getFullRangeSize()

template<typename Index>
size_type grem::RangeAllocator< Index >::getFullRangeSize ( ) const
inlinenodiscardnoexcept

◆ getUsedRangeBegin()

template<typename Index>
Index grem::RangeAllocator< Index >::getUsedRangeBegin ( ) const
inlinenodiscardnoexcept

◆ getUsedRangeEnd()

template<typename Index>
Index grem::RangeAllocator< Index >::getUsedRangeEnd ( ) const
inlinenodiscardnoexcept

◆ getUsedRangeSize()

template<typename Index>
size_type grem::RangeAllocator< Index >::getUsedRangeSize ( ) const
inlinenodiscardnoexcept

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