HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE > Class Template Reference

#include <UT_LRUCache.h>

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = TYPE
 
using difference_type = std::ptrdiff_t
 
using pointer = TYPE *
 
using reference = TYPE &
 

Public Member Functions

 iterator_base ()
 
 iterator_base (const iterator_base &other)
 
 iterator_base (iterator_base &&other)
 
iterator_baseoperator= (const iterator_base &other)
 
iterator_baseoperator= (iterator_base &&other)
 
 ~iterator_base ()
 
iterator_baseoperator++ ()
 
iterator_baseoperator-- ()
 
pointer operator-> () const
 
reference operator* () const
 
bool operator== (const iterator_base &other) const
 
bool operator!= (const iterator_base &other) const
 

Protected Member Functions

 iterator_base (proxied_iterator it, L *lock)
 

Friends

class UT_LRUCache< K, V, SizeFunc, InUseFunc, L >
 

Detailed Description

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED, typename TYPE>
class UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >

This iterator is just a simple proxy around either the regular iterator or the const_iterator on the internal list.

Definition at line 93 of file UT_LRUCache.h.

Member Typedef Documentation

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
using UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::difference_type = std::ptrdiff_t

Definition at line 100 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
using UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::iterator_category = std::bidirectional_iterator_tag

Definition at line 98 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
using UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::pointer = TYPE*

Definition at line 101 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
using UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::reference = TYPE&

Definition at line 102 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
using UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::value_type = TYPE

Definition at line 99 of file UT_LRUCache.h.

Constructor & Destructor Documentation

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::iterator_base ( )
inline

Definition at line 104 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::iterator_base ( const iterator_base< PROXIED, TYPE > &  other)
inline

Definition at line 106 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::iterator_base ( iterator_base< PROXIED, TYPE > &&  other)
inline

Definition at line 113 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::~iterator_base ( )
inline

Definition at line 138 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::iterator_base ( proxied_iterator  it,
L *  lock 
)
inlineprotected

Definition at line 163 of file UT_LRUCache.h.

Member Function Documentation

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
bool UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator!= ( const iterator_base< PROXIED, TYPE > &  other) const
inline

Definition at line 155 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
reference UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator* ( ) const
inline

Definition at line 149 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
iterator_base& UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator++ ( )
inline

Definition at line 145 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
iterator_base& UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator-- ( )
inline

Definition at line 146 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
pointer UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator-> ( ) const
inline

Definition at line 148 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
iterator_base& UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator= ( const iterator_base< PROXIED, TYPE > &  other)
inline

Definition at line 121 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
iterator_base& UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator= ( iterator_base< PROXIED, TYPE > &&  other)
inline

Definition at line 129 of file UT_LRUCache.h.

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
bool UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >::operator== ( const iterator_base< PROXIED, TYPE > &  other) const
inline

Definition at line 151 of file UT_LRUCache.h.

Friends And Related Function Documentation

template<typename K, typename V, exint(*)(const V &) SizeFunc = UTlruGetItemSize<V>, bool(*)(const V &) InUseFunc = UTlruGetItemInUse<V>, typename L = UT::RWNullLock>
template<typename PROXIED , typename TYPE >
friend class UT_LRUCache< K, V, SizeFunc, InUseFunc, L >
friend

Definition at line 161 of file UT_LRUCache.h.


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