LibreOffice Module binaryurp (master) 1
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
binaryurp::Cache< T > Class Template Reference

#include <cache.hxx>

Inheritance diagram for binaryurp::Cache< T >:
[legend]

Classes

struct  CmpT
 

Public Types

typedef sal_uInt16 IdxType
 

Public Member Functions

 Cache (std::size_t size)
 
IdxType add (const T &rContent, bool *pbFound)
 

Private Types

typedef std::list< T > LruList
 
typedef LruList::iterator LruListIt
 
typedef std::map< LruListIt, IdxType, CmpTLruItMap
 

Private Member Functions

 Cache (const Cache &)=delete
 
Cacheoperator= (const Cache &)=delete
 

Private Attributes

std::size_t size_
 
LruItMap map_
 
LruList list_
 

Detailed Description

template<typename T>
class binaryurp::Cache< T >

Definition at line 39 of file cache.hxx.

Member Typedef Documentation

◆ IdxType

template<typename T >
typedef sal_uInt16 binaryurp::Cache< T >::IdxType

Definition at line 41 of file cache.hxx.

◆ LruItMap

template<typename T >
typedef std::map< LruListIt, IdxType, CmpT > binaryurp::Cache< T >::LruItMap
private

Definition at line 86 of file cache.hxx.

◆ LruList

template<typename T >
typedef std::list<T> binaryurp::Cache< T >::LruList
private

Definition at line 83 of file cache.hxx.

◆ LruListIt

template<typename T >
typedef LruList::iterator binaryurp::Cache< T >::LruListIt
private

Definition at line 84 of file cache.hxx.

Constructor & Destructor Documentation

◆ Cache() [1/2]

template<typename T >
binaryurp::Cache< T >::Cache ( std::size_t  size)
inlineexplicit

Definition at line 43 of file cache.hxx.

References binaryurp::cache::ignore, and binaryurp::cache::size.

◆ Cache() [2/2]

template<typename T >
binaryurp::Cache< T >::Cache ( const Cache< T > &  )
privatedelete

Member Function Documentation

◆ add()

template<typename T >
IdxType binaryurp::Cache< T >::add ( const T &  rContent,
bool *  pbFound 
)
inline

◆ operator=()

template<typename T >
Cache & binaryurp::Cache< T >::operator= ( const Cache< T > &  )
privatedelete

Member Data Documentation

◆ list_

template<typename T >
LruList binaryurp::Cache< T >::list_
private

Definition at line 90 of file cache.hxx.

Referenced by binaryurp::Cache< T >::add().

◆ map_

template<typename T >
LruItMap binaryurp::Cache< T >::map_
private

Definition at line 89 of file cache.hxx.

Referenced by binaryurp::Cache< T >::add().

◆ size_

template<typename T >
std::size_t binaryurp::Cache< T >::size_
private

Definition at line 88 of file cache.hxx.

Referenced by binaryurp::Cache< T >::add().


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