TrinityCore
PoolGroup< T > Class Template Reference

#include <PoolMgr.h>

Public Member Functions

 PoolGroup ()
 
 ~PoolGroup ()
 
 PoolGroup (PoolGroup const &right)=delete
 
 PoolGroup (PoolGroup &&right)=delete
 
PoolGroupoperator= (PoolGroup const &right)=delete
 
PoolGroupoperator= (PoolGroup &&right)=delete
 
void SetPoolId (uint32 pool_id)
 
bool isEmpty () const
 
bool isEmptyDeepCheck () const
 
void AddEntry (PoolObject &poolitem, uint32 maxentries)
 
bool CheckPool () const
 
void DespawnObject (SpawnedPoolData &spawns, uint64 guid=0, bool alwaysDeleteRespawnTime=false)
 
void Despawn1Object (SpawnedPoolData &spawns, uint64 guid, bool alwaysDeleteRespawnTime=false, bool saveRespawnTime=true)
 
void SpawnObject (SpawnedPoolData &spawns, uint32 limit, uint64 triggerFrom)
 
void RemoveRespawnTimeFromDB (SpawnedPoolData &spawns, uint64 guid)
 
void Spawn1Object (SpawnedPoolData &spawns, PoolObject *obj)
 
void ReSpawn1Object (SpawnedPoolData &spawns, PoolObject *obj)
 
void RemoveOneRelation (uint32 child_pool_id)
 
uint32 GetPoolId () const
 

Private Types

typedef std::vector< PoolObjectPoolObjectList
 

Private Attributes

uint32 poolId
 
PoolObjectList ExplicitlyChanced
 
PoolObjectList EqualChanced
 

Detailed Description

template<class T>
class PoolGroup< T >

Definition at line 87 of file PoolMgr.h.

Member Typedef Documentation

◆ PoolObjectList

template<class T >
typedef std::vector<PoolObject> PoolGroup< T >::PoolObjectList
private

Definition at line 89 of file PoolMgr.h.

Constructor & Destructor Documentation

◆ PoolGroup() [1/3]

template<class T >
PoolGroup< T >::PoolGroup
explicit

Definition at line 131 of file PoolMgr.cpp.

◆ ~PoolGroup()

template<class T >
PoolGroup< T >::~PoolGroup ( )
default

◆ PoolGroup() [2/3]

template<class T >
PoolGroup< T >::PoolGroup ( PoolGroup< T > const &  right)
delete

◆ PoolGroup() [3/3]

template<class T >
PoolGroup< T >::PoolGroup ( PoolGroup< T > &&  right)
delete

Member Function Documentation

◆ AddEntry()

template<class T >
void PoolGroup< T >::AddEntry ( PoolObject poolitem,
uint32  maxentries 
)

Definition at line 160 of file PoolMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckPool()

template<class T >
bool PoolGroup< T >::CheckPool

Definition at line 170 of file PoolMgr.cpp.

◆ Despawn1Object()

template<class T >
void PoolGroup< T >::Despawn1Object ( SpawnedPoolData spawns,
uint64  guid,
bool  alwaysDeleteRespawnTime = false,
bool  saveRespawnTime = true 
)

◆ DespawnObject()

template<class T >
void PoolGroup< T >::DespawnObject ( SpawnedPoolData spawns,
uint64  guid = 0,
bool  alwaysDeleteRespawnTime = false 
)

Definition at line 187 of file PoolMgr.cpp.

+ Here is the call graph for this function:

◆ GetPoolId()

template<class T >
uint32 PoolGroup< T >::GetPoolId ( ) const
inline

Definition at line 112 of file PoolMgr.h.

◆ isEmpty()

template<class T >
bool PoolGroup< T >::isEmpty ( ) const
inline

Definition at line 100 of file PoolMgr.h.

◆ isEmptyDeepCheck()

template<class T >
bool PoolGroup< T >::isEmptyDeepCheck

Definition at line 139 of file PoolMgr.cpp.

◆ operator=() [1/2]

template<class T >
PoolGroup & PoolGroup< T >::operator= ( PoolGroup< T > &&  right)
delete

◆ operator=() [2/2]

template<class T >
PoolGroup & PoolGroup< T >::operator= ( PoolGroup< T > const &  right)
delete

◆ RemoveOneRelation()

template<class T >
void PoolGroup< T >::RemoveOneRelation ( uint32  child_pool_id)

◆ RemoveRespawnTimeFromDB()

template<class T >
void PoolGroup< T >::RemoveRespawnTimeFromDB ( SpawnedPoolData spawns,
uint64  guid 
)

◆ ReSpawn1Object()

template<class T >
void PoolGroup< T >::ReSpawn1Object ( SpawnedPoolData spawns,
PoolObject obj 
)

◆ SetPoolId()

template<class T >
void PoolGroup< T >::SetPoolId ( uint32  pool_id)
inline

Definition at line 99 of file PoolMgr.h.

+ Here is the caller graph for this function:

◆ Spawn1Object()

template<class T >
void PoolGroup< T >::Spawn1Object ( SpawnedPoolData spawns,
PoolObject obj 
)

◆ SpawnObject()

template<class T >
void PoolGroup< T >::SpawnObject ( SpawnedPoolData spawns,
uint32  limit,
uint64  triggerFrom 
)

Definition at line 289 of file PoolMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ EqualChanced

template<class T >
PoolObjectList PoolGroup< T >::EqualChanced
private

Definition at line 116 of file PoolMgr.h.

◆ ExplicitlyChanced

template<class T >
PoolObjectList PoolGroup< T >::ExplicitlyChanced
private

Definition at line 115 of file PoolMgr.h.

◆ poolId

template<class T >
uint32 PoolGroup< T >::poolId
private

Definition at line 114 of file PoolMgr.h.


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