Gamedev Framework (gf)  0.17.0
A C++14 framework for 2D games
Classes | Public Member Functions | List of all members
gf::BlockAllocator< T > Class Template Reference

#include <gf/spatial/BlockAllocator.h>

Public Member Functions

 BlockAllocator ()
 
std::size_t allocate ()
 
void dispose (std::size_t index)
 
Toperator[] (std::size_t index)
 
const Toperator[] (std::size_t index) const
 
void clear ()
 
std::size_t getAllocated () const
 

Constructor & Destructor Documentation

◆ BlockAllocator()

template<typename T>
gf::BlockAllocator< T >::BlockAllocator ( )
inline

Member Function Documentation

◆ allocate()

template<typename T>
std::size_t gf::BlockAllocator< T >::allocate ( )
inline

◆ clear()

template<typename T>
void gf::BlockAllocator< T >::clear ( )
inline

◆ dispose()

template<typename T>
void gf::BlockAllocator< T >::dispose ( std::size_t  index)
inline

◆ getAllocated()

template<typename T>
std::size_t gf::BlockAllocator< T >::getAllocated ( ) const
inline

◆ operator[]() [1/2]

template<typename T>
T& gf::BlockAllocator< T >::operator[] ( std::size_t  index)
inline

◆ operator[]() [2/2]

template<typename T>
const T& gf::BlockAllocator< T >::operator[] ( std::size_t  index) const
inline