Go to the SVN repository for this file.
1 #ifndef SRA__READER__SRA__VDBCACHE__HPP 2 #define SRA__READER__SRA__VDBCACHE__HPP 58 returnm_CacheMap.get_size_limit();
62 returnm_ForceReopenSeconds;
66 returnm_RecheckSeconds;
68 voidset_size_limit(
size_tlimit);
69 voidSetForceReopenSeconds(
unsignedseconds);
70 voidSetRecheckSeconds(
unsignedseconds);
80 static stringDereferncePath(
const CVDBMgr& mgr,
const string& acc_or_path);
81 static CTimeGetTimestamp(
const CVDBMgr& mgr,
const string& path);
96 virtual~
CSlot()
override;
104 template<
classObject>
107 return Ref(
dynamic_cast<Object*
>(m_Object.GetNCPointerOrNull()));
115SetObject(
nullptr);
119 const string& acc_or_path)
const;
121 const string& acc_or_path);
CDeadline m_ForceReopenDeadline
CDeadline m_RecheckDeadline
string m_DereferencedPath
void operator=(const CExpirationInfo &)=delete
CExpirationInfo(const CExpirationInfo &)=delete
TSlotMutex & GetSlotMutex()
CSlot(const CSlot &)=delete
void SetObject(CObject *object)
void operator=(const CSlot &)=delete
CRef< CExpirationInfo > m_ExpirationInfo
CRef< Object > GetObject() const
unsigned GetRecheckSecond() const
limited_size_map< string, CRef< CSlot > > TCacheMap
void SetObject(CSlot &slot, CObject *object) const
unsigned m_RecheckSeconds
CRef< CObject > GetObject(CSlot &slot) const
void Set(const string &acc_or_path, CRef< CSlot > slot)
unsigned m_ForceReopenSeconds
size_t get_size_limit() const
bool x_IsExpired(const string &acc_or_path, CSlot &slot) const
void operator=(const CVDBCacheWithExpiration &)=delete
CVDBCacheWithExpiration(const CVDBCacheWithExpiration &)=delete
CRef< CSlot > GetSlot(const string &acc_or_path)
unsigned GetForceReopenSecond() const
Include a standard set of the NCBI C++ Toolkit most basic headers.
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
@ eInfinite
Infinite deadline.
#define NCBI_SRAREAD_EXPORT
Generic map with size limited by some number.
Multi-threading â mutexes; rw-locks; semaphore.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Defines: CTimeFormat - storage class for time format.
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