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

Search Toolkit Book for CPubseqGatewayCacheBase

#include "psg_cache_base.hpp"
(Private to src/objtools/pubseq_gateway/cache.)

+ Inheritance diagram for CPubseqGatewayCacheBase:

Public Member Functions

 CPubseqGatewayCacheBase (const string &file_name)
 
virtual ~CPubseqGatewayCacheBase ()=default
 
void Open ()
 
void UseReadAhead (bool value)
 

Protected Member Functions

CLMDBReadOnlyTxn BeginReadTxn ()
 

Protected Attributes

string m_FileName
 
unique_ptr< lmdb::envm_Env
 

Private Attributes

bool m_UseReadAhead {true}
 

Detailed Description

Definition at line 80 of file psg_cache_base.hpp.

Constructor & Destructor Documentation

◆ CPubseqGatewayCacheBase()

BEGIN_IDBLOB_SCOPE CPubseqGatewayCacheBase::CPubseqGatewayCacheBase ( const string file_name)
explicit

Definition at line 48 of file psg_cache_base.cpp.

References lmdb::env::create().

◆ ~CPubseqGatewayCacheBase()

virtual CPubseqGatewayCacheBase::~CPubseqGatewayCacheBase ( )
virtualdefault

Member Function Documentation

◆ BeginReadTxn()

CLMDBReadOnlyTxn CPubseqGatewayCacheBase::BeginReadTxn ( )
protected

◆ Open()

void CPubseqGatewayCacheBase::Open ( void  )

◆ UseReadAhead()

void CPubseqGatewayCacheBase::UseReadAhead ( bool  value)
inline
Parameters
value- true/false to enable/disable OS level read ahead

Definition at line 90 of file psg_cache_base.hpp.

References m_UseReadAhead, and rapidjson::value.

Member Data Documentation

◆ m_Env

unique_ptr<lmdb::env> CPubseqGatewayCacheBase::m_Env
protected

◆ m_FileName

string CPubseqGatewayCacheBase::m_FileName
protected

Definition at line 97 of file psg_cache_base.hpp.

Referenced by Open().

◆ m_UseReadAhead

bool CPubseqGatewayCacheBase::m_UseReadAhead {true}
private

Definition at line 101 of file psg_cache_base.hpp.

Referenced by Open(), and UseReadAhead().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:58 2024 by modify_doxy.py rev. 669887