TrinityCore
UpdateMask< Bits > Class Template Reference

#include <UpdateMask.h>

Public Member Functions

 UpdateMask ()
 
 UpdateMask (std::initializer_list< uint32 > init)
 
uint32 GetBlocksMask (uint32 index) const
 
uint32 GetBlock (uint32 index) const
 
bool operator[] (uint32 index) const
 
bool IsAnySet () const
 
void Reset (uint32 index)
 
void ResetAll ()
 
void Set (uint32 index)
 
void SetAll ()
 
UpdateMaskoperator&= (UpdateMask const &right)
 
UpdateMaskoperator|= (UpdateMask const &right)
 

Static Public Attributes

static constexpr uint32 BlockCount = (Bits + 31) / 32
 
static constexpr uint32 BlocksMaskCount = (BlockCount + 31) / 32
 

Private Member Functions

void InitFromBlocks (uint32 const *input, uint32 size)
 

Private Attributes

uint32 _blocksMask [BlocksMaskCount]
 
uint32 _blocks [BlockCount]
 

Detailed Description

template<uint32 Bits>
class UpdateMask< Bits >

Definition at line 31 of file UpdateMask.h.

Constructor & Destructor Documentation

◆ UpdateMask() [1/2]

template<uint32 Bits>
UpdateMask< Bits >::UpdateMask ( )
inline

Definition at line 37 of file UpdateMask.h.

◆ UpdateMask() [2/2]

template<uint32 Bits>
UpdateMask< Bits >::UpdateMask ( std::initializer_list< uint32 init)
inline

Definition at line 43 of file UpdateMask.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ GetBlock()

template<uint32 Bits>
uint32 UpdateMask< Bits >::GetBlock ( uint32  index) const
inline

Definition at line 53 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ GetBlocksMask()

template<uint32 Bits>
uint32 UpdateMask< Bits >::GetBlocksMask ( uint32  index) const
inline

Definition at line 48 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ InitFromBlocks()

template<uint32 Bits>
void UpdateMask< Bits >::InitFromBlocks ( uint32 const *  input,
uint32  size 
)
inlineprivate

Definition at line 131 of file UpdateMask.h.

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

◆ IsAnySet()

template<uint32 Bits>
bool UpdateMask< Bits >::IsAnySet ( ) const
inline

Definition at line 63 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ operator&=()

template<uint32 Bits>
UpdateMask & UpdateMask< Bits >::operator&= ( UpdateMask< Bits > const &  right)
inline

Definition at line 107 of file UpdateMask.h.

+ Here is the call graph for this function:

◆ operator[]()

template<uint32 Bits>
bool UpdateMask< Bits >::operator[] ( uint32  index) const
inline

Definition at line 58 of file UpdateMask.h.

◆ operator|=()

template<uint32 Bits>
UpdateMask & UpdateMask< Bits >::operator|= ( UpdateMask< Bits > const &  right)
inline

Definition at line 119 of file UpdateMask.h.

◆ Reset()

template<uint32 Bits>
void UpdateMask< Bits >::Reset ( uint32  index)
inline

Definition at line 71 of file UpdateMask.h.

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

◆ ResetAll()

template<uint32 Bits>
void UpdateMask< Bits >::ResetAll ( )
inline

Definition at line 78 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ Set()

template<uint32 Bits>
void UpdateMask< Bits >::Set ( uint32  index)
inline

Definition at line 84 of file UpdateMask.h.

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

◆ SetAll()

template<uint32 Bits>
void UpdateMask< Bits >::SetAll ( )
inline

Definition at line 91 of file UpdateMask.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _blocks

template<uint32 Bits>
uint32 UpdateMask< Bits >::_blocks[BlockCount]
private

Definition at line 145 of file UpdateMask.h.

◆ _blocksMask

template<uint32 Bits>
uint32 UpdateMask< Bits >::_blocksMask[BlocksMaskCount]
private

Definition at line 144 of file UpdateMask.h.

◆ BlockCount

template<uint32 Bits>
constexpr uint32 UpdateMask< Bits >::BlockCount = (Bits + 31) / 32
staticconstexpr

Definition at line 34 of file UpdateMask.h.

◆ BlocksMaskCount

template<uint32 Bits>
constexpr uint32 UpdateMask< Bits >::BlocksMaskCount = (BlockCount + 31) / 32
staticconstexpr

Definition at line 35 of file UpdateMask.h.


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