AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SecretMgr::Secret Struct Reference

#include "SecretMgr.h"

Public Member Functions

 operator bool () const
 
BigNumber const & operator* () const
 
BigNumber const * operator-> () const
 
bool IsAvailable () const
 

Private Types

enum  {
  NOT_LOADED_YET ,
  LOAD_FAILED ,
  NOT_PRESENT ,
  PRESENT
}
 

Private Attributes

std::mutex lock
 
enum SecretMgr::Secret:: { ... }  state = NOT_LOADED_YET
 
BigNumber value
 

Friends

class SecretMgr
 

Detailed Description

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NOT_LOADED_YET 
LOAD_FAILED 
NOT_PRESENT 
PRESENT 
enum SecretMgr::Secret::@372 state
@ NOT_LOADED_YET
Definition: SecretMgr.h:57
@ LOAD_FAILED
Definition: SecretMgr.h:57
@ PRESENT
Definition: SecretMgr.h:57
@ NOT_PRESENT
Definition: SecretMgr.h:57

Member Function Documentation

◆ IsAvailable()

bool SecretMgr::Secret::IsAvailable ( ) const
inline
53{ return (state != NOT_LOADED_YET) && (state != LOAD_FAILED); }

◆ operator bool()

SecretMgr::Secret::operator bool ( ) const
inlineexplicit
50{ return (state == PRESENT); }

◆ operator*()

BigNumber const & SecretMgr::Secret::operator* ( ) const
inline
51{ return value; }
BigNumber value
Definition: SecretMgr.h:58

◆ operator->()

BigNumber const * SecretMgr::Secret::operator-> ( ) const
inline
52{ return &value; }

Friends And Related Function Documentation

◆ SecretMgr

friend class SecretMgr
friend

Member Data Documentation

◆ lock

std::mutex SecretMgr::Secret::lock
private

◆ 

enum { ... } SecretMgr::Secret::state

◆ value

BigNumber SecretMgr::Secret::value
private