Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::Node< K, T > Struct Template Reference

#include <aurore/core/cache_helper.hpp>

Public Member Functions

 Node (K k, T v)
 

Public Attributes

K key
 
T value
 
bool dirty = false
 Cache entries marked as dirty will be refreshed when fetching the cache next time.
 
size_t count = 1
 Reference count, 1 for each cache hit.
 
size_t bytes = 0
 What the entry weighs (bytes), for a budget in bytes.
 

Constructor & Destructor Documentation

◆ Node()

template<typename K , typename T >
aurore::Node< K, T >::Node ( K  k,
T  v 
)
inline

Member Data Documentation

◆ bytes

template<typename K , typename T >
size_t aurore::Node< K, T >::bytes = 0

What the entry weighs (bytes), for a budget in bytes.

◆ count

template<typename K , typename T >
size_t aurore::Node< K, T >::count = 1

Reference count, 1 for each cache hit.

◆ dirty

template<typename K , typename T >
bool aurore::Node< K, T >::dirty = false

Cache entries marked as dirty will be refreshed when fetching the cache next time.

◆ key

template<typename K , typename T >
K aurore::Node< K, T >::key

◆ value

template<typename K , typename T >
T aurore::Node< K, T >::value

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