Monero
Loading...
Searching...
No Matches
tools::data_cache< T, MAX_SIZE > Class Template Reference

#include <data_cache.h>

Public Member Functions

void add (const T &value)
bool has (const T &value) const

Private Attributes

std::mutex m
std::unordered_set< Tdata
T buf [MAX_SIZE] = {}
size_t counter = 0

Member Function Documentation

◆ add()

template<typename T, size_t MAX_SIZE>
void tools::data_cache< T, MAX_SIZE >::add ( const T & value)
inline

◆ has()

template<typename T, size_t MAX_SIZE>
bool tools::data_cache< T, MAX_SIZE >::has ( const T & value) const
inline

Member Data Documentation

◆ buf

template<typename T, size_t MAX_SIZE>
T tools::data_cache< T, MAX_SIZE >::buf[MAX_SIZE] = {}
private

◆ counter

template<typename T, size_t MAX_SIZE>
size_t tools::data_cache< T, MAX_SIZE >::counter = 0
private

◆ data

template<typename T, size_t MAX_SIZE>
std::unordered_set<T> tools::data_cache< T, MAX_SIZE >::data
private

◆ m

template<typename T, size_t MAX_SIZE>
std::mutex tools::data_cache< T, MAX_SIZE >::m
mutableprivate

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