souffle  2.0.2-371-g6315b36
Public Member Functions | Private Attributes | Friends
souffle::LRUCache< T, 1 > Class Template Reference

#include <CacheUtil.h>

Collaboration diagram for souffle::LRUCache< T, 1 >:
Collaboration graph

Public Member Functions

void access (const T &val)
 
template<typename Op >
bool any (const Op &op) const
 
void clear (const T &val=T())
 
template<typename Op >
bool forEachInOrder (const Op &op) const
 See description in most general case. More...
 
 LRUCache ()
 
 LRUCache (const T &val)
 

Private Attributes

entry
 

Friends

std::ostream & operator<< (std::ostream &out, const LRUCache &cache)
 

Detailed Description

template<typename T>
class souffle::LRUCache< T, 1 >

Definition at line 157 of file CacheUtil.h.

Constructor & Destructor Documentation

◆ LRUCache() [1/2]

template<typename T >
souffle::LRUCache< T, 1 >::LRUCache ( )
inline

Definition at line 163 of file CacheUtil.h.

163 {

◆ LRUCache() [2/2]

template<typename T >
souffle::LRUCache< T, 1 >::LRUCache ( const T &  val)
inline

Definition at line 166 of file CacheUtil.h.

168 {

Member Function Documentation

◆ access()

template<typename T >
void souffle::LRUCache< T, 1 >::access ( const T &  val)
inline

Definition at line 174 of file CacheUtil.h.

176  {

◆ any()

template<typename T >
template<typename Op >
bool souffle::LRUCache< T, 1 >::any ( const Op &  op) const
inline

Definition at line 188 of file CacheUtil.h.

188  {
189  return out << cache.entry;
190  }

◆ clear()

template<typename T >
void souffle::LRUCache< T, 1 >::clear ( const T &  val = T())
inline

Definition at line 169 of file CacheUtil.h.

176  {

◆ forEachInOrder()

template<typename T >
template<typename Op >
bool souffle::LRUCache< T, 1 >::forEachInOrder ( const Op &  op) const
inline

See description in most general case.

Definition at line 182 of file CacheUtil.h.

182  {
183  return forEachInOrder(op);
184  }

References souffle::LRUCache< T, size >::forEachInOrder().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const LRUCache< T, 1 > &  cache 
)
friend

Definition at line 194 of file CacheUtil.h.

195  {
196 public:

Field Documentation

◆ entry

template<typename T >
T souffle::LRUCache< T, 1 >::entry
private

Definition at line 159 of file CacheUtil.h.


The documentation for this class was generated from the following file:
souffle::LRUCache< T, 1 >::forEachInOrder
bool forEachInOrder(const Op &op) const
See description in most general case.
Definition: CacheUtil.h:182