![]() |
Norbert's Game Engine v200
|
#include <Map.hpp>
Public Member Functions | |
| void | Push (T vl, eString id="") |
| Push an item to the collection. | |
| void | Pop (eString id) |
| Pop an item from the collection. | |
| void | Pop (uint id) |
| Pop an item from the collection by number index. | |
| void | Popa () |
| Clear the collection. | |
| T & | Get (eString id) |
| Returns item from collection. | |
| T & | Get (uint id) |
| Returns item from collection. | |
| std::vector< std::pair< eString, T > > & | Geta () |
| Returns collection. | |
| T & | operator[] (eString id) |
| T & | operator[] (uint id) |
| uint64 | Size () |
| Returns collection size. | |
| eString & | IdAt (uint i) |
| Returns item name from number index. | |
| bool | Find (eString name) |
| Returns true if item with such a name exists! | |
Public Member Functions inherited from eBase | |
| template<typename T > | |
| T * | Cast (eBase *obj) |
| Cast class to base. | |
Map container for objects
Returns item from collection.
Definition at line 71 of file Map.hpp.
|
inline |
Returns item from collection.
Definition at line 85 of file Map.hpp.
Returns item name from number index.
Definition at line 118 of file Map.hpp.
|
inline |
|
inline |
|
inline |
Push an item to the collection.
Definition at line 19 of file Map.hpp.
|
inline |