TrinityCore
Loading...
Searching...
No Matches
MapStoredObjectsUnorderedMap< ObjectType > Struct Template Reference

#include <Map.h>

Public Types

using Container = std::unordered_map< ObjectGuid, ObjectType * >
 
using KeyType = ObjectGuid
 
using ValueType = ObjectType *
 

Static Public Member Functions

static bool Insert (Container &container, ValueType object)
 
static bool Remove (Container &container, ValueType object)
 
static std::size_t Size (Container const &container)
 
static ValueType Find (Container const &container, KeyType const &key)
 

Detailed Description

template<typename ObjectType>
struct MapStoredObjectsUnorderedMap< ObjectType >

Definition at line 190 of file Map.h.

Member Typedef Documentation

◆ Container

template<typename ObjectType >
using MapStoredObjectsUnorderedMap< ObjectType >::Container = std::unordered_map<ObjectGuid, ObjectType*>

Definition at line 192 of file Map.h.

◆ KeyType

template<typename ObjectType >
using MapStoredObjectsUnorderedMap< ObjectType >::KeyType = ObjectGuid

Definition at line 193 of file Map.h.

◆ ValueType

template<typename ObjectType >
using MapStoredObjectsUnorderedMap< ObjectType >::ValueType = ObjectType*

Definition at line 194 of file Map.h.

Member Function Documentation

◆ Find()

template<typename ObjectType >
static ValueType MapStoredObjectsUnorderedMap< ObjectType >::Find ( Container const &  container,
KeyType const &  key 
)
inlinestatic

Definition at line 214 of file Map.h.

◆ Insert()

template<typename ObjectType >
static bool MapStoredObjectsUnorderedMap< ObjectType >::Insert ( Container container,
ValueType  object 
)
inlinestatic

Definition at line 196 of file Map.h.

◆ Remove()

template<typename ObjectType >
static bool MapStoredObjectsUnorderedMap< ObjectType >::Remove ( Container container,
ValueType  object 
)
inlinestatic

Definition at line 203 of file Map.h.

◆ Size()

template<typename ObjectType >
static std::size_t MapStoredObjectsUnorderedMap< ObjectType >::Size ( Container const &  container)
inlinestatic

Definition at line 209 of file Map.h.


The documentation for this struct was generated from the following file: