A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/group__Cache.html below:

NCBI C++ ToolKit: Generic Cache

class   limited_size_map< Key, Value, Less >   struct   limited_size_map< Key, Value, Less >::SNode   struct   limited_size_map< Key, Value, Less >::SLess   class   limited_size_map< Key, Value, Less >::iterator   class   limited_size_map< Key, Value, Less >::const_iterator   struct   SCacheElement< TKey, TSize >   Generic cache. More...
  struct   CCacheElement_Less< TCacheElementPtr >   Compare cache elements by weight/order. More...
  class   CCacheElement_Handler< TKey, TValue >   Default (NOP) element handler. More...
  class   CCache< TKey, TValue, THandler, TLock, TSize >   Cache template. More...
  struct   CCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex   class   CCacheException   Exception thrown by CCache. More...
  typedef Key  limited_size_map< Key, Value, Less >::key_type   typedef Value  limited_size_map< Key, Value, Less >::mapped_type   typedef pair< const key_type, mapped_typelimited_size_map< Key, Value, Less >::value_type   typedef Less  limited_size_map< Key, Value, Less >::TLess   typedef set< SNode, SLesslimited_size_map< Key, Value, Less >::TMap   typedef TMap::iterator  limited_size_map< Key, Value, Less >::TMapIterator   typedef TMap::const_iterator  limited_size_map< Key, Value, Less >::TMapConstIterator   typedef list< TMapIteratorlimited_size_map< Key, Value, Less >::TRemoveList   typedef TRemoveList::iterator  limited_size_map< Key, Value, Less >::TRemoveListIterator   typedef TKey  SCacheElement< TKey, TSize >::TKeyType   typedef TSize  SCacheElement< TKey, TSize >::TSizeType   typedef CMutex  TCacheLock_Default   Default cache lock. More...
  typedef TKey  CCache< TKey, TValue, THandler, TLock, TSize >::TKeyType   typedef TValue  CCache< TKey, TValue, THandler, TLock, TSize >::TValueType   typedef TSize  CCache< TKey, TValue, THandler, TLock, TSize >::TSizeType   typedef SCacheElement< TKeyType, TSizeTypeCCache< TKey, TValue, THandler, TLock, TSize >::TCacheElement   typedef TSizeType  CCache< TKey, TValue, THandler, TLock, TSize >::TWeight   typedef TSizeType  CCache< TKey, TValue, THandler, TLock, TSize >::TOrder   typedef int  CCache< TKey, TValue, THandler, TLock, TSize >::TAddFlags   bitwise OR of EAddFlags More...
  typedef int  CCache< TKey, TValue, THandler, TLock, TSize >::TGetFlags   bitwise OR of EGetFlags More...
  typedef CCacheElement_Less< TCacheElement * >  CCache< TKey, TValue, THandler, TLock, TSize >::TCacheLess   typedef set< TCacheElement *, TCacheLessCCache< TKey, TValue, THandler, TLock, TSize >::TCacheSet   typedef TCacheSet::iterator  CCache< TKey, TValue, THandler, TLock, TSize >::TCacheSet_I   typedef map< TKeyType, SValueWithIndexCCache< TKey, TValue, THandler, TLock, TSize >::TCacheMap   typedef TCacheMap::iterator  CCache< TKey, TValue, THandler, TLock, TSize >::TCacheMap_I   typedef TLock  CCache< TKey, TValue, THandler, TLock, TSize >::TLockType   typedef TLockType::TWriteLockGuard  CCache< TKey, TValue, THandler, TLock, TSize >::TGuardType   typedef THandler  CCache< TKey, TValue, THandler, TLock, TSize >::THandlerType   enum   ECache_InsertFlag { eCache_CheckSize , eCache_CanInsert , eCache_NeedCleanup , eCache_DoNotCache }   Flag indicating if an element can be inserted into cache. More...
  enum   CCache< TKey, TValue, THandler, TLock, TSize >::EAddFlags { CCache< TKey, TValue, THandler, TLock, TSize >::fAdd_NoReplace = (1 << 0) }   Flags to control the details of adding new elements to the cache via Add(). More...
  enum   CCache< TKey, TValue, THandler, TLock, TSize >::EAddResult { CCache< TKey, TValue, THandler, TLock, TSize >::eAdd_Inserted , CCache< TKey, TValue, THandler, TLock, TSize >::eAdd_Replaced , CCache< TKey, TValue, THandler, TLock, TSize >::eAdd_NotInserted }   Result of element insertion. More...
  enum   CCache< TKey, TValue, THandler, TLock, TSize >::EGetFlags { CCache< TKey, TValue, THandler, TLock, TSize >::fGet_NoTouch = (1 << 0) , CCache< TKey, TValue, THandler, TLock, TSize >::fGet_NoCreate = (1 << 1) , CCache< TKey, TValue, THandler, TLock, TSize >::fGet_NoInsert = (1 << 2) }   Cache retrieval flags. More...
  enum   CCache< TKey, TValue, THandler, TLock, TSize >::EGetResult { CCache< TKey, TValue, THandler, TLock, TSize >::eGet_Found , CCache< TKey, TValue, THandler, TLock, TSize >::eGet_CreatedAndAdded , CCache< TKey, TValue, THandler, TLock, TSize >::eGet_CreatedNotAdded }   Get() result. More...
  enum   CCacheException::EErrCode { CCacheException::eIndexOverflow , CCacheException::eWeightOverflow , CCacheException::eNotFound , CCacheException::eOtherError }     limited_size_map< Key, Value, Less >::SNode::SNode (const value_type &value)     limited_size_map< Key, Value, Less >::SNode::SNode (const key_type &key, const mapped_type &value)     limited_size_map< Key, Value, Less >::SNode::SNode (const key_type &key)     limited_size_map< Key, Value, Less >::SLess::SLess ()     limited_size_map< Key, Value, Less >::SLess::SLess (const TLess &key_comp)   bool  limited_size_map< Key, Value, Less >::SLess::operator() (const SNode &a, const SNode &b) const     limited_size_map< Key, Value, Less >::iterator::iterator ()     limited_size_map< Key, Value, Less >::iterator::iterator (TMapIterator iter)   value_typelimited_size_map< Key, Value, Less >::iterator::operator* () const   value_typelimited_size_map< Key, Value, Less >::iterator::operator-> () const   iteratorlimited_size_map< Key, Value, Less >::iterator::operator++ ()   iterator  limited_size_map< Key, Value, Less >::iterator::operator++ (int)   iteratorlimited_size_map< Key, Value, Less >::iterator::operator-- ()   iterator  limited_size_map< Key, Value, Less >::iterator::operator-- (int)   bool  limited_size_map< Key, Value, Less >::iterator::operator== (iterator a) const   bool  limited_size_map< Key, Value, Less >::iterator::operator!= (iterator a) const     limited_size_map< Key, Value, Less >::const_iterator::const_iterator ()     limited_size_map< Key, Value, Less >::const_iterator::const_iterator (TMapConstIterator iter)     limited_size_map< Key, Value, Less >::const_iterator::const_iterator (iterator iter)   const value_typelimited_size_map< Key, Value, Less >::const_iterator::operator-> () const   const value_typelimited_size_map< Key, Value, Less >::const_iterator::operator* () const   const_iteratorlimited_size_map< Key, Value, Less >::const_iterator::operator++ ()   const_iterator  limited_size_map< Key, Value, Less >::const_iterator::operator++ (int)   const_iteratorlimited_size_map< Key, Value, Less >::const_iterator::operator-- ()   const_iterator  limited_size_map< Key, Value, Less >::const_iterator::operator-- (int)   bool  limited_size_map< Key, Value, Less >::const_iterator::operator== (const_iterator a) const   bool  limited_size_map< Key, Value, Less >::const_iterator::operator!= (const_iterator a) const     limited_size_map< Key, Value, Less >::limited_size_map (size_t size_limit=0)   size_t  limited_size_map< Key, Value, Less >::get_size_limit (void) const   void  limited_size_map< Key, Value, Less >::set_size_limit (size_t size_limit)   bool  limited_size_map< Key, Value, Less >::empty (void) const   size_t  limited_size_map< Key, Value, Less >::size (void) const   void  limited_size_map< Key, Value, Less >::clear (void)   iterator  limited_size_map< Key, Value, Less >::begin (void)   iterator  limited_size_map< Key, Value, Less >::end (void)   iterator  limited_size_map< Key, Value, Less >::find (const key_type &key)   iterator  limited_size_map< Key, Value, Less >::lower_bound (const key_type &key)   iterator  limited_size_map< Key, Value, Less >::upper_bound (const key_type &key)   const_iterator  limited_size_map< Key, Value, Less >::begin (void) const   const_iterator  limited_size_map< Key, Value, Less >::end (void) const   const_iterator  limited_size_map< Key, Value, Less >::find (const key_type &key) const   const_iterator  limited_size_map< Key, Value, Less >::lower_bound (const key_type &key) const   const_iterator  limited_size_map< Key, Value, Less >::upper_bound (const key_type &key) const   pair< iterator, boollimited_size_map< Key, Value, Less >::insert (const value_type &value)   mapped_typelimited_size_map< Key, Value, Less >::operator[] (const key_type &key)   void  limited_size_map< Key, Value, Less >::erase (iterator iter)   SNodelimited_size_map< Key, Value, Less >::x_GetNode (TMapIterator iter)   void  limited_size_map< Key, Value, Less >::x_GC (void)   void  limited_size_map< Key, Value, Less >::x_MarkAdded (TMapIterator iter)   void  limited_size_map< Key, Value, Less >::x_MarkUsed (TMapIterator iter)     SCacheElement< TKey, TSize >::SCacheElement (void)     SCacheElement< TKey, TSize >::SCacheElement (const TKeyType &key, const TSizeType &weight, const TSizeType &order)   bool  CCacheElement_Less< TCacheElementPtr >::operator() (const TCacheElementPtr &x, const TCacheElementPtr &y) const   void  CCacheElement_Handler< TKey, TValue >::RemoveElement (const TKey &, TValue &)   Special processing of a removed element (e.g. deleting the object) More...
  void  CCacheElement_Handler< TKey, TValue >::InsertElement (const TKey &, const TValue &)   Special processing of an element to be inserted (e.g. More...
  ECache_InsertFlag  CCacheElement_Handler< TKey, TValue >::CanInsertElement (const TKey &, const TValue &)   Check if the element can be inserted into the cache. More...
  TValue  CCacheElement_Handler< TKey, TValue >::CreateValue (const TKey &)   Element factory – to create elements by key. More...
    CCache< TKey, TValue, THandler, TLock, TSize >::CCache (TSizeType capacity, THandler *handler=NULL)   Create cache object with the given capacity. More...
  TValueType  CCache< TKey, TValue, THandler, TLock, TSize >::operator[] (const TKeyType &key)   Get cache element by the key. More...
  TSizeType  CCache< TKey, TValue, THandler, TLock, TSize >::GetCapacity (void) const   Get current capacity of the cache (max allowed number of elements) More...
  void  CCache< TKey, TValue, THandler, TLock, TSize >::SetCapacity (TSizeType new_capacity)   Set new capacity of the cache. More...
  TSizeType  CCache< TKey, TValue, THandler, TLock, TSize >::GetSize (void) const   Get current number of elements in the cache. More...
  void  CCache< TKey, TValue, THandler, TLock, TSize >::SetSize (TSizeType new_size)   Truncate the cache leaving at most new_size elements. More...
  TOrder  CCache< TKey, TValue, THandler, TLock, TSize >::Add (const TKeyType &key, const TValueType &value, TWeight weight=1, TAddFlags add_flags=0, EAddResult *result=NULL)   Add new element to the cache or replace the existing value. More...
  TValueType  CCache< TKey, TValue, THandler, TLock, TSize >::Get (const TKeyType &key, TGetFlags get_flags=0, EGetResult *result=NULL)   Get an object from the cache by its key. More...
  bool  CCache< TKey, TValue, THandler, TLock, TSize >::Remove (const TKeyType &key)   Remove element from cache. Do nothing if the key is not cached. More...
    CCache< TKey, TValue, THandler, TLock, TSize >::~CCache (void)     CCache< TKey, TValue, THandler, TLock, TSize >::CCache (const CCache &)   CCacheCCache< TKey, TValue, THandler, TLock, TSize >::operator= (const CCache &)   TOrder  CCache< TKey, TValue, THandler, TLock, TSize >::x_GetNextCounter (void)   void  CCache< TKey, TValue, THandler, TLock, TSize >::x_PackElementIndex (void)   TCacheElementCCache< TKey, TValue, THandler, TLock, TSize >::x_InsertElement (const TKeyType &key, TWeight weight)   void  CCache< TKey, TValue, THandler, TLock, TSize >::x_UpdateElement (TCacheElement *elem)   void  CCache< TKey, TValue, THandler, TLock, TSize >::x_EraseElement (TCacheSet_I &set_iter, TCacheMap_I &map_iter)   void  CCache< TKey, TValue, THandler, TLock, TSize >::x_EraseLast (void)   TWeight  CCache< TKey, TValue, THandler, TLock, TSize >::x_GetBaseWeight (void) const   virtual const char *  CCacheException::GetErrCodeString (void) const override   Get error code interpreted as text. More...
    CCacheException::NCBI_EXCEPTION_DEFAULT (CCacheException, CException)   TRemoveListIterator  limited_size_map< Key, Value, Less >::SNode::m_RemoveListIter   TLess  limited_size_map< Key, Value, Less >::SLess::m_KeyComp   TMap  limited_size_map< Key, Value, Less >::m_Map   TMapIterator  limited_size_map< Key, Value, Less >::iterator::m_Iter   TMapConstIterator  limited_size_map< Key, Value, Less >::const_iterator::m_Iter   size_t  limited_size_map< Key, Value, Less >::m_SizeLimit   TRemoveList  limited_size_map< Key, Value, Less >::m_RemoveList   TKeyType  SCacheElement< TKey, TSize >::m_Key   TSizeType  SCacheElement< TKey, TSize >::m_Weight   TSizeType  SCacheElement< TKey, TSize >::m_Order   TCacheElementCCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex::m_CacheElement   TValueType  CCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex::m_Value   TLockType  CCache< TKey, TValue, THandler, TLock, TSize >::m_Lock   TSizeType  CCache< TKey, TValue, THandler, TLock, TSize >::m_Capacity   TCacheSet  CCache< TKey, TValue, THandler, TLock, TSize >::m_CacheSet   TCacheMap  CCache< TKey, TValue, THandler, TLock, TSize >::m_CacheMap   TOrder  CCache< TKey, TValue, THandler, TLock, TSize >::m_Counter   unique_ptr< THandlerTypeCCache< TKey, TValue, THandler, TLock, TSize >::m_Handler   ◆ key_type

template<class Key , class Value , class Less = less<Key>>

Definition at line 55 of file limited_size_map.hpp.

◆ mapped_type

template<class Key , class Value , class Less = less<Key>>

Definition at line 56 of file limited_size_map.hpp.

◆ TAddFlags

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ TCacheElement

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 158 of file ncbi_cache.hpp.

◆ TCacheLess

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 272 of file ncbi_cache.hpp.

◆ TCacheLock_Default ◆ TCacheMap

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 275 of file ncbi_cache.hpp.

◆ TCacheMap_I

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 276 of file ncbi_cache.hpp.

◆ TCacheSet

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 273 of file ncbi_cache.hpp.

◆ TCacheSet_I

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 274 of file ncbi_cache.hpp.

◆ TGetFlags

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ TGuardType

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 278 of file ncbi_cache.hpp.

◆ THandlerType

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 279 of file ncbi_cache.hpp.

◆ TKeyType [1/2]

template<class TKey , class TSize >

Definition at line 64 of file ncbi_cache.hpp.

◆ TKeyType [2/2]

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 155 of file ncbi_cache.hpp.

◆ TLess

template<class Key , class Value , class Less = less<Key>>

Definition at line 62 of file limited_size_map.hpp.

◆ TLockType

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 277 of file ncbi_cache.hpp.

◆ TMap

template<class Key , class Value , class Less = less<Key>>

Definition at line 63 of file limited_size_map.hpp.

◆ TMapConstIterator

template<class Key , class Value , class Less = less<Key>>

Definition at line 65 of file limited_size_map.hpp.

◆ TMapIterator

template<class Key , class Value , class Less = less<Key>>

Definition at line 64 of file limited_size_map.hpp.

◆ TOrder

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 160 of file ncbi_cache.hpp.

◆ TRemoveList

template<class Key , class Value , class Less = less<Key>>

Definition at line 66 of file limited_size_map.hpp.

◆ TRemoveListIterator

template<class Key , class Value , class Less = less<Key>>

Definition at line 67 of file limited_size_map.hpp.

◆ TSizeType [1/2]

template<class TKey , class TSize >

Definition at line 65 of file ncbi_cache.hpp.

◆ TSizeType [2/2]

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 157 of file ncbi_cache.hpp.

◆ TValueType

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 156 of file ncbi_cache.hpp.

◆ TWeight

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 159 of file ncbi_cache.hpp.

◆ value_type

template<class Key , class Value , class Less = less<Key>>

Definition at line 57 of file limited_size_map.hpp.

◆ EAddFlags

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Flags to control the details of adding new elements to the cache via Add().

See also
Add()
Enumerator fAdd_NoReplace 

Do not replace existing values if any.

Definition at line 193 of file ncbi_cache.hpp.

◆ EAddResult

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Result of element insertion.

Enumerator eAdd_Inserted 

The element was added to the cache.

eAdd_Replaced 

The element existed and was replaced.

eAdd_NotInserted 

The element was not added or replaced.

Definition at line 199 of file ncbi_cache.hpp.

◆ ECache_InsertFlag

Flag indicating if an element can be inserted into cache.

Enumerator eCache_CheckSize 

Insert the element after checking max cache size.

eCache_CanInsert 

The element can be inserted.

eCache_NeedCleanup 

Need to cleanup cache before inserting the element.

eCache_DoNotCache 

The element can not be inserted (e.g. too big)

Definition at line 96 of file ncbi_cache.hpp.

◆ EErrCode Enumerator eIndexOverflow 

Element index overflow.

eWeightOverflow 

Element weight overflow.

eNotFound 

The requested key was not found in the cache.

eOtherError 

Definition at line 307 of file ncbi_cache.hpp.

◆ EGetFlags

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Cache retrieval flags.

Enumerator fGet_NoTouch 

Do not update the object's position.

fGet_NoCreate 

Do not create value if not found, throw an exception instead.

fGet_NoInsert 

Do not insert created values.

Definition at line 226 of file ncbi_cache.hpp.

◆ EGetResult

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Get() result.

Enumerator eGet_Found 

The key was found in the cache.

eGet_CreatedAndAdded 

A new value was created and cached.

eGet_CreatedNotAdded 

A new value was created but not cached.

Definition at line 235 of file ncbi_cache.hpp.

◆ Add()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

CCache< TKey, TValue, THandler, TLock, TSize >::TOrder CCache< TKey, TValue, THandler, TLock, TSize >::Add ( const TKeyTypekey, const TValueTypevalue, TWeight  weight = 1, TAddFlags  add_flags = 0, EAddResultresult = NULL  )

Add new element to the cache or replace the existing value.

Parameters
key Element key value Element value weight Weight adjustment. The lifetime of each object in the cache is proportional to its weight. add_flags Flags to control Add() behavior. result Pointer to a variable to store operation result code to.
Returns
Index of the new element in the cache.

Definition at line 507 of file ncbi_cache.hpp.

References _ASSERT, eCache_CanInsert, eCache_CheckSize, eCache_DoNotCache, eCache_NeedCleanup, ncbi::grid::netcache::search::fields::key, CCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex::m_CacheElement, SCacheElement< TKey, TSize >::m_Order, CCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex::m_Value, result, rapidjson::value, and weight.

Referenced by CSeqVectorCache::PrefetchSequence().

◆ begin() [1/2] ◆ begin() [2/2] ◆ CanInsertElement()

template<class TKey , class TValue >

◆ CCache() [1/2]

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ CCache() [2/2]

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ clear() ◆ const_iterator() [1/3]

template<class Key , class Value , class Less = less<Key>>

◆ const_iterator() [2/3] ◆ const_iterator() [3/3] ◆ CreateValue()

template<class TKey , class TValue >

Element factory – to create elements by key.

This gets called when there is no element matching the key in the cache

See also
CCache::Get()

Definition at line 129 of file ncbi_cache.hpp.

◆ empty() ◆ end() [1/2]

template<class Key , class Value , class Less = less<Key>>

◆ end() [2/2] ◆ erase() ◆ find() [1/2]

template<class Key , class Value , class Less = less<Key>>

◆ find() [2/2] ◆ Get()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

CCache< TKey, TValue, THandler, TLock, TSize >::TValueType CCache< TKey, TValue, THandler, TLock, TSize >::Get ( const TKeyTypekey, TGetFlags  get_flags = 0, EGetResultresult = NULL  ) ◆ get_size_limit()

template<class Key , class Value , class Less = less<Key>>

◆ GetCapacity()

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

TSizeType CCache< TKey, TValue, THandler, TLock, TSize >::GetCapacity ( void  ) const inline

Get current capacity of the cache (max allowed number of elements)

Definition at line 172 of file ncbi_cache.hpp.

◆ GetErrCodeString() const char * CCacheException::GetErrCodeString ( void  ) const overridevirtual ◆ GetSize()

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

TSizeType CCache< TKey, TValue, THandler, TLock, TSize >::GetSize ( void  ) const inline

Get current number of elements in the cache.

Definition at line 181 of file ncbi_cache.hpp.

◆ insert()

template<class Key , class Value , class Less = less<Key>>

◆ InsertElement()

template<class TKey , class TValue >

Special processing of an element to be inserted (e.g.

count total memory used by the cached objects)

NOTE: This method is called *before* the element is actually added to the cache.

Definition at line 117 of file ncbi_cache.hpp.

◆ iterator() [1/2]

template<class Key , class Value , class Less = less<Key>>

◆ iterator() [2/2] ◆ limited_size_map() ◆ lower_bound() [1/2] ◆ lower_bound() [2/2] ◆ NCBI_EXCEPTION_DEFAULT() ◆ operator!=() [1/2] ◆ operator!=() [2/2] ◆ operator()() [1/2]

template<class Key , class Value , class Less = less<Key>>

Definition at line 92 of file limited_size_map.hpp.

◆ operator()() [2/2]

template<class TCacheElementPtr >

◆ operator*() [1/2] ◆ operator*() [2/2] ◆ operator++() [1/4] ◆ operator++() [2/4] ◆ operator++() [3/4] ◆ operator++() [4/4] ◆ operator--() [1/4] ◆ operator--() [2/4] ◆ operator--() [3/4] ◆ operator--() [4/4] ◆ operator->() [1/2] ◆ operator->() [2/2] ◆ operator=()

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

CCache& CCache< TKey, TValue, THandler, TLock, TSize >::operator= ( const CCache< TKey, TValue, THandler, TLock, TSize > &  ) private ◆ operator==() [1/2] ◆ operator==() [2/2] ◆ operator[]() [1/2] ◆ operator[]() [2/2]

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ Remove()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ RemoveElement()

template<class TKey , class TValue >

Special processing of a removed element (e.g. deleting the object)

Definition at line 110 of file ncbi_cache.hpp.

◆ SCacheElement() [1/2]

template<class TKey , class TSize >

Definition at line 68 of file ncbi_cache.hpp.

◆ SCacheElement() [2/2]

template<class TKey , class TSize >

Definition at line 67 of file ncbi_cache.hpp.

◆ set_size_limit()

template<class Key , class Value , class Less = less<Key>>

◆ SetCapacity()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

void CCache< TKey, TValue, THandler, TLock, TSize >::SetCapacity ( TSizeType  new_capacity )

Set new capacity of the cache.

The number of elements in the cache may be reduced to match the new capacity.

Parameters
new_capacity new cache capacity, must be > 0.

Definition at line 646 of file ncbi_cache.hpp.

References NCBI_THROW.

◆ SetSize()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

void CCache< TKey, TValue, THandler, TLock, TSize >::SetSize ( TSizeType  new_size )

Truncate the cache leaving at most new_size elements.

Does not affect cache capacity. If new_size is zero all elements will be removed.

Definition at line 661 of file ncbi_cache.hpp.

◆ size()

template<class Key , class Value , class Less = less<Key>>

◆ SLess() [1/2]

template<class Key , class Value , class Less = less<Key>>

Definition at line 85 of file limited_size_map.hpp.

◆ SLess() [2/2]

template<class Key , class Value , class Less = less<Key>>

Definition at line 88 of file limited_size_map.hpp.

◆ SNode() [1/3]

template<class Key , class Value , class Less = less<Key>>

Definition at line 77 of file limited_size_map.hpp.

◆ SNode() [2/3]

template<class Key , class Value , class Less = less<Key>>

Definition at line 73 of file limited_size_map.hpp.

◆ SNode() [3/3]

template<class Key , class Value , class Less = less<Key>>

Definition at line 69 of file limited_size_map.hpp.

◆ upper_bound() [1/2] ◆ upper_bound() [2/2] ◆ x_EraseElement()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ x_EraseLast()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

void CCache< TKey, TValue, THandler, TLock, TSize >::x_EraseLast ( void  ) private ◆ x_GC()

template<class Key , class Value , class Less = less<Key>>

◆ x_GetBaseWeight()

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

TWeight CCache< TKey, TValue, THandler, TLock, TSize >::x_GetBaseWeight ( void  ) const inlineprivate

Definition at line 289 of file ncbi_cache.hpp.

◆ x_GetNextCounter()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

CCache< TKey, TValue, THandler, TLock, TSize >::TOrder CCache< TKey, TValue, THandler, TLock, TSize >::x_GetNextCounter ( void  ) private

Definition at line 420 of file ncbi_cache.hpp.

◆ x_GetNode()

template<class Key , class Value , class Less = less<Key>>

◆ x_InsertElement()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ x_MarkAdded()

template<class Key , class Value , class Less = less<Key>>

◆ x_MarkUsed()

template<class Key , class Value , class Less = less<Key>>

◆ x_PackElementIndex()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

void CCache< TKey, TValue, THandler, TLock, TSize >::x_PackElementIndex ( void  ) private ◆ x_UpdateElement()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

◆ ~CCache()

template<class TKey , class TValue , class THandler , class TLock , class TSize >

CCache< TKey, TValue, THandler, TLock, TSize >::~CCache ( void  ) ◆ m_CacheElement

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ m_CacheMap

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 297 of file ncbi_cache.hpp.

◆ m_CacheSet

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ m_Capacity

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ m_Counter

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

TOrder CCache< TKey, TValue, THandler, TLock, TSize >::m_Counter private

Definition at line 298 of file ncbi_cache.hpp.

◆ m_Handler

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

◆ m_Iter [1/2]

template<class Key , class Value , class Less = less<Key>>

◆ m_Iter [2/2]

template<class Key , class Value , class Less = less<Key>>

◆ m_Key

template<class TKey , class TSize >

Definition at line 73 of file ncbi_cache.hpp.

◆ m_KeyComp

template<class Key , class Value , class Less = less<Key>>

◆ m_Lock

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

Definition at line 294 of file ncbi_cache.hpp.

◆ m_Map

template<class Key , class Value , class Less = less<Key>>

Definition at line 96 of file limited_size_map.hpp.

Referenced by limited_size_map< string, CRef< CSlot > >::begin(), limited_size_map< string, CRef< CSlot > >::clear(), limited_size_map< string, CRef< CSlot > >::empty(), limited_size_map< string, CRef< CSlot > >::end(), limited_size_map< string, CRef< CSlot > >::erase(), limited_size_map< string, CRef< CSlot > >::find(), limited_size_map< string, CRef< CSlot > >::insert(), limited_size_map< string, CRef< CSlot > >::lower_bound(), limited_size_map< string, CRef< CSlot > >::operator[](), limited_size_map< string, CRef< CSlot > >::size(), limited_size_map< string, CRef< CSlot > >::upper_bound(), and limited_size_map< string, CRef< CSlot > >::x_GC().

◆ m_Order

template<class TKey , class TSize >

Definition at line 75 of file ncbi_cache.hpp.

Referenced by CCache< TKey, TValue, THandler, TLock, TSize >::Add(), CCache< TKey, TValue, THandler, TLock, TSize >::x_PackElementIndex(), and CCache< TKey, TValue, THandler, TLock, TSize >::x_UpdateElement().

◆ m_RemoveList

template<class Key , class Value , class Less = less<Key>>

◆ m_RemoveListIter

template<class Key , class Value , class Less = less<Key>>

◆ m_SizeLimit

template<class Key , class Value , class Less = less<Key>>

◆ m_Value

template<class TKey , class TValue , class THandler = CCacheElement_Handler<TKey, TValue>, class TLock = TCacheLock_Default, class TSize = Uint4>

TValueType CCache< TKey, TValue, THandler, TLock, TSize >::SValueWithIndex::m_Value ◆ m_Weight

template<class TKey , class TSize >

◆ limited_size_map< key_type, mapped_type, TLess > [1/2] ◆ limited_size_map< key_type, mapped_type, TLess > [2/2]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4