|
KarmaEngine
Game Engine for practical learning and research purposes
|
Karma's std::map wrapper. More...
#include <KarmaTypes.h>
Public Types | |
| typedef std::map< KeyType, ValueType > | AMap |
| typedef AMap::iterator | AnIterator |
Public Member Functions | |
| KarmaMap () | |
| Constructor. | |
| ValueType & | FindOrAdd (const KeyType &Key) |
| Find the value associated with a specified key, or if none exists, adds a value using the default constructor. | |
| ValueType * | Find (const KeyType &Key) |
| Find the value associated with a specified key. | |
Protected Attributes | |
| AMap | m_KeyValuePair |
Karma's std::map wrapper.
|
inline |
Constructor.
|
inline |
Find the value associated with a specified key.
| Key | The key to search for. |
|
inline |
Find the value associated with a specified key, or if none exists, adds a value using the default constructor.
Algorithm courtsey: https://stackoverflow.com/a/1409465
| Key | The key to search for. |