TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ObjectGuidGeneratorBase Class Referenceabstract

#include <ObjectGuid.h>

Public Member Functions

 ObjectGuidGeneratorBase (ObjectGuid::LowType start=UI64LIT(1))
 
virtual void Set (uint64 val)
 
virtual ObjectGuid::LowType Generate ()=0
 
ObjectGuid::LowType GetNextAfterMaxUsed () const
 

Static Protected Member Functions

static void HandleCounterOverflow (HighGuid high)
 

Protected Attributes

uint64 _nextGuid
 

Constructor & Destructor Documentation

ObjectGuidGeneratorBase::ObjectGuidGeneratorBase ( ObjectGuid::LowType  start = UI64LIT(1))
inline
360 : _nextGuid(start) { }
uint64 _nextGuid
Definition: ObjectGuid.h:368

Member Function Documentation

virtual ObjectGuid::LowType ObjectGuidGeneratorBase::Generate ( )
pure virtual

Implemented in ObjectGuidGenerator< high >.

ObjectGuid::LowType ObjectGuidGeneratorBase::GetNextAfterMaxUsed ( ) const
inline
364 { return _nextGuid; }
uint64 _nextGuid
Definition: ObjectGuid.h:368
void ObjectGuidGeneratorBase::HandleCounterOverflow ( HighGuid  high)
staticprotected
194 {
195  TC_LOG_ERROR("misc", "%s guid overflow!! Can't continue, shutting down server. ", ObjectGuid::GetTypeName(high));
197 }
char const * GetTypeName() const
Definition: ObjectGuid.h:299
Definition: World.h:74
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
static void StopNow(uint8 exitcode)
Definition: World.h:662

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void ObjectGuidGeneratorBase::Set ( uint64  val)
inlinevirtual
362 { _nextGuid = val; }
uint64 _nextGuid
Definition: ObjectGuid.h:368

Member Data Documentation

uint64 ObjectGuidGeneratorBase::_nextGuid
protected

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