ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry Struct Reference

Description:

template<typename TAllocator, typename TValueDescriptor, typename THash = std::hash <typename TValueDescriptor::KeyType>, typename TEqual = std::equal_to<typename TValueDescriptor::KeyType>>
struct alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry

The node type of the cache lists.

Definition at line 165 of file lrucachetable.inl.

Inheritance diagram for alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry:
[legend]
Collaboration diagram for alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry:
[legend]

Public Field Index:

StoredType data
 The data cached.
 
size_t hashCode
 This entries hash code (calculated once on insertion)
 
- Public Field Index: inherited from alib::lang::SidiNodeBase< Entry >
Entry * n
 

Additional Inherited Members

- Public Method Index: inherited from alib::lang::SidiNodeBase< Entry >
 SidiNodeBase () noexcept=default
 Default constructor. (Does not initialize the pointer.)
 
 SidiNodeBase (const SidiNodeBase &)=delete
 
 SidiNodeBase (Entry *next) noexcept
 
 SidiNodeBase (SidiNodeBase &&) noexcept=default
 Defaulted move constructor.
 
Entry * addBehind (Entry *elem) noexcept
 
integer count (SidiNodeBase *end=nullptr) const noexcept
 
bool hasNext () const
 
Entry * next () const
 
void next (SidiNodeBase *p)
 
SidiNodeBaseoperator= (const SidiNodeBase &)=delete
 
SidiNodeBaseoperator= (SidiNodeBase &&) noexcept=default
 
bool pointsTo (const SidiNodeBase *elem) const
 
Entry * removeNext () noexcept
 
Entry * removeRangeBehind (Entry *last) noexcept
 

Field Details:

◆ data

template<typename TAllocator, typename TValueDescriptor, typename THash = std::hash <typename TValueDescriptor::KeyType>, typename TEqual = std::equal_to<typename TValueDescriptor::KeyType>>
StoredType alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry::data

The data cached.

Definition at line 168 of file lrucachetable.inl.

◆ hashCode

template<typename TAllocator, typename TValueDescriptor, typename THash = std::hash <typename TValueDescriptor::KeyType>, typename TEqual = std::equal_to<typename TValueDescriptor::KeyType>>
size_t alib::containers::LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry::hashCode

This entries hash code (calculated once on insertion)

Definition at line 167 of file lrucachetable.inl.


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