AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
TypeContainerVisitor.h File Reference

Go to the source code of this file.

Classes

class  TypeContainerVisitor< VISITOR, TYPE_CONTAINER >
 

Functions

template<class VISITOR , class TYPE_CONTAINER >
void VisitorHelper (VISITOR &v, TYPE_CONTAINER &c)
 
template<class VISITOR >
void VisitorHelper (VISITOR &, ContainerMapList< TypeNull > &)
 
template<class VISITOR , class T >
void VisitorHelper (VISITOR &v, ContainerMapList< T > &c)
 
template<class VISITOR , class H , class T >
void VisitorHelper (VISITOR &v, ContainerMapList< TypeList< H, T > > &c)
 
template<class VISITOR , class OBJECT_TYPES >
void VisitorHelper (VISITOR &v, TypeMapContainer< OBJECT_TYPES > &c)
 
template<class VISITOR , class KEY_TYPE >
void VisitorHelper (VISITOR &, ContainerUnorderedMap< TypeNull, KEY_TYPE > &)
 
template<class VISITOR , class KEY_TYPE , class T >
void VisitorHelper (VISITOR &v, ContainerUnorderedMap< T, KEY_TYPE > &c)
 
template<class VISITOR , class KEY_TYPE , class H , class T >
void VisitorHelper (VISITOR &v, ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > &c)
 
template<class VISITOR , class OBJECT_TYPES , class KEY_TYPE >
void VisitorHelper (VISITOR &v, TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE > &c)
 

Function Documentation

◆ VisitorHelper() [1/9]

template<class VISITOR >
void VisitorHelper ( VISITOR &  ,
ContainerMapList< TypeNull > &   
)
39{ }

◆ VisitorHelper() [2/9]

template<class VISITOR , class KEY_TYPE >
void VisitorHelper ( VISITOR &  ,
ContainerUnorderedMap< TypeNull, KEY_TYPE > &   
)
61{ }

◆ VisitorHelper() [3/9]

template<class VISITOR , class T >
void VisitorHelper ( VISITOR &  v,
ContainerMapList< T > &  c 
)
42{
43 v.Visit(c._element);
44}
GridRefMgr< OBJECT > _element
Definition: TypeContainer.h:39

References ContainerMapList< OBJECT >::_element.

◆ VisitorHelper() [4/9]

template<class VISITOR , class H , class T >
void VisitorHelper ( VISITOR &  v,
ContainerMapList< TypeList< H, T > > &  c 
)
48{
51}
void VisitorHelper(VISITOR &v, TYPE_CONTAINER &c)
Definition: TypeContainerVisitor.h:33
ContainerMapList< H > _elements
Definition: TypeContainer.h:50
ContainerMapList< T > _TailElements
Definition: TypeContainer.h:51

References VisitorHelper().

◆ VisitorHelper() [5/9]

template<class VISITOR , class KEY_TYPE , class T >
void VisitorHelper ( VISITOR &  v,
ContainerUnorderedMap< T, KEY_TYPE > &  c 
)
65{
66 v.Visit(c._element);
67}
std::unordered_map< KEY_TYPE, OBJECT * > _element
Definition: TypeContainer.h:57

References ContainerUnorderedMap< OBJECT, KEY_TYPE >::_element.

◆ VisitorHelper() [6/9]

template<class VISITOR , class KEY_TYPE , class H , class T >
void VisitorHelper ( VISITOR &  v,
ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > &  c 
)
71{
74}
ContainerUnorderedMap< T, KEY_TYPE > _TailElements
Definition: TypeContainer.h:69
ContainerUnorderedMap< H, KEY_TYPE > _elements
Definition: TypeContainer.h:68

References VisitorHelper().

◆ VisitorHelper() [7/9]

template<class VISITOR , class TYPE_CONTAINER >
void VisitorHelper ( VISITOR &  v,
TYPE_CONTAINER &  c 
)

◆ VisitorHelper() [8/9]

template<class VISITOR , class OBJECT_TYPES >
void VisitorHelper ( VISITOR &  v,
TypeMapContainer< OBJECT_TYPES > &  c 
)
55{
57}
ContainerMapList< OBJECT_TYPES > & GetElements()
Removes the object from the container, and returns the removed object.
Definition: TypeContainer.h:120

References TypeMapContainer< OBJECT_TYPES >::GetElements(), and VisitorHelper().

◆ VisitorHelper() [9/9]

template<class VISITOR , class OBJECT_TYPES , class KEY_TYPE >
void VisitorHelper ( VISITOR &  v,
TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE > &  c 
)
78{
80}
ContainerUnorderedMap< OBJECT_TYPES, KEY_TYPE > & GetElements()
Definition: TypeContainer.h:157

References TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::GetElements(), and VisitorHelper().