ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
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 176 of file lrucachetable.hpp.

#include <lrucachetable.hpp>

Inheritance diagram for LRUCacheTable< TAllocator, TValueDescriptor, THash, TEqual >::Entry:
[legend]
Collaboration diagram for 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 SidiNodeBase< Entry >
Entry * n
 

Additional Inherited Members

- Public Method Index: inherited from 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 data

The data cached.

Definition at line 179 of file lrucachetable.hpp.

◆ hashCode

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

This entries hash code (calculated once on insertion)

Definition at line 178 of file lrucachetable.hpp.


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