AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "DataMap.h"
Classes | |
class | Base |
Public Member Functions | |
template<class T > | |
T * | Get (std::string const &k) const |
template<class T , typename std::enable_if< std::is_default_constructible< T >::value, int >::type = 0> | |
T * | GetDefault (std::string const &k) |
void | Set (std::string const &k, Base *v) |
bool | Erase (std::string const &k) |
Private Attributes | |
std::unordered_map< std::string, std::unique_ptr< Base > > | Container |
|
inline |
Removes objects with given key and returns true if one was removed, false otherwise
References Container.
|
inline |
Returns a pointer to object of requested type stored with given key or nullptr
References Container.
|
inline |
Returns a pointer to object of requested type stored with given key or default constructs one and returns that one
References Container.
|
inline |
|
private |
Referenced by Erase(), Get(), GetDefault(), and Set().