Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
GroupMgr Class Reference

#include <GroupMgr.h>

Public Types

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

Public Member Functions

void AddGroup (Group *group)
void FreeGroupDbStoreId (Group *group)
uint32 GenerateGroupId ()
uint32 GenerateNewGroupDbStoreId ()
GroupGetGroupByDbStoreId (uint32 storageId) const
GroupGetGroupByGUID (uint32 guid) const
void LoadGroups ()
void RegisterGroupDbStoreId (uint32 storageId, Group *group)
void RemoveGroup (Group *group)
void SetGroupDbStoreSize (uint32 newSize)
void SetNextGroupDbStoreId (uint32 storageId)

Protected Attributes

GroupDbContainer GroupDbStore
GroupContainer GroupStore
uint32 NextGroupDbStoreId
uint32 NextGroupId

Private Member Functions

 GroupMgr ()
 ~GroupMgr ()

Friends

class Skyfire::Singleton< GroupMgr, Skyfire::NullMutex >

Detailed Description

Definition at line 12 of file GroupMgr.h.

Member Typedef Documentation

◆ GroupContainer

typedef std::map<uint32, Group*> GroupMgr::GroupContainer

Definition at line 20 of file GroupMgr.h.

◆ GroupDbContainer

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

Definition at line 21 of file GroupMgr.h.

Constructor & Destructor Documentation

◆ GroupMgr()

GroupMgr::GroupMgr ( )
inlineprivate

Definition at line 16 of file GroupMgr.h.

References GroupMgr(), NextGroupDbStoreId, and NextGroupId.

Referenced by GroupMgr().

◆ ~GroupMgr()

GroupMgr::~GroupMgr ( )
private

Definition at line 12 of file GroupMgr.cpp.

References GroupStore.

Member Function Documentation

◆ AddGroup()

void GroupMgr::AddGroup ( Group * group)

Definition at line 86 of file GroupMgr.cpp.

References Group::GetLowGUID(), and GroupStore.

Referenced by LoadGroups().

◆ FreeGroupDbStoreId()

void GroupMgr::FreeGroupDbStoreId ( Group * group)

Definition at line 49 of file GroupMgr.cpp.

References Group::GetDbStoreId(), GroupDbStore, and NextGroupDbStoreId.

◆ GenerateGroupId()

uint32 GroupMgr::GenerateGroupId ( )

Definition at line 67 of file GroupMgr.cpp.

References ERROR_EXIT_CODE, NextGroupId, SF_LOG_ERROR, and World::StopNow().

◆ GenerateNewGroupDbStoreId()

uint32 GroupMgr::GenerateNewGroupDbStoreId ( )

◆ GetGroupByDbStoreId()

Group * GroupMgr::GetGroupByDbStoreId ( uint32 storageId) const

Definition at line 59 of file GroupMgr.cpp.

References GroupDbStore.

Referenced by LoadGroups().

◆ GetGroupByGUID()

Group * GroupMgr::GetGroupByGUID ( uint32 guid) const

Definition at line 77 of file GroupMgr.cpp.

References GroupStore.

◆ LoadGroups()

◆ RegisterGroupDbStoreId()

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

Definition at line 40 of file GroupMgr.cpp.

References GroupDbStore.

Referenced by LoadGroups().

◆ RemoveGroup()

void GroupMgr::RemoveGroup ( Group * group)

Definition at line 91 of file GroupMgr.cpp.

References Group::GetLowGUID(), and GroupStore.

◆ SetGroupDbStoreSize()

void GroupMgr::SetGroupDbStoreSize ( uint32 newSize)
inline

Definition at line 30 of file GroupMgr.h.

References GroupDbStore.

◆ SetNextGroupDbStoreId()

void GroupMgr::SetNextGroupDbStoreId ( uint32 storageId)
inline

Definition at line 28 of file GroupMgr.h.

References NextGroupDbStoreId.

◆ Skyfire::Singleton< GroupMgr, Skyfire::NullMutex >

Definition at line 1 of file GroupMgr.h.

Member Data Documentation

◆ GroupDbStore

◆ GroupStore

GroupContainer GroupMgr::GroupStore
protected

Definition at line 40 of file GroupMgr.h.

Referenced by AddGroup(), GetGroupByGUID(), RemoveGroup(), and ~GroupMgr().

◆ NextGroupDbStoreId

uint32 GroupMgr::NextGroupDbStoreId
protected

◆ NextGroupId

uint32 GroupMgr::NextGroupId
protected

Definition at line 38 of file GroupMgr.h.

Referenced by GenerateGroupId(), and GroupMgr().


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