Bitcoin ABC 0.30.7
P2P Digital Currency
Public Types | Public Member Functions | List of all members
CuckooCache::KeyOnly< T > Struct Template Reference

Helper class used when we only want the cache to be a set rather than a map. More...

#include <cuckoocache.h>

Inheritance diagram for CuckooCache::KeyOnly< T >:
[legend]
Collaboration diagram for CuckooCache::KeyOnly< T >:
[legend]

Public Types

using KeyType = T
 

Public Member Functions

 KeyOnly ()=default
 
 KeyOnly (const T &x)
 
const T & getKey () const
 

Detailed Description

template<typename T>
struct CuckooCache::KeyOnly< T >

Helper class used when we only want the cache to be a set rather than a map.

Definition at line 553 of file cuckoocache.h.

Member Typedef Documentation

◆ KeyType

template<typename T >
using CuckooCache::KeyOnly< T >::KeyType = T

Definition at line 555 of file cuckoocache.h.

Constructor & Destructor Documentation

◆ KeyOnly() [1/2]

template<typename T >
CuckooCache::KeyOnly< T >::KeyOnly ( )
default

◆ KeyOnly() [2/2]

template<typename T >
CuckooCache::KeyOnly< T >::KeyOnly ( const T &  x)
inline

Definition at line 559 of file cuckoocache.h.

Member Function Documentation

◆ getKey()

template<typename T >
const T & CuckooCache::KeyOnly< T >::getKey ( ) const
inline

Definition at line 562 of file cuckoocache.h.


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