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

Search Toolkit Book for CRCache

+ Collaboration diagram for CRCache:

Classes

class  CDataPool
 
class  CRVPool
 
struct  SDataItem
 

Public Types

typedef CDbIndex::TSeqNum TSeqNum
 

Public Member Functions

 CRCache (Uint4 max_results_per_query)
 
void update (TSeqNum query, CSRSearch::TResults &results, const string &idstr1, const string &idstr2)
 
void updateSIdMap (const vector< string > &idmap, TSeqNum start)
 
const vector< string > & getSIdMap () const
 
void dump (CNcbiOstream &ostream)
 
CSRSearch::ELevel getLevel1 (TSeqNum q)
 
CSRSearch::ELevel getLevel2 (TSeqNum q)
 
Uint4 getNRes1 (TSeqNum q)
 
Uint4 getNRes2 (TSeqNum q)
 

Private Attributes

Uint4 max_res_
 
CDataPool data_pool
 
CRVPool rv_pool
 
vector< stringidmap1
 
vector< stringidmap2
 
vector< stringsidmap
 

Detailed Description

Definition at line 58 of file srsearch_app.cpp.

Member Typedef Documentation

◆ TSeqNum

Definition at line 62 of file srsearch_app.cpp.

Constructor & Destructor Documentation

◆ CRCache()

CRCache::CRCache ( Uint4  max_results_per_query)
inline

Definition at line 76 of file srsearch_app.cpp.

Member Function Documentation

◆ dump()

void CRCache::dump ( CNcbiOstream ostream)

Definition at line 225 of file srsearch_app.cpp.

References data, data_pool, i, PrintResults(), sidmap, and CRCache::CDataPool::size().

Referenced by CSRSearchApplication::Run().

◆ getLevel1()

CSRSearch::ELevel CRCache::getLevel1 ( TSeqNum  q)
inline

Definition at line 101 of file srsearch_app.cpp.

References data_pool.

Referenced by CSRSearchApplication::Run().

◆ getLevel2()

CSRSearch::ELevel CRCache::getLevel2 ( TSeqNum  q)
inline

Definition at line 104 of file srsearch_app.cpp.

References data_pool.

Referenced by CSRSearchApplication::Run().

◆ getNRes1()

Uint4 CRCache::getNRes1 ( TSeqNum  q)
inline

Definition at line 107 of file srsearch_app.cpp.

References data_pool, and r().

Referenced by CSRSearchApplication::Run().

◆ getNRes2()

Uint4 CRCache::getNRes2 ( TSeqNum  q)
inline

Definition at line 113 of file srsearch_app.cpp.

References data_pool, and r().

Referenced by CSRSearchApplication::Run().

◆ getSIdMap()

const vector< string >& CRCache::getSIdMap ( ) const
inline

Definition at line 97 of file srsearch_app.cpp.

References sidmap.

Referenced by CSRSearchApplication::Run().

◆ update()

void CRCache::update ( TSeqNum  query,
CSRSearch::TResults results,
const string idstr1,
const string idstr2 
)

◆ updateSIdMap()

void CRCache::updateSIdMap ( const vector< string > &  idmap,
TSeqNum  start 
)
inline

Definition at line 86 of file srsearch_app.cpp.

References i, and sidmap.

Referenced by CSRSearchApplication::Run().

Member Data Documentation

◆ data_pool

CDataPool CRCache::data_pool
private

Definition at line 217 of file srsearch_app.cpp.

Referenced by dump(), getLevel1(), getLevel2(), getNRes1(), getNRes2(), and update().

◆ idmap1

vector< string > CRCache::idmap1
private

Definition at line 219 of file srsearch_app.cpp.

◆ idmap2

vector< string > CRCache::idmap2
private

Definition at line 220 of file srsearch_app.cpp.

◆ max_res_

Uint4 CRCache::max_res_
private

Definition at line 216 of file srsearch_app.cpp.

◆ rv_pool

CRVPool CRCache::rv_pool
private

Definition at line 218 of file srsearch_app.cpp.

Referenced by update().

◆ sidmap

vector< string > CRCache::sidmap
private

Definition at line 221 of file srsearch_app.cpp.

Referenced by dump(), getSIdMap(), and updateSIdMap().


The documentation for this class was generated from the following file:
Modified on Wed Sep 04 15:06:56 2024 by modify_doxy.py rev. 669887