hx3d
1
2D/3D Simple Game Framework
|
Map of whatever you want. Useful for user data. More...
#include <object_map.hpp>
Public Member Functions | |
template<class T > | |
T * | get (std::string name) |
Get a named value. More... | |
template<class T > | |
T & | getValue (std::string name) |
Get the value of a named value (because values are all pointers) More... | |
template<class T > | |
void | set (std::string name, T *object) |
Set a named value. More... | |
Map of whatever you want. Useful for user data.
Definition at line 34 of file object_map.hpp.
T * hx3d::ObjectMap::get | ( | std::string | name | ) |
Get a named value.
name | Key |
Definition at line 24 of file object_map.inl.hpp.
T & hx3d::ObjectMap::getValue | ( | std::string | name | ) |
Get the value of a named value (because values are all pointers)
name | Key |
Definition at line 29 of file object_map.inl.hpp.
void hx3d::ObjectMap::set | ( | std::string | name, |
T * | object | ||
) |