23#ifndef DD_CACHE__CACHE_ELEMENT_INCLUDED
24#define DD_CACHE__CACHE_ELEMENT_INCLUDED
40class Shared_multi_map;
173 const typename T::Id_key *
id_key()
const {
193 template <
typename K>
202 fprintf(stderr,
"%sobj: %p, id: %llu, cnt: %u", prefix.c_str(),
m_object,
204 fprintf(stderr,
", id_k: %s",
206 fprintf(stderr,
", name_k: %s",
208 fprintf(stderr,
", aux_k: %s\n",
Helper class to represent a key instance.
Definition: cache_element.h:86
K key
Definition: cache_element.h:89
bool is_null
Definition: cache_element.h:88
Key_wrapper()
Definition: cache_element.h:90
Implementation of a dictionary client.
Definition: cache_element.h:68
void delete_keys()
Definition: cache_element.h:119
const T::Aux_key * get_key(Type_selector< typename T::Aux_key >) const
Definition: cache_element.h:114
const T::Name_key * name_key() const
Definition: cache_element.h:178
void recreate_keys()
Definition: cache_element.h:134
void use()
Definition: cache_element.h:126
uint usage() const
Definition: cache_element.h:167
void dump(const String_type &prefix=" ") const
Definition: cache_element.h:200
const T::Name_key * get_key(Type_selector< typename T::Name_key >) const
Definition: cache_element.h:109
const T * object() const
Definition: cache_element.h:170
friend class dd_cache_unittest::CacheTestHelper
Definition: cache_element.h:70
void set_object(const T *replacement_object)
Definition: cache_element.h:129
const T::Id_key * id_key() const
Definition: cache_element.h:173
const T * m_object
Definition: cache_element.h:75
~Cache_element()
Definition: cache_element.h:151
Key_wrapper< typename T::Name_key > m_name_key
Definition: cache_element.h:94
Key_wrapper< typename T::Aux_key > m_aux_key
Definition: cache_element.h:95
void init()
Definition: cache_element.h:154
const T *const * get_key(Type_selector< const T * >) const
Definition: cache_element.h:101
void release()
Definition: cache_element.h:161
Key_wrapper< typename T::Id_key > m_id_key
Definition: cache_element.h:93
const T::Id_key * get_key(Type_selector< typename T::Id_key >) const
Definition: cache_element.h:105
const T::Aux_key * aux_key() const
Definition: cache_element.h:183
Cache_element()
Definition: cache_element.h:143
const K * get_key() const
Template function to get a pointer to a key based on the type.
Definition: cache_element.h:194
uint m_ref_counter
Definition: cache_element.h:76
Definition: dictionary_client.h:148
Implementation of a shared set of maps for a given object type.
Definition: shared_multi_map.h:117
Handling of access to persistent storage.
Definition: storage_adapter.h:59
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:221
Definition: dictionary_client.h:1273
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
Definition: cache_element.h:99
unsigned int uint
Definition: uca9-dump.cc:74