Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
smlt::Polylist< Base, Classes > Class Template Reference

Classes

class  PolylistIterator
 

Public Types

typedef PolylistIterator< false > iterator
 
typedef PolylistIterator< true > const_iterator
 
typedef std::size_t id
 

Public Member Functions

 Polylist (const Polylist &)=delete
 
Polylistoperator= (const Polylist &)=delete
 
 Polylist (std::size_t chunk_size)
 
template<typename T , typename... Args>
std::pair< T *, id > create (Args &&... args)
 
iterator find (const id &i) const
 
iterator erase (iterator it)
 
void shrink_to_fit ()
 
void reserve (std::size_t amount)
 
iterator begin () const
 
iterator end () const
 
void clear ()
 
Base * operator[] (id i)
 
const Base * operator[] (id i) const
 
bool empty () const
 
std::size_t size () const
 
std::size_t capacity () const
 

Public Attributes

const std::size_t chunk_size
 

Static Public Attributes

static const std::size_t entry_size = _polylist::MaxSize<Base, Classes...>::value
 

Friends

class PolylistIterator< true >
 
class PolylistIterator< false >
 

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