|
Pyrogenesis
13997
|
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:
Definition at line 30 of file EntityMap.h.
| typedef _iter<value_type const> EntityMap< T >::const_iterator |
Definition at line 97 of file EntityMap.h.
| typedef _iter<value_type> EntityMap< T >::iterator |
Definition at line 96 of file EntityMap.h.
| typedef entity_id_t EntityMap< T >::key_type |
Definition at line 37 of file EntityMap.h.
| typedef T EntityMap< T >::mapped_type |
Definition at line 38 of file EntityMap.h.
| typedef key_val<entity_id_t, T> EntityMap< T >::value_type |
Definition at line 45 of file EntityMap.h.
Definition at line 56 of file EntityMap.h.
Definition at line 66 of file EntityMap.h.
Definition at line 99 of file EntityMap.h.
|
inline |
Definition at line 109 of file EntityMap.h.
Definition at line 194 of file EntityMap.h.
|
inline |
Definition at line 231 of file EntityMap.h.
Definition at line 121 of file EntityMap.h.
Definition at line 105 of file EntityMap.h.
|
inline |
Definition at line 115 of file EntityMap.h.
Definition at line 171 of file EntityMap.h.
|
inline |
Definition at line 181 of file EntityMap.h.
|
inline |
Definition at line 211 of file EntityMap.h.
|
inline |
Definition at line 221 of file EntityMap.h.
|
inline |
Definition at line 125 of file EntityMap.h.
Definition at line 122 of file EntityMap.h.
|
private |
Definition at line 50 of file EntityMap.h.
Definition at line 49 of file EntityMap.h.
Definition at line 48 of file EntityMap.h.
Definition at line 52 of file EntityMap.h.
1.8.5