TrinityCore
Loading...
Searching...
No Matches
UF::MapUpdateFieldBase< K, V > Class Template Reference

#include <UpdateField.h>

+ Inheritance diagram for UF::MapUpdateFieldBase< K, V >:

Classes

struct  Value
 

Public Types

using key_type = K
 
using mapped_type = Value
 
using value_type = std::pair< key_type const, mapped_type >
 

Public Member Functions

std::unordered_map< K, Value >::const_iterator begin () const
 
std::unordered_map< K, Value >::const_iterator end () const
 
bool empty () const
 
std::size_t size () const
 
V const * Get (K const &key) const
 
template<Trinity::invocable_r< bool, V const & > Pred>
std::pair< K const *, V const * > FindIf (Pred &&pred) const
 

Private Attributes

std::unordered_map< K, Value_values
 

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 K, typename V>
class UF::MapUpdateFieldBase< K, V >

Definition at line 1099 of file UpdateField.h.

Member Typedef Documentation

◆ key_type

template<typename K , typename V >
using UF::MapUpdateFieldBase< K, V >::key_type = K

Definition at line 1120 of file UpdateField.h.

◆ mapped_type

template<typename K , typename V >
using UF::MapUpdateFieldBase< K, V >::mapped_type = Value

Definition at line 1121 of file UpdateField.h.

◆ value_type

template<typename K , typename V >
using UF::MapUpdateFieldBase< K, V >::value_type = std::pair<key_type const, mapped_type>

Definition at line 1122 of file UpdateField.h.

Member Function Documentation

◆ begin()

template<typename K , typename V >
std::unordered_map< K, Value >::const_iterator UF::MapUpdateFieldBase< K, V >::begin ( ) const
inline

Definition at line 1124 of file UpdateField.h.

◆ empty()

template<typename K , typename V >
bool UF::MapUpdateFieldBase< K, V >::empty ( ) const
inline

Definition at line 1134 of file UpdateField.h.

◆ end()

template<typename K , typename V >
std::unordered_map< K, Value >::const_iterator UF::MapUpdateFieldBase< K, V >::end ( ) const
inline

Definition at line 1129 of file UpdateField.h.

◆ FindIf()

template<typename K , typename V >
template<Trinity::invocable_r< bool, V const & > Pred>
std::pair< K const *, V const * > UF::MapUpdateFieldBase< K, V >::FindIf ( Pred &&  pred) const
inline

Definition at line 1154 of file UpdateField.h.

◆ Get()

template<typename K , typename V >
V const * UF::MapUpdateFieldBase< K, V >::Get ( K const &  key) const
inline

Definition at line 1144 of file UpdateField.h.

◆ size()

template<typename K , typename V >
std::size_t UF::MapUpdateFieldBase< K, V >::size ( ) const
inline

Definition at line 1139 of file UpdateField.h.

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ HasChangesMask

template<typename K , typename V >
template<std::size_t Bits>
friend class HasChangesMask
friend

Definition at line 1111 of file UpdateField.h.

◆ MutableFieldReferenceNoChangesMask

template<typename K , typename V >
template<typename F , bool PublicSet>
friend struct MutableFieldReferenceNoChangesMask
friend

Definition at line 1105 of file UpdateField.h.

◆ MutableFieldReferenceWithChangesMask

template<typename K , typename V >
template<typename F , bool PublicSet>
friend struct MutableFieldReferenceWithChangesMask
friend

Definition at line 1102 of file UpdateField.h.

◆ MutableNestedFieldReference

template<typename K , typename V >
template<typename F , bool PublicSet>
friend struct MutableNestedFieldReference
friend

Definition at line 1108 of file UpdateField.h.

Member Data Documentation

◆ _values

template<typename K , typename V >
std::unordered_map<K, Value> UF::MapUpdateFieldBase< K, V >::_values
private

Definition at line 1165 of file UpdateField.h.


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