TrinityCore
GroupMgr Class Reference

#include <GroupMgr.h>

Public Types

typedef std::map< ObjectGuid::LowType, Group * > GroupContainer
 
typedef std::vector< Group * > GroupDbContainer
 

Public Member Functions

GroupGetGroupByGUID (ObjectGuid const &guid) const
 
uint32 GenerateNewGroupDbStoreId ()
 
void RegisterGroupDbStoreId (uint32 storageId, Group *group)
 
void FreeGroupDbStoreId (Group *group)
 
void SetNextGroupDbStoreId (uint32 storageId)
 
GroupGetGroupByDbStoreId (uint32 storageId) const
 
void SetGroupDbStoreSize (uint32 newSize)
 
void Update (uint32 diff)
 
void LoadGroups ()
 
ObjectGuid::LowType GenerateGroupId ()
 
void AddGroup (Group *group)
 
void RemoveGroup (Group *group)
 

Static Public Member Functions

static GroupMgrinstance ()
 

Protected Attributes

ObjectGuid::LowType NextGroupId
 
uint32 NextGroupDbStoreId
 
GroupContainer GroupStore
 
GroupDbContainer GroupDbStore
 

Private Member Functions

 GroupMgr ()
 
 ~GroupMgr ()
 

Detailed Description

Definition at line 26 of file GroupMgr.h.

Member Typedef Documentation

◆ GroupContainer

Definition at line 35 of file GroupMgr.h.

◆ GroupDbContainer

typedef std::vector<Group*> GroupMgr::GroupDbContainer

Definition at line 36 of file GroupMgr.h.

Constructor & Destructor Documentation

◆ GroupMgr()

GroupMgr::GroupMgr ( )
private

Definition at line 25 of file GroupMgr.cpp.

◆ ~GroupMgr()

GroupMgr::~GroupMgr ( )
private

Definition at line 31 of file GroupMgr.cpp.

Member Function Documentation

◆ AddGroup()

void GroupMgr::AddGroup ( Group group)

Definition at line 117 of file GroupMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FreeGroupDbStoreId()

void GroupMgr::FreeGroupDbStoreId ( Group group)

Definition at line 68 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ GenerateGroupId()

ObjectGuid::LowType GroupMgr::GenerateGroupId ( )

Definition at line 86 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ GenerateNewGroupDbStoreId()

uint32 GroupMgr::GenerateNewGroupDbStoreId ( )

Definition at line 37 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ GetGroupByDbStoreId()

Group * GroupMgr::GetGroupByDbStoreId ( uint32  storageId) const

Definition at line 78 of file GroupMgr.cpp.

+ Here is the caller graph for this function:

◆ GetGroupByGUID()

Group * GroupMgr::GetGroupByGUID ( ObjectGuid const &  guid) const

Definition at line 102 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

GroupMgr * GroupMgr::instance ( )
static

Definition at line 96 of file GroupMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadGroups()

void GroupMgr::LoadGroups ( )

Definition at line 127 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ RegisterGroupDbStoreId()

void GroupMgr::RegisterGroupDbStoreId ( uint32  storageId,
Group group 
)

Definition at line 59 of file GroupMgr.cpp.

+ Here is the caller graph for this function:

◆ RemoveGroup()

void GroupMgr::RemoveGroup ( Group group)

Definition at line 122 of file GroupMgr.cpp.

+ Here is the call graph for this function:

◆ SetGroupDbStoreSize()

void GroupMgr::SetGroupDbStoreSize ( uint32  newSize)
inline

Definition at line 45 of file GroupMgr.h.

◆ SetNextGroupDbStoreId()

void GroupMgr::SetNextGroupDbStoreId ( uint32  storageId)
inline

Definition at line 43 of file GroupMgr.h.

◆ Update()

void GroupMgr::Update ( uint32  diff)

Definition at line 111 of file GroupMgr.cpp.

Member Data Documentation

◆ GroupDbStore

GroupDbContainer GroupMgr::GroupDbStore
protected

Definition at line 58 of file GroupMgr.h.

◆ GroupStore

GroupContainer GroupMgr::GroupStore
protected

Definition at line 57 of file GroupMgr.h.

◆ NextGroupDbStoreId

uint32 GroupMgr::NextGroupDbStoreId
protected

Definition at line 56 of file GroupMgr.h.

◆ NextGroupId

ObjectGuid::LowType GroupMgr::NextGroupId
protected

Definition at line 55 of file GroupMgr.h.


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