Pyrogenesis trunk
|
A fast replacement for map<entity_id_t, T>. More...
#include <EntityMap.h>
Classes | |
struct | _iter |
struct | key_val |
Public Types | |
typedef entity_id_t | key_type |
typedef T | mapped_type |
typedef key_val< entity_id_t, T > | value_type |
typedef _iter< value_type > | iterator |
typedef _iter< value_type const > | const_iterator |
Public Member Functions | |
EntityMap () | |
~EntityMap () | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bool | empty () const |
size_t | size () const |
void | insert (const key_type key, const mapped_type &value) |
void | erase (iterator it) |
void | erase (const entity_id_t key) |
void | clear () |
iterator | find (const entity_id_t key) |
const_iterator | find (const entity_id_t key) const |
size_t | count (const entity_id_t key) const |
Private Member Functions | |
EntityMap (const EntityMap &) | |
EntityMap & | operator= (const EntityMap &) |
Private Attributes | |
size_t | m_BufferSize |
size_t | m_BufferCapacity |
value_type * | m_Buffer |
size_t | m_Count |
A fast replacement for map<entity_id_t, T>.
We make the following assumptions:
typedef _iter<value_type const> EntityMap< T >::const_iterator |
typedef _iter<value_type> EntityMap< T >::iterator |
typedef entity_id_t EntityMap< T >::key_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |