TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TypeMapContainer< OBJECT_TYPES > Class Template Reference

#include <TypeContainer.h>

Public Member Functions

template<class SPECIFIC_TYPE >
size_t Count () const
 
template<class SPECIFIC_TYPE >
bool insert (SPECIFIC_TYPE *obj)
 inserts a specific object into the container More...
 
ContainerMapList< OBJECT_TYPES > & GetElements (void)
 Removes the object from the container, and returns the removed object. More...
 
const ContainerMapList
< OBJECT_TYPES > & 
GetElements (void) const
 

Private Attributes

ContainerMapList< OBJECT_TYPES > i_elements
 

Member Function Documentation

template<class OBJECT_TYPES>
template<class SPECIFIC_TYPE >
size_t TypeMapContainer< OBJECT_TYPES >::Count ( ) const
inline
89 { return Trinity::Count(i_elements, (SPECIFIC_TYPE*)NULL); }
arena_t NULL
Definition: jemalloc_internal.h:624
size_t Count(ContainerMapList< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: TypeContainerFunctions.h:132
ContainerMapList< OBJECT_TYPES > i_elements
Definition: TypeContainer.h:111
template<class OBJECT_TYPES>
ContainerMapList<OBJECT_TYPES>& TypeMapContainer< OBJECT_TYPES >::GetElements ( void  )
inline

Removes the object from the container, and returns the removed object.

107 { return i_elements; }
ContainerMapList< OBJECT_TYPES > i_elements
Definition: TypeContainer.h:111

+ Here is the caller graph for this function:

template<class OBJECT_TYPES>
const ContainerMapList<OBJECT_TYPES>& TypeMapContainer< OBJECT_TYPES >::GetElements ( void  ) const
inline
108 { return i_elements;}
ContainerMapList< OBJECT_TYPES > i_elements
Definition: TypeContainer.h:111
template<class OBJECT_TYPES>
template<class SPECIFIC_TYPE >
bool TypeMapContainer< OBJECT_TYPES >::insert ( SPECIFIC_TYPE *  obj)
inline

inserts a specific object into the container

94  {
95  SPECIFIC_TYPE* t = Trinity::Insert(i_elements, obj);
96  return (t != NULL);
97  }
arena_t NULL
Definition: jemalloc_internal.h:624
bool Insert(ContainerUnorderedMap< SPECIFIC_TYPE, KEY_TYPE > &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *obj)
Definition: TypeContainerFunctions.h:38
ContainerMapList< OBJECT_TYPES > i_elements
Definition: TypeContainer.h:111

Member Data Documentation

template<class OBJECT_TYPES>
ContainerMapList<OBJECT_TYPES> TypeMapContainer< OBJECT_TYPES >::i_elements
private

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