TrinityCore
InstanceLock Class Reference

#include <InstanceLockMgr.h>

+ Inheritance diagram for InstanceLock:

Public Member Functions

 InstanceLock (uint32 mapId, Difficulty difficultyId, InstanceResetTimePoint expiryTime, uint32 instanceId)
 
virtual ~InstanceLock ()
 
 InstanceLock (InstanceLock const &)=delete
 
 InstanceLock (InstanceLock &&)=delete
 
InstanceLockoperator= (InstanceLock const &)=delete
 
InstanceLockoperator= (InstanceLock &&)=delete
 
uint32 GetMapId () const
 
Difficulty GetDifficultyId () const
 
uint32 GetInstanceId () const
 
void SetInstanceId (uint32 instanceId)
 
InstanceResetTimePoint GetExpiryTime () const
 
void SetExpiryTime (InstanceResetTimePoint expiryTime)
 
bool IsExpired () const
 
bool IsExtended () const
 
void SetExtended (bool extended)
 
InstanceLockDataGetData ()
 
InstanceLockData const * GetData () const
 
virtual InstanceLockData const * GetInstanceInitializationData () const
 
InstanceResetTimePoint GetEffectiveExpiryTime () const
 
bool IsInUse () const
 
void SetInUse (bool inUse)
 
bool IsNew () const
 
void SetIsNew (bool isNew)
 

Private Attributes

uint32 _mapId
 
Difficulty _difficultyId
 
uint32 _instanceId
 
std::chrono::system_clock::time_point _expiryTime
 
bool _extended
 
InstanceLockData _data
 
bool _isInUse
 
bool _isNew
 

Detailed Description

Definition at line 83 of file InstanceLockMgr.h.

Constructor & Destructor Documentation

◆ InstanceLock() [1/3]

InstanceLock::InstanceLock ( uint32  mapId,
Difficulty  difficultyId,
InstanceResetTimePoint  expiryTime,
uint32  instanceId 
)

Definition at line 31 of file InstanceLockMgr.cpp.

◆ ~InstanceLock()

InstanceLock::~InstanceLock ( )
virtualdefault

◆ InstanceLock() [2/3]

InstanceLock::InstanceLock ( InstanceLock const &  )
delete

◆ InstanceLock() [3/3]

InstanceLock::InstanceLock ( InstanceLock &&  )
delete

Member Function Documentation

◆ GetData() [1/2]

InstanceLockData * InstanceLock::GetData ( )
inline

Definition at line 108 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ GetData() [2/2]

InstanceLockData const * InstanceLock::GetData ( ) const
inline

Definition at line 109 of file InstanceLockMgr.h.

◆ GetDifficultyId()

Difficulty InstanceLock::GetDifficultyId ( ) const
inline

Definition at line 96 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ GetEffectiveExpiryTime()

InstanceResetTimePoint InstanceLock::GetEffectiveExpiryTime ( ) const

Definition at line 44 of file InstanceLockMgr.cpp.

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

◆ GetExpiryTime()

InstanceResetTimePoint InstanceLock::GetExpiryTime ( ) const
inline

Definition at line 101 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ GetInstanceId()

uint32 InstanceLock::GetInstanceId ( ) const
inline

Definition at line 98 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ GetInstanceInitializationData()

virtual InstanceLockData const * InstanceLock::GetInstanceInitializationData ( ) const
inlinevirtual

Reimplemented in SharedInstanceLock.

Definition at line 111 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ GetMapId()

uint32 InstanceLock::GetMapId ( ) const
inline

Definition at line 94 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ IsExpired()

bool InstanceLock::IsExpired ( ) const

Definition at line 39 of file InstanceLockMgr.cpp.

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

◆ IsExtended()

bool InstanceLock::IsExtended ( ) const
inline

Definition at line 105 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ IsInUse()

bool InstanceLock::IsInUse ( ) const
inline

Definition at line 115 of file InstanceLockMgr.h.

◆ IsNew()

bool InstanceLock::IsNew ( ) const
inline

Definition at line 118 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

InstanceLock & InstanceLock::operator= ( InstanceLock &&  )
delete

◆ operator=() [2/2]

InstanceLock & InstanceLock::operator= ( InstanceLock const &  )
delete

◆ SetExpiryTime()

void InstanceLock::SetExpiryTime ( InstanceResetTimePoint  expiryTime)
inline

Definition at line 102 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ SetExtended()

void InstanceLock::SetExtended ( bool  extended)
inline

Definition at line 106 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ SetInstanceId()

void InstanceLock::SetInstanceId ( uint32  instanceId)
inline

Definition at line 99 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ SetInUse()

void InstanceLock::SetInUse ( bool  inUse)
inline

Definition at line 116 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

◆ SetIsNew()

void InstanceLock::SetIsNew ( bool  isNew)
inline

Definition at line 119 of file InstanceLockMgr.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _data

InstanceLockData InstanceLock::_data
private

Definition at line 127 of file InstanceLockMgr.h.

◆ _difficultyId

Difficulty InstanceLock::_difficultyId
private

Definition at line 123 of file InstanceLockMgr.h.

◆ _expiryTime

std::chrono::system_clock::time_point InstanceLock::_expiryTime
private

Definition at line 125 of file InstanceLockMgr.h.

◆ _extended

bool InstanceLock::_extended
private

Definition at line 126 of file InstanceLockMgr.h.

◆ _instanceId

uint32 InstanceLock::_instanceId
private

Definition at line 124 of file InstanceLockMgr.h.

◆ _isInUse

bool InstanceLock::_isInUse
private

Definition at line 128 of file InstanceLockMgr.h.

◆ _isNew

bool InstanceLock::_isNew
private

Definition at line 129 of file InstanceLockMgr.h.

◆ _mapId

uint32 InstanceLock::_mapId
private

Definition at line 122 of file InstanceLockMgr.h.


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