NCBI C++ ToolKit
|
Search Toolkit Book for CLoadLockBlob
#include <objtools/data_loaders/genbank/impl/request_result.hpp>
Public Types | |
typedef CGBInfoManager::TChunkId | TChunkId |
typedef CGBInfoManager::TBlobVersion | TBlobVersion |
Public Member Functions | |
CLoadLockBlob (CReaderRequestResult &src, const CBlob_id &blob_id, TChunkId chunk_id=kMain_ChunkId) | |
~CLoadLockBlob (void) | |
bool | IsLoadedBlob (void) const |
void | SelectChunk (TChunkId chunk_id) |
TChunkId | GetSelectedChunkId (void) const |
bool | IsLoadedChunk (void) const |
bool | IsLoadedChunk (TChunkId chunk_id) const |
CTSE_LoadLock & | GetTSE_LoadLock (void) |
const CTSE_Chunk_Info & | GetTSE_Chunk_Info (void) |
TBlobVersion | GetKnownBlobVersion (void) const |
const CTSE_Split_Info & | GetSplitInfo (void) const |
bool | NeedsDelayedMainChunk (void) const |
Protected Member Functions | |
void | x_ObtainTSE_LoadLock (CReaderRequestResult &result) |
Private Types | |
typedef CGBInfoManager::TCacheBlob::TInfoLock | TParent |
Private Member Functions | |
void | IsLoaded (void) |
void | SetLoaded (void) |
Private Attributes | |
CBlob_id | m_Blob_id |
CTSE_LoadLock | m_TSE_LoadLock |
CConstRef< CTSE_Chunk_Info > | m_Chunk |
Friends | |
class | CLoadLockSetter |
Definition at line 896 of file request_result.hpp.
Definition at line 902 of file request_result.hpp.
Definition at line 901 of file request_result.hpp.
|
private |
Definition at line 899 of file request_result.hpp.
CLoadLockBlob::CLoadLockBlob | ( | CReaderRequestResult & | src, |
const CBlob_id & | blob_id, | ||
TChunkId | chunk_id = kMain_ChunkId |
||
) |
Definition at line 392 of file request_result.cpp.
References kMain_ChunkId, result, SelectChunk(), and x_ObtainTSE_LoadLock().
CLoadLockBlob::~CLoadLockBlob | ( | void | ) |
Definition at line 405 of file request_result.cpp.
CLoadLockBlob::TBlobVersion CLoadLockBlob::GetKnownBlobVersion | ( | void | ) | const |
Definition at line 423 of file request_result.cpp.
References CTSE_Info::GetBlobVersion(), kBlobVersionNotSet, and m_TSE_LoadLock.
Referenced by CCacheReader::LoadChunk(), CId2ReaderBase::LoadChunk(), CId2ReaderBase::LoadChunks(), CCacheWriter::OpenBlobStream(), and CReaderRequestResult::SetLoadedBlobVersion().
TChunkId CLoadLockBlob::GetSelectedChunkId | ( | void | ) | const |
Definition at line 458 of file request_result.cpp.
References CTSE_Chunk_Info::GetChunkId(), kMain_ChunkId, and m_Chunk.
Referenced by CLoadLockSetter::CLoadLockSetter(), and CLoadLockSetter::x_Init().
const CTSE_Split_Info & CLoadLockBlob::GetSplitInfo | ( | void | ) | const |
Definition at line 432 of file request_result.cpp.
References _ASSERT, CTSE_Info::GetSplitInfo(), and m_TSE_LoadLock.
Referenced by SCacheInfo::GetBlobSubkey(), CId2ReaderBase::LoadChunk(), CId2ReaderBase::LoadChunks(), and SelectChunk().
|
inline |
Definition at line 921 of file request_result.hpp.
References m_Chunk.
CTSE_LoadLock & CLoadLockBlob::GetTSE_LoadLock | ( | void | ) |
Definition at line 410 of file request_result.cpp.
References _ASSERT, CTSE_LoadLock::IsLoaded(), m_TSE_LoadLock, result, and x_ObtainTSE_LoadLock().
Referenced by CGBDataLoader_Native::GetBlobById(), CGBDataLoader_Native::GetBlobs(), CGBDataLoader_Native::GetCDDAnnots(), CReader::LoadSeq_idTaxId(), CReader::LoadSequenceLength(), CReader::LoadSequenceType(), CReaderRequestResult::SetLoadedBlobState(), CReaderRequestResult::SetLoadedBlobVersion(), and CGBDataLoader_Native::x_GetRecords().
|
private |
|
inline |
Definition at line 909 of file request_result.hpp.
Referenced by CGBDataLoader_Native::GetBlobById(), CGBDataLoader_Native::GetBlobs(), CGBDataLoader_Native::GetCDDAnnots(), IsLoadedChunk(), CReader::LoadBlob(), CId1ReaderBase::LoadBlob(), CId2ReaderBase::LoadBlob(), CId2ReaderBase::LoadBlobs(), CReader::LoadBlobs(), CId2ReaderBase::LoadBlobSet(), CId1ReaderBase::LoadChunk(), CId2ReaderBase::LoadChunks(), CReader::LoadSeq_idTaxId(), CReader::LoadSequenceLength(), CReader::LoadSequenceType(), CReaderRequestResult::SetLoadedBlobState(), CReaderRequestResult::SetLoadedBlobVersion(), CReaderRequestResult::SetNoBlob(), CGBDataLoader_Native::x_GetRecords(), CId2ReaderBase::x_ProcessGetBlob(), and CId2ReaderBase::x_ProcessGetSplitInfo().
Definition at line 475 of file request_result.cpp.
References _ASSERT, CTSE_Chunk_Info::GetChunkId(), CTSE_Chunk_Info::IsLoaded(), IsLoadedBlob(), kMain_ChunkId, and m_Chunk.
bool CLoadLockBlob::IsLoadedChunk | ( | void | ) | const |
Definition at line 464 of file request_result.cpp.
References CTSE_Chunk_Info::IsLoaded(), IsLoadedBlob(), and m_Chunk.
Referenced by CId1Reader::GetBlob(), CPubseqReader::GetBlob(), CCacheReader::LoadChunk(), CId1ReaderBase::LoadChunk(), CId2ReaderBase::LoadChunk(), CId2ReaderBase::LoadChunks(), LoadedChunksPacket(), CProcessor_ID2::ProcessData(), CProcessor_ID1::ProcessObjStream(), CProcessor_ID1_SNP::ProcessObjStream(), CId2ReaderBase::x_ProcessGetBlob(), and CId2ReaderBase::x_ProcessGetSplitInfo().
bool CLoadLockBlob::NeedsDelayedMainChunk | ( | void | ) | const |
Definition at line 439 of file request_result.cpp.
References m_TSE_LoadLock, and CTSE_Info::x_NeedsDelayedMainChunk().
Referenced by CId2ReaderBase::x_ProcessGetBlob(), and CId2ReaderBase::x_ProcessGetSplitInfo().
void CLoadLockBlob::SelectChunk | ( | TChunkId | chunk_id | ) |
Definition at line 445 of file request_result.cpp.
References _ASSERT, CTSE_Split_Info::GetChunk(), CTSE_Chunk_Info::GetChunkId(), GetSplitInfo(), CTSE_LoadLock::IsLoaded(), kMain_ChunkId, m_Chunk, and m_TSE_LoadLock.
Referenced by CLoadLockBlob(), CId2ReaderBase::LoadChunks(), LoadedChunksPacket(), CId2ReaderBase::x_ProcessGetBlob(), and CId2ReaderBase::x_ProcessGetSplitInfo().
|
private |
|
protected |
Definition at line 490 of file request_result.cpp.
References _ASSERT, eExpire_normal, CTSE_LoadLock::IsLoaded(), m_Blob_id, m_TSE_LoadLock, and result.
Referenced by CLoadLockBlob(), and GetTSE_LoadLock().
|
friend |
Definition at line 932 of file request_result.hpp.
|
private |
Definition at line 942 of file request_result.hpp.
Referenced by CLoadLockSetter::x_Init(), and x_ObtainTSE_LoadLock().
|
private |
Definition at line 944 of file request_result.hpp.
Referenced by GetSelectedChunkId(), GetTSE_Chunk_Info(), IsLoadedChunk(), SelectChunk(), and CLoadLockSetter::x_Init().
|
private |
Definition at line 943 of file request_result.hpp.
Referenced by GetKnownBlobVersion(), GetSplitInfo(), GetTSE_LoadLock(), NeedsDelayedMainChunk(), SelectChunk(), CLoadLockSetter::x_Init(), and x_ObtainTSE_LoadLock().