TrinityCore
HashMapHolder< T > Class Template Reference

#include <ObjectAccessor.h>

Public Types

typedef std::unordered_map< ObjectGuid, T * > MapType
 

Static Public Member Functions

static void Insert (T *o)
 
static void Remove (T *o)
 
static T * Find (ObjectGuid guid)
 
static MapTypeGetContainer ()
 
static std::shared_mutex * GetLock ()
 

Private Member Functions

 HashMapHolder ()
 

Detailed Description

template<class T>
class HashMapHolder< T >

Definition at line 41 of file ObjectAccessor.h.

Member Typedef Documentation

◆ MapType

template<class T >
typedef std::unordered_map<ObjectGuid, T*> HashMapHolder< T >::MapType

Definition at line 48 of file ObjectAccessor.h.

Constructor & Destructor Documentation

◆ HashMapHolder()

template<class T >
HashMapHolder< T >::HashMapHolder ( )
inlineprivate

Definition at line 44 of file ObjectAccessor.h.

Member Function Documentation

◆ Find()

template<class T >
T * HashMapHolder< T >::Find ( ObjectGuid  guid)
static

Definition at line 51 of file ObjectAccessor.cpp.

+ Here is the caller graph for this function:

◆ GetContainer()

template<class T >
auto HashMapHolder< T >::GetContainer
static

Definition at line 60 of file ObjectAccessor.cpp.

+ Here is the caller graph for this function:

◆ GetLock()

template<class T >
std::shared_mutex * HashMapHolder< T >::GetLock
static

Definition at line 67 of file ObjectAccessor.cpp.

◆ Insert()

template<class T >
void HashMapHolder< T >::Insert ( T *  o)
static

Definition at line 32 of file ObjectAccessor.cpp.

+ Here is the caller graph for this function:

◆ Remove()

template<class T >
void HashMapHolder< T >::Remove ( T *  o)
static

Definition at line 43 of file ObjectAccessor.cpp.

+ Here is the caller graph for this function:

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