AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
TypeVectorContainer< OBJECT_TYPES > Class Template Reference

#include "TypeContainer.h"

Public Member Functions

template<class SPECIFIC_TYPE >
std::size_t Count () const
 
template<class SPECIFIC_TYPE >
bool Insert (SPECIFIC_TYPE *obj)
 
template<class SPECIFIC_TYPE >
bool Remove (SPECIFIC_TYPE *obj)
 
ContainerVector< OBJECT_TYPES > & GetElements ()
 
const ContainerVector< OBJECT_TYPES > & GetElements () const
 

Private Attributes

ContainerVector< OBJECT_TYPES > i_elements
 

Detailed Description

template<class OBJECT_TYPES>
class TypeVectorContainer< OBJECT_TYPES >

Member Function Documentation

◆ Count()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
std::size_t TypeVectorContainer< OBJECT_TYPES >::Count ( ) const
inline
149{ return Acore::Count(i_elements, (SPECIFIC_TYPE*)nullptr); }
ContainerVector< OBJECT_TYPES > i_elements
Definition TypeContainer.h:169
std::size_t Count(const ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *)
Definition TypeContainerFunctions.h:159

References Acore::Count(), and TypeVectorContainer< OBJECT_TYPES >::i_elements.

◆ GetElements() [1/2]

template<class OBJECT_TYPES >
ContainerVector< OBJECT_TYPES > & TypeVectorContainer< OBJECT_TYPES >::GetElements ( )
inline

◆ GetElements() [2/2]

template<class OBJECT_TYPES >
const ContainerVector< OBJECT_TYPES > & TypeVectorContainer< OBJECT_TYPES >::GetElements ( ) const
inline

◆ Insert()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
bool TypeVectorContainer< OBJECT_TYPES >::Insert ( SPECIFIC_TYPE *  obj)
inline
153 {
154 SPECIFIC_TYPE* t = Acore::Insert(i_elements, obj);
155 return (t != nullptr);
156 }
bool Insert(ContainerUnorderedMap< SPECIFIC_TYPE, KEY_TYPE > &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *obj)
Definition TypeContainerFunctions.h:34

References TypeVectorContainer< OBJECT_TYPES >::i_elements, and Acore::Insert().

◆ Remove()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
bool TypeVectorContainer< OBJECT_TYPES >::Remove ( SPECIFIC_TYPE *  obj)
inline
160 {
161 SPECIFIC_TYPE* t = Acore::Remove(i_elements, obj);
162 return (t != nullptr);
163 }
bool Remove(ContainerUnorderedMap< SPECIFIC_TYPE, KEY_TYPE > &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *)
Definition TypeContainerFunctions.h:104

References TypeVectorContainer< OBJECT_TYPES >::i_elements, and Acore::Remove().

Member Data Documentation

◆ i_elements


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