TrinityCore
DB2HotfixGenerator< T > Class Template Reference

#include <DB2HotfixGenerator.h>

+ Inheritance diagram for DB2HotfixGenerator< T >:

Public Member Functions

 DB2HotfixGenerator (DB2Storage< T > &storage)
 
void ApplyHotfix (uint32 id, void(*fixer)(T *), bool notifyClient=false)
 
void ApplyHotfix (std::initializer_list< uint32 > ids, void(*fixer)(T *), bool notifyClient=false)
 
template<class I , class = typename std::enable_if<!std::is_void<decltype(*std::begin(std::declval<I>()))>::value, ::type >
void ApplyHotfix (I const &ids, void(*fixer)(T *), bool notifyClient=false)
 
uint32 GetAppliedHotfixesCount () const
 

Private Member Functions

void ApplyHotfix (uint32 const *begin, uint32 const *end, void(*fixer)(T *), bool notifyClient)
 

Private Attributes

DB2Storage< T > & _storage
 
uint32 _count
 

Additional Inherited Members

- Static Private Member Functions inherited from DB2HotfixGeneratorBase
static void LogMissingRecord (std::string const &storageName, uint32 recordId)
 
static void AddClientHotfix (uint32 tableHash, uint32 recordId)
 

Detailed Description

template<class T>
class DB2HotfixGenerator< T >

Definition at line 32 of file DB2HotfixGenerator.h.

Constructor & Destructor Documentation

◆ DB2HotfixGenerator()

template<class T >
DB2HotfixGenerator< T >::DB2HotfixGenerator ( DB2Storage< T > &  storage)
inlineexplicit

Definition at line 35 of file DB2HotfixGenerator.h.

Member Function Documentation

◆ ApplyHotfix() [1/4]

template<class T >
template<class I , class = typename std::enable_if<!std::is_void<decltype(*std::begin(std::declval<I>()))>::value, ::type >
void DB2HotfixGenerator< T >::ApplyHotfix ( I const &  ids,
void(*)(T *)  fixer,
bool  notifyClient = false 
)
inline

Definition at line 41 of file DB2HotfixGenerator.h.

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

◆ ApplyHotfix() [2/4]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( std::initializer_list< uint32 ids,
void(*)(T *)  fixer,
bool  notifyClient = false 
)
inline

Definition at line 38 of file DB2HotfixGenerator.h.

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

◆ ApplyHotfix() [3/4]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( uint32 const *  begin,
uint32 const *  end,
void(*)(T *)  fixer,
bool  notifyClient 
)
inlineprivate

Definition at line 46 of file DB2HotfixGenerator.h.

+ Here is the call graph for this function:

◆ ApplyHotfix() [4/4]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( uint32  id,
void(*)(T *)  fixer,
bool  notifyClient = false 
)
inline

Definition at line 37 of file DB2HotfixGenerator.h.

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

◆ GetAppliedHotfixesCount()

template<class T >
uint32 DB2HotfixGenerator< T >::GetAppliedHotfixesCount ( ) const
inline

Definition at line 43 of file DB2HotfixGenerator.h.

Member Data Documentation

◆ _count

template<class T >
uint32 DB2HotfixGenerator< T >::_count
private

Definition at line 67 of file DB2HotfixGenerator.h.

◆ _storage

template<class T >
DB2Storage<T>& DB2HotfixGenerator< T >::_storage
private

Definition at line 66 of file DB2HotfixGenerator.h.


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