quic/qbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gs::AddrMapNoCache< Key, Value > Class Template Reference

AddrMapNoCache - A cache implementation that never caches (always misses). More...

#include <router.h>

Inheritance diagram for gs::AddrMapNoCache< Key, Value >:
Inheritance graph
[legend]
Collaboration diagram for gs::AddrMapNoCache< Key, Value >:
Collaboration graph
[legend]

Public Member Functions

bool get (const Key &key, Value &value) override
 Always returns false (cache miss)
 
void put (const Key &key, const Value &value, uint64_t size) override
 Does nothing (no caching)
 
void clear () override
 Does nothing (nothing to clear)
 
uint64_t get_hits () const override
 
uint64_t get_misses () const override
 
void reset_stats () override
 

Detailed Description

template<typename Key, typename Value>
class gs::AddrMapNoCache< Key, Value >

AddrMapNoCache - A cache implementation that never caches (always misses).

Member Function Documentation

◆ clear()

template<typename Key , typename Value >
void gs::AddrMapNoCache< Key, Value >::clear ( )
inlineoverridevirtual

Does nothing (nothing to clear)

Implements gs::AddrMapCacheBase< Key, Value >.

◆ get()

template<typename Key , typename Value >
bool gs::AddrMapNoCache< Key, Value >::get ( const Key &  key,
Value value 
)
inlineoverridevirtual

Always returns false (cache miss)

Implements gs::AddrMapCacheBase< Key, Value >.

◆ get_hits()

template<typename Key , typename Value >
uint64_t gs::AddrMapNoCache< Key, Value >::get_hits ( ) const
inlineoverridevirtual

◆ get_misses()

template<typename Key , typename Value >
uint64_t gs::AddrMapNoCache< Key, Value >::get_misses ( ) const
inlineoverridevirtual

◆ put()

template<typename Key , typename Value >
void gs::AddrMapNoCache< Key, Value >::put ( const Key &  key,
const Value value,
uint64_t  size 
)
inlineoverridevirtual

Does nothing (no caching)

Implements gs::AddrMapCacheBase< Key, Value >.

◆ reset_stats()

template<typename Key , typename Value >
void gs::AddrMapNoCache< Key, Value >::reset_stats ( )
inlineoverridevirtual

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