TrinityCore
UpdateMask< Bits > Class Template Reference

#include <UpdateMask.h>

Public Member Functions

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

Static Public Attributes

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

Private Attributes

std::array< uint32, BlocksMaskCount_blocksMask
 
std::array< uint32, BlockCount_blocks
 

Detailed Description

template<uint32 Bits>
class UpdateMask< Bits >

Definition at line 32 of file UpdateMask.h.

Constructor & Destructor Documentation

◆ UpdateMask() [1/2]

template<uint32 Bits>
constexpr UpdateMask< Bits >::UpdateMask ( )
inlineconstexpr

Definition at line 38 of file UpdateMask.h.

◆ UpdateMask() [2/2]

template<uint32 Bits>
constexpr UpdateMask< Bits >::UpdateMask ( std::array< uint32, BlockCount > const &  init)
inlineconstexpr

Definition at line 42 of file UpdateMask.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ GetBlock()

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

Definition at line 59 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ GetBlocksMask()

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

Definition at line 54 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ IsAnySet()

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

Definition at line 69 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ operator&=()

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

Definition at line 113 of file UpdateMask.h.

+ Here is the call graph for this function:

◆ operator[]()

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

Definition at line 64 of file UpdateMask.h.

+ Here is the call graph for this function:

◆ operator|=()

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

Definition at line 125 of file UpdateMask.h.

◆ Reset()

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

Definition at line 77 of file UpdateMask.h.

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

◆ ResetAll()

template<uint32 Bits>
constexpr void UpdateMask< Bits >::ResetAll ( )
inlineconstexpr

Definition at line 84 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ Set()

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

Definition at line 90 of file UpdateMask.h.

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

◆ SetAll()

template<uint32 Bits>
constexpr void UpdateMask< Bits >::SetAll ( )
inlineconstexpr

Definition at line 97 of file UpdateMask.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _blocks

template<uint32 Bits>
std::array<uint32, BlockCount> UpdateMask< Bits >::_blocks
private

Definition at line 138 of file UpdateMask.h.

◆ _blocksMask

template<uint32 Bits>
std::array<uint32, BlocksMaskCount> UpdateMask< Bits >::_blocksMask
private

Definition at line 137 of file UpdateMask.h.

◆ BlockCount

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

Definition at line 35 of file UpdateMask.h.

◆ BlocksMaskCount

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

Definition at line 36 of file UpdateMask.h.


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