xyginext  0.2.0
Second generation of xygine game creation framework
Public Member Functions | List of all members
xy::Detail::ComponentPool< T > Class Template Referencefinal

memory pooling for components More...

#include <ComponentPool.hpp>

Inheritance diagram for xy::Detail::ComponentPool< T >:
xy::Detail::Pool

Public Member Functions

 ComponentPool (std::size_t size=256)
 
bool empty () const
 
std::size_t size () const
 
void resize (std::size_t size)
 
void clear () override
 
T & at (std::size_t idx)
 
const T & at (std::size_t idx) const
 
T & operator[] (std::size_t index)
 
const T & operator[] (std::size_t index) const
 
void reset (std::size_t index) override
 

Detailed Description

template<class T>
class xy::Detail::ComponentPool< T >

memory pooling for components