NCBI C++ ToolKit
Public Member Functions | Public Attributes | Private Attributes | List of all members
CUserExcludeBlobs Class Reference

Search Toolkit Book for CUserExcludeBlobs

#include "exclude_blob_cache.hpp"
(Private to src/app/pubseq_gateway/server.)

+ Collaboration diagram for CUserExcludeBlobs:

Public Member Functions

 CUserExcludeBlobs ()
 
 ~CUserExcludeBlobs ()
 
bool IsInCache (int sat, int sat_key, bool &completed, psg_time_point_t &completed_time)
 
EPSGS_CacheAddResult AddBlobId (int sat, int sat_key, bool &completed, psg_time_point_t &completed_time)
 
bool SetCompleted (int sat, int sat_key, bool new_val)
 
bool Remove (int sat, int sat_key)
 
void Purge (size_t purged_size)
 
void Clear (void)
 

Public Attributes

mutex m_Lock
 
psg_time_point_t m_LastTouch
 

Private Attributes

set< SExcludeBlobIdm_ExcludeBlobs
 
list< SExcludeBlobIdm_LRU
 

Detailed Description

Definition at line 80 of file exclude_blob_cache.hpp.

Constructor & Destructor Documentation

◆ CUserExcludeBlobs()

CUserExcludeBlobs::CUserExcludeBlobs ( )
inline

Definition at line 83 of file exclude_blob_cache.hpp.

◆ ~CUserExcludeBlobs()

CUserExcludeBlobs::~CUserExcludeBlobs ( )
inline

Definition at line 87 of file exclude_blob_cache.hpp.

Member Function Documentation

◆ AddBlobId()

EPSGS_CacheAddResult CUserExcludeBlobs::AddBlobId ( int  sat,
int  sat_key,
bool completed,
psg_time_point_t completed_time 
)

◆ Clear()

void CUserExcludeBlobs::Clear ( void  )

Definition at line 130 of file exclude_blob_cache.cpp.

References m_ExcludeBlobs, m_LastTouch, and m_LRU.

◆ IsInCache()

bool CUserExcludeBlobs::IsInCache ( int  sat,
int  sat_key,
bool completed,
psg_time_point_t completed_time 
)

Definition at line 38 of file exclude_blob_cache.cpp.

References m_ExcludeBlobs, and m_LastTouch.

Referenced by CExcludeBlobCache::IsInCache().

◆ Purge()

void CUserExcludeBlobs::Purge ( size_t  purged_size)

Definition at line 121 of file exclude_blob_cache.cpp.

References m_ExcludeBlobs, and m_LRU.

◆ Remove()

bool CUserExcludeBlobs::Remove ( int  sat,
int  sat_key 
)

Definition at line 103 of file exclude_blob_cache.cpp.

References m_ExcludeBlobs, m_LastTouch, and m_LRU.

Referenced by CExcludeBlobCache::Remove().

◆ SetCompleted()

bool CUserExcludeBlobs::SetCompleted ( int  sat,
int  sat_key,
bool  new_val 
)

Member Data Documentation

◆ m_ExcludeBlobs

set<SExcludeBlobId> CUserExcludeBlobs::m_ExcludeBlobs
private

Definition at line 116 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), Clear(), IsInCache(), Purge(), Remove(), and SetCompleted().

◆ m_LastTouch

psg_time_point_t CUserExcludeBlobs::m_LastTouch

Definition at line 113 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), Clear(), IsInCache(), Remove(), and SetCompleted().

◆ m_Lock

mutex CUserExcludeBlobs::m_Lock

◆ m_LRU

list<SExcludeBlobId> CUserExcludeBlobs::m_LRU
private

Definition at line 117 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), Clear(), Purge(), and Remove().


The documentation for this class was generated from the following files:
Modified on Sat May 18 11:37:39 2024 by modify_doxy.py rev. 669887