TrinityCore
TypeMapContainer< OBJECT_TYPES > Class Template Reference

#include <TypeContainer.h>

Public Member Functions

 TypeMapContainer ()
 
 TypeMapContainer (TypeMapContainer const &)=default
 
 TypeMapContainer (TypeMapContainer &&) noexcept=default
 
TypeMapContaineroperator= (TypeMapContainer const &)=default
 
TypeMapContaineroperator= (TypeMapContainer &&) noexcept=default
 
 ~TypeMapContainer ()
 
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
 

Detailed Description

template<class OBJECT_TYPES>
class TypeMapContainer< OBJECT_TYPES >

Definition at line 82 of file TypeContainer.h.

Constructor & Destructor Documentation

◆ TypeMapContainer() [1/3]

template<class OBJECT_TYPES >
TypeMapContainer< OBJECT_TYPES >::TypeMapContainer ( )
default

◆ TypeMapContainer() [2/3]

template<class OBJECT_TYPES >
TypeMapContainer< OBJECT_TYPES >::TypeMapContainer ( TypeMapContainer< OBJECT_TYPES > const &  )
default

◆ TypeMapContainer() [3/3]

template<class OBJECT_TYPES >
TypeMapContainer< OBJECT_TYPES >::TypeMapContainer ( TypeMapContainer< OBJECT_TYPES > &&  )
defaultnoexcept

◆ ~TypeMapContainer()

template<class OBJECT_TYPES >
TypeMapContainer< OBJECT_TYPES >::~TypeMapContainer ( )
default

Member Function Documentation

◆ Count()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
size_t TypeMapContainer< OBJECT_TYPES >::Count

Definition at line 122 of file TypeContainer.h.

+ Here is the call graph for this function:

◆ GetElements() [1/2]

template<class OBJECT_TYPES >
const ContainerMapList< OBJECT_TYPES > & TypeMapContainer< OBJECT_TYPES >::GetElements ( void  )

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

Definition at line 136 of file TypeContainer.h.

+ Here is the caller graph for this function:

◆ GetElements() [2/2]

template<class OBJECT_TYPES >
const ContainerMapList< OBJECT_TYPES > & TypeMapContainer< OBJECT_TYPES >::GetElements ( void  ) const

◆ insert()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
bool TypeMapContainer< OBJECT_TYPES >::insert ( SPECIFIC_TYPE *  obj)

inserts a specific object into the container

Definition at line 129 of file TypeContainer.h.

+ Here is the call graph for this function:

◆ operator=() [1/2]

template<class OBJECT_TYPES >
TypeMapContainer & TypeMapContainer< OBJECT_TYPES >::operator= ( TypeMapContainer< OBJECT_TYPES > &&  )
defaultnoexcept

◆ operator=() [2/2]

template<class OBJECT_TYPES >
TypeMapContainer & TypeMapContainer< OBJECT_TYPES >::operator= ( TypeMapContainer< OBJECT_TYPES > const &  )
default

Member Data Documentation

◆ i_elements

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

Definition at line 111 of file TypeContainer.h.


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