NCBI C++ ToolKit
|
Search Toolkit Book for CWGSFileInfo
#include <sra/data_loaders/wgs/impl/wgsloader_impl.hpp>
Classes | |
struct | SAccFileInfo |
Public Member Functions | |
CWGSFileInfo (const CWGSDataLoader_Impl &impl, const string &prefix) | |
void | Open (const CWGSDataLoader_Impl &impl, const string &prefix) |
const string & | GetWGSPrefix (void) const |
bool | FindGi (SAccFileInfo &info, TGi gi) |
bool | FindProtAcc (SAccFileInfo &info, const CTextseq_id &text_id) |
const CWGSDb & | GetDb (void) const |
operator const CWGSDb & (void) const | |
void | LoadBlob (const CWGSBlobId &blob_id, CTSE_LoadLock &load_lock) const |
void | LoadChunk (const CWGSBlobId &blob_id, CTSE_Chunk_Info &chunk) const |
CWGSSeqIterator | GetContigIterator (const CWGSBlobId &blob_id) const |
CWGSScaffoldIterator | GetScaffoldIterator (const CWGSBlobId &blob_id) const |
CWGSProteinIterator | GetProteinIterator (const CWGSBlobId &blob_id) const |
![]() | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
![]() | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
Protected Member Functions | |
void | x_Initialize (const CWGSDataLoader_Impl &impl, const string &prefix) |
void | x_InitMasterDescr (void) |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Protected Attributes | |
string | m_WGSPrefix |
CWGSDb | m_WGSDb |
Friends | |
class | CWGSDataLoader_Impl |
Additional Inherited Members | |
![]() | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
![]() | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
![]() | |
static void | EnableDebugDump (bool on) |
![]() | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Definition at line 59 of file wgsloader_impl.hpp.
CWGSFileInfo::CWGSFileInfo | ( | const CWGSDataLoader_Impl & | impl, |
const string & | prefix | ||
) |
Definition at line 1434 of file wgsloader_impl.cpp.
bool CWGSFileInfo::FindGi | ( | SAccFileInfo & | info, |
TGi | gi | ||
) |
Definition at line 1641 of file wgsloader_impl.cpp.
References CWGSGiIterator::eProt, CWGSGiIterator::GetRowId(), CWGSGiIterator::GetSeqType(), info, and m_WGSDb.
Referenced by CWGSDataLoader_Impl::GetFileInfoByGi().
bool CWGSFileInfo::FindProtAcc | ( | SAccFileInfo & | info, |
const CTextseq_id & | text_id | ||
) |
Definition at line 1658 of file wgsloader_impl.cpp.
References CTextseq_id_Base::GetAccession(), CWGSDb::GetProtAccRowId(), CTextseq_id_Base::GetVersion(), info, CTextseq_id_Base::IsSetVersion(), and m_WGSDb.
Referenced by CWGSDataLoader_Impl::GetFileInfoByProtAcc().
CWGSSeqIterator CWGSFileInfo::GetContigIterator | ( | const CWGSBlobId & | blob_id | ) | const |
Definition at line 1062 of file wgsloader_impl.cpp.
References _ASSERT, CWGSSeqIterator::fIncludeAll, GetDb(), CWGSBlobId::m_RowId, CWGSBlobId::m_SeqType, CWGSBlobId::m_Version, and CWGSSeqIterator::SelectAccVersion().
Referenced by LoadBlob(), LoadChunk(), CWGSFileInfo::SAccFileInfo::ValidateAcc(), and CWGSFileInfo::SAccFileInfo::ValidateGi().
Definition at line 112 of file wgsloader_impl.hpp.
References m_WGSDb.
Referenced by GetContigIterator(), GetProteinIterator(), CWGSFileInfo::SAccFileInfo::GetRootFileInfo(), GetScaffoldIterator(), LoadBlob(), and operator const CWGSDb &().
CWGSProteinIterator CWGSFileInfo::GetProteinIterator | ( | const CWGSBlobId & | blob_id | ) | const |
Definition at line 1083 of file wgsloader_impl.cpp.
References _ASSERT, GetDb(), CWGSBlobId::m_RowId, and CWGSBlobId::m_SeqType.
Referenced by LoadBlob(), CWGSFileInfo::SAccFileInfo::ValidateAcc(), and CWGSFileInfo::SAccFileInfo::ValidateGi().
CWGSScaffoldIterator CWGSFileInfo::GetScaffoldIterator | ( | const CWGSBlobId & | blob_id | ) | const |
Definition at line 1074 of file wgsloader_impl.cpp.
References _ASSERT, GetDb(), CWGSBlobId::m_RowId, and CWGSBlobId::m_SeqType.
Referenced by LoadBlob(), and CWGSFileInfo::SAccFileInfo::ValidateAcc().
Definition at line 68 of file wgsloader_impl.hpp.
References m_WGSPrefix.
Referenced by CWGSDataLoader_Impl::GetFileInfoByGi(), CWGSDataLoader_Impl::GetFileInfoByProtAcc(), and x_Initialize().
void CWGSFileInfo::LoadBlob | ( | const CWGSBlobId & | blob_id, |
CTSE_LoadLock & | load_lock | ||
) | const |
Definition at line 1696 of file wgsloader_impl.cpp.
References _ASSERT, CSplitParser::Attach(), ERR_POST_X, flags, CBioseq_Handle::fState_no_data, CBioseq_Handle::fState_withdrawn, GetContigIterator(), GetDb(), GetDebugLevel(), GetProteinIterator(), GetScaffoldIterator(), GetSplitFeaturesParam(), CTSE_Info::GetSplitInfo(), GetSplitQualityGraphParam(), GetSplitSequenceParam(), Info(), CTSE_LoadLock::IsLoaded(), LOG_POST_X, CWGSBlobId::m_SeqType, MSerial_AsnText, s_GBStateToOM(), CTSE_Info::SetBlobState(), CTSE_Info::SetSeq_entry(), CTSE_Split_Info::SetSplitVersion(), split(), and CWGSBlobId::ToString().
Referenced by CWGSDataLoader_Impl::GetBlobByIdOnce().
void CWGSFileInfo::LoadChunk | ( | const CWGSBlobId & | blob_id, |
CTSE_Chunk_Info & | chunk | ||
) | const |
Definition at line 1780 of file wgsloader_impl.cpp.
References CWGSSeqIterator::GetChunkForVersion(), CTSE_Chunk_Info::GetChunkId(), GetContigIterator(), GetDebugLevel(), CTSE_Chunk_Info::GetSplitInfo(), CTSE_Split_Info::GetSplitVersion(), Info(), CSplitParser::Load(), LOG_POST_X, CWGSBlobId::m_SeqType, MSerial_AsnText, CTSE_Chunk_Info::SetLoaded(), and CWGSBlobId::ToString().
void CWGSFileInfo::Open | ( | const CWGSDataLoader_Impl & | impl, |
const string & | prefix | ||
) |
Definition at line 1441 of file wgsloader_impl.cpp.
References ERR_POST_X, GetDebugLevel(), CSraException::GetParam(), m_WGSDb, NCBI_RETHROW_FMT, NPOS, prefix, CSraException::SetParam(), and x_Initialize().
Referenced by CWGSFileInfo().
Definition at line 116 of file wgsloader_impl.hpp.
References GetDb().
|
protected |
Definition at line 1471 of file wgsloader_impl.cpp.
References GetDebugLevel(), CWGSDb::GetWGSPath(), GetWGSPrefix(), Info(), LOG_POST_X, m_WGSDb, m_WGSPrefix, prefix, and x_InitMasterDescr().
Referenced by Open().
|
protected |
Definition at line 1488 of file wgsloader_impl.cpp.
References CDataLoader::eBioseqCore, CObjectManager::FindDataLoader(), CSeq_descr_Base::Get(), CBioseq_Base_Info::GetDescr(), CSeq_id_Handle::GetHandle(), CObjectManager::GetInstance(), CDataLoader::GetRecordsNoBlobState(), CBioseq_Base_Info::IsSetDescr(), ITERATE, CWGSDb::LoadMasterDescr(), m_WGSDb, and CWGSDb::SetMasterDescr().
Referenced by x_Initialize().
|
friend |
Definition at line 131 of file wgsloader_impl.hpp.
|
protected |
Definition at line 138 of file wgsloader_impl.hpp.
Referenced by FindGi(), FindProtAcc(), GetDb(), Open(), x_Initialize(), and x_InitMasterDescr().
|
protected |
Definition at line 137 of file wgsloader_impl.hpp.
Referenced by GetWGSPrefix(), and x_Initialize().