TrinityCore
Loading...
Searching...
No Matches
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 MutableFieldReferenceWithChangesMask
 
template<typename F , bool PublicSet>
struct MutableFieldReferenceNoChangesMask
 
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 997 of file UpdateField.h.

Member Typedef Documentation

◆ value_type

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

Definition at line 1012 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 1019 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ ClearChanged()

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

Definition at line 1079 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 1084 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 1014 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 1029 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ end()

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

Definition at line 1024 of file UpdateField.h.

+ Here is the caller graph for this function:

◆ FindIndex()

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

Definition at line 1044 of file UpdateField.h.

◆ FindIndexIf()

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

Definition at line 1054 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 1063 of file UpdateField.h.

+ Here is the call graph for this function:
+ 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 1074 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 1039 of file UpdateField.h.

◆ size()

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

Definition at line 1034 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 1068 of file UpdateField.h.

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

Friends And Related Symbol Documentation

◆ HasChangesMask

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

Definition at line 1009 of file UpdateField.h.

◆ MutableFieldReferenceNoChangesMask

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

Definition at line 1003 of file UpdateField.h.

◆ MutableFieldReferenceWithChangesMask

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

Definition at line 1000 of file UpdateField.h.

◆ MutableNestedFieldReference

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

Definition at line 1006 of file UpdateField.h.

Member Data Documentation

◆ _updateMask

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

Definition at line 1090 of file UpdateField.h.

◆ _values

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

Definition at line 1089 of file UpdateField.h.


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