TrinityCore
UF::DynamicUpdateFieldBase< T > Class Template Reference

#include <UpdateField.h>

+ Inheritance diagram for UF::DynamicUpdateFieldBase< T >:

Public Types

using value_type = T
 

Public Member Functions

T const * data () const
 
std::vector< T >::const_iterator begin () const
 
std::vector< T >::const_iterator end () const
 
bool empty () const
 
std::size_t size () const
 
T const & operator[] (std::size_t index) const
 
int32 FindIndex (T const &value) const
 
template<typename Pred >
int32 FindIndexIf (Pred pred) const
 
bool HasChanged (uint32 index) const
 
void WriteUpdateMask (ByteBuffer &data, int32 bitsForSize=32) const
 

Private Member Functions

void MarkChanged (std::size_t index)
 
void ClearChanged (std::size_t index)
 
void ClearChangesMask ()
 

Private Attributes

std::vector< T > _values
 
std::vector< uint32_updateMask
 

Friends

template<typename F , bool PublicSet>
struct MutableFieldReference
 
template<typename F , bool PublicSet>
struct MutableNestedFieldReference
 
template<std::size_t Bits>
class HasChangesMask
 

Detailed Description

template<typename T>
class UF::DynamicUpdateFieldBase< T >

Definition at line 816 of file UpdateField.h.

Member Typedef Documentation

◆ value_type

template<typename T >
using UF::DynamicUpdateFieldBase< T >::value_type = T

Definition at line 828 of file UpdateField.h.

Member Function Documentation

◆ begin()

template<typename T >
std::vector< T >::const_iterator UF::DynamicUpdateFieldBase< T >::begin ( ) const
inline

Definition at line 835 of file UpdateField.h.

◆ ClearChanged()

template<typename T >
void UF::DynamicUpdateFieldBase< T >::ClearChanged ( std::size_t  index)
inlineprivate

Definition at line 899 of file UpdateField.h.

+ Here is the call graph for this function:

◆ ClearChangesMask()

template<typename T >
void UF::DynamicUpdateFieldBase< T >::ClearChangesMask ( )
inlineprivate

Definition at line 908 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ data()

template<typename T >
T const * UF::DynamicUpdateFieldBase< T >::data ( ) const
inline

Definition at line 830 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ empty()

template<typename T >
bool UF::DynamicUpdateFieldBase< T >::empty ( ) const
inline

Definition at line 845 of file UpdateField.h.

◆ end()

template<typename T >
std::vector< T >::const_iterator UF::DynamicUpdateFieldBase< T >::end ( ) const
inline

Definition at line 840 of file UpdateField.h.

◆ FindIndex()

template<typename T >
int32 UF::DynamicUpdateFieldBase< T >::FindIndex ( T const &  value) const
inline

Definition at line 860 of file UpdateField.h.

◆ FindIndexIf()

template<typename T >
template<typename Pred >
int32 UF::DynamicUpdateFieldBase< T >::FindIndexIf ( Pred  pred) const
inline

Definition at line 870 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ HasChanged()

template<typename T >
bool UF::DynamicUpdateFieldBase< T >::HasChanged ( uint32  index) const
inline

Definition at line 879 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ MarkChanged()

template<typename T >
void UF::DynamicUpdateFieldBase< T >::MarkChanged ( std::size_t  index)
inlineprivate

Definition at line 890 of file UpdateField.h.

+ Here is the call graph for this function:

◆ operator[]()

template<typename T >
T const & UF::DynamicUpdateFieldBase< T >::operator[] ( std::size_t  index) const
inline

Definition at line 855 of file UpdateField.h.

◆ size()

template<typename T >
std::size_t UF::DynamicUpdateFieldBase< T >::size ( ) const
inline

Definition at line 850 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ WriteUpdateMask()

template<typename T >
void UF::DynamicUpdateFieldBase< T >::WriteUpdateMask ( ByteBuffer data,
int32  bitsForSize = 32 
) const
inline

Definition at line 884 of file UpdateField.h.

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

Friends And Related Function Documentation

◆ HasChangesMask

template<typename T >
template<std::size_t Bits>
friend class HasChangesMask
friend

Definition at line 825 of file UpdateField.h.

◆ MutableFieldReference

template<typename T >
template<typename F , bool PublicSet>
friend struct MutableFieldReference
friend

Definition at line 819 of file UpdateField.h.

◆ MutableNestedFieldReference

template<typename T >
template<typename F , bool PublicSet>
friend struct MutableNestedFieldReference
friend

Definition at line 822 of file UpdateField.h.

Member Data Documentation

◆ _updateMask

template<typename T >
std::vector<uint32> UF::DynamicUpdateFieldBase< T >::_updateMask
private

Definition at line 914 of file UpdateField.h.

◆ _values

template<typename T >
std::vector<T> UF::DynamicUpdateFieldBase< T >::_values
private

Definition at line 913 of file UpdateField.h.


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