TrinityCore
Loading...
Searching...
No Matches
ObjectGuidGenerator Class Reference

#include <ObjectGuidSequenceGenerator.h>

Public Member Functions

 ObjectGuidGenerator (HighGuid high, ObjectGuid::LowType start=UI64LIT(1))
 
void Set (ObjectGuid::LowType val)
 
ObjectGuid::LowType Generate ()
 
ObjectGuid::LowType GetNextAfterMaxUsed () const
 

Private Attributes

std::atomic< ObjectGuid::LowType_nextGuid
 
HighGuid _high
 

Detailed Description

Definition at line 24 of file ObjectGuidSequenceGenerator.h.

Constructor & Destructor Documentation

◆ ObjectGuidGenerator()

ObjectGuidGenerator::ObjectGuidGenerator ( HighGuid  high,
ObjectGuid::LowType  start = UI64LIT(1) 
)
inlineexplicit

Definition at line 27 of file ObjectGuidSequenceGenerator.h.

Member Function Documentation

◆ Generate()

ObjectGuid::LowType ObjectGuidGenerator::Generate ( )

Definition at line 51 of file ObjectGuidSequenceGenerator.cpp.

+ Here is the caller graph for this function:

◆ GetNextAfterMaxUsed()

ObjectGuid::LowType ObjectGuidGenerator::GetNextAfterMaxUsed ( ) const
inline

Definition at line 31 of file ObjectGuidSequenceGenerator.h.

◆ Set()

void ObjectGuidGenerator::Set ( ObjectGuid::LowType  val)
inline

Definition at line 29 of file ObjectGuidSequenceGenerator.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _high

HighGuid ObjectGuidGenerator::_high
private

Definition at line 35 of file ObjectGuidSequenceGenerator.h.

◆ _nextGuid

std::atomic<ObjectGuid::LowType> ObjectGuidGenerator::_nextGuid
private

Definition at line 34 of file ObjectGuidSequenceGenerator.h.


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