rippled
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry Class Reference

Public Member Functions

 ValueEntry (clock_type::time_point const &last_access_, shared_pointer_type const &ptr_)
 
bool isWeak () const
 
bool isCached () const
 
bool isExpired () const
 
SharedPointerType lock ()
 
void touch (clock_type::time_point const &now)
 

Public Attributes

shared_weak_combo_pointer_type ptr
 
clock_type::time_point last_access
 

Detailed Description

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
class xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry

Definition at line 211 of file TaggedCache.h.

Constructor & Destructor Documentation

◆ ValueEntry()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::ValueEntry ( clock_type::time_point const &  last_access_,
shared_pointer_type const &  ptr_ 
)

Definition at line 217 of file TaggedCache.h.

Member Function Documentation

◆ isWeak()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
bool xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::isWeak ( ) const

Definition at line 223 of file TaggedCache.h.

◆ isCached()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
bool xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::isCached ( ) const

Definition at line 230 of file TaggedCache.h.

◆ isExpired()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
bool xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::isExpired ( ) const

Definition at line 235 of file TaggedCache.h.

◆ lock()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
SharedPointerType xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::lock ( )

Definition at line 240 of file TaggedCache.h.

◆ touch()

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
void xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::touch ( clock_type::time_point const &  now)

Definition at line 245 of file TaggedCache.h.

Member Data Documentation

◆ ptr

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
shared_weak_combo_pointer_type xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::ptr

Definition at line 214 of file TaggedCache.h.

◆ last_access

template<class Key , class T , bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointerType = std::shared_ptr<T>, class Hash = hardened_hash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
clock_type::time_point xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >::ValueEntry::last_access

Definition at line 215 of file TaggedCache.h.