hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::ObjectMap Class Reference

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...
 

Detailed Description

Map of whatever you want. Useful for user data.

Definition at line 34 of file object_map.hpp.

Member Function Documentation

template<class T >
T * hx3d::ObjectMap::get ( std::string  name)

Get a named value.

Parameters
nameKey
Returns
Value

Definition at line 24 of file object_map.inl.hpp.

template<class T >
T & hx3d::ObjectMap::getValue ( std::string  name)

Get the value of a named value (because values are all pointers)

Parameters
nameKey
Returns
Value value

Definition at line 29 of file object_map.inl.hpp.

template<class T >
void hx3d::ObjectMap::set ( std::string  name,
T *  object 
)

Set a named value.

Parameters
nameKey
objectValue

Definition at line 34 of file object_map.inl.hpp.


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