NCBI C++ ToolKit
|
Search Toolkit Book for CSNPDb_Impl
#include <sra/readers/sra/snpread.hpp>
Classes | |
struct | SExtraTableCursor |
struct | SFeatTableCursor |
struct | SGraphTableCursor |
struct | SPageTableCursor |
struct | SSeqInfo |
struct | SSeqTableCursor |
struct | STrackInfo |
struct | STrackTableCursor |
Public Member Functions | |
CSNPDb_Impl (CVDBMgr &mgr, CTempString path_or_acc) | |
virtual | ~CSNPDb_Impl (void) |
const string & | GetDbPath (void) const |
const TSeqInfoList & | GetSeqInfoList (void) const |
const TSeqInfoMapBySeq_id & | GetSeqInfoMapBySeq_id (void) const |
const TTrackInfoList & | GetTrackInfoList (void) const |
const TTrackInfoMapByName & | GetTrackInfoMapByName (void) const |
TTrackInfoList::const_iterator | FindTrack (const string &name) const |
TSeqInfoList::const_iterator | FindSeq (const string &accession, int version) |
TSeqInfoList::const_iterator | FindSeq (const CSeq_id_Handle &seq_id) |
TSeqPos | GetPageSize (void) const |
TSeqPos | GetOverviewZoom (void) const |
TSeqPos | GetCoverageZoom (void) const |
Public Member Functions inherited from CObject | |
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... | |
Public Member Functions inherited from CDebugDumpable | |
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 | |
const CVDBTable & | SeqTable (void) |
const CVDBTable & | GraphTable (void) |
const CVDBTable & | PageTable (void) |
const CVDBTable & | FeatTable (void) |
const CVDBTable & | ExtraTable (void) |
CRef< SSeqTableCursor > | Seq (TVDBRowId row=0) |
void | Put (CRef< SSeqTableCursor > &curs, TVDBRowId row=0) |
CRef< SGraphTableCursor > | Graph (TVDBRowId row=0) |
void | Put (CRef< SGraphTableCursor > &curs, TVDBRowId row=0) |
CRef< SPageTableCursor > | Page (TVDBRowId row=0) |
void | Put (CRef< SPageTableCursor > &curs, TVDBRowId row=0) |
CRef< SFeatTableCursor > | Feat (TVDBRowId row=0) |
void | Put (CRef< SFeatTableCursor > &curs, TVDBRowId row=0) |
CRef< SExtraTableCursor > | Extra (TVDBRowId row=0) |
void | Put (CRef< SExtraTableCursor > &curs, TVDBRowId row=0) |
size_t | x_GetSeqVDBIndex (TSeqInfoList::const_iterator seq) const |
size_t | x_GetTrackVDBIndex (TTrackInfoList::const_iterator track) const |
TVDBRowId | x_GetSeqVDBRowId (TSeqInfoList::const_iterator seq) const |
TVDBRowId | x_GetTrackVDBRowId (TTrackInfoList::const_iterator track) const |
void | x_Update (TSeqInfoList::const_iterator seq) |
CRange< TVDBRowId > | x_GetPageVDBRowRange (TSeqInfoList::const_iterator seq) |
TVDBRowId | x_GetGraphVDBRowId (TSeqInfoList::const_iterator seq, TTrackInfoList::const_iterator track) |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Private Types | |
typedef map< TVDBRowId, TVDBRowId > | TSeq2PageMap |
Friends | |
class | CSNPDbTrackIterator |
class | CSNPDbSeqIterator |
class | CSNPDbPageIterator |
class | CSNPDbGraphIterator |
class | CSNPDbFeatIterator |
Additional Inherited Members | |
Static Public Member Functions inherited from CObject | |
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 Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Static Public Attributes inherited from CObject | |
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 180 of file snpread.hpp.
|
private |
Definition at line 361 of file snpread.hpp.
typedef vector<SSeqInfo> CSNPDb_Impl::TSeqInfoList |
Definition at line 222 of file snpread.hpp.
typedef map<CSeq_id_Handle, size_t> CSNPDb_Impl::TSeqInfoMapBySeq_id |
Definition at line 223 of file snpread.hpp.
typedef vector<STrackInfo> CSNPDb_Impl::TTrackInfoList |
Definition at line 230 of file snpread.hpp.
typedef map<string, size_t> CSNPDb_Impl::TTrackInfoMapByName |
Definition at line 231 of file snpread.hpp.
CSNPDb_Impl::CSNPDb_Impl | ( | CVDBMgr & | mgr, |
CTempString | path_or_acc | ||
) |
Definition at line 316 of file snpread.cpp.
References CSraException::eNotFoundDb, CSraException::GetErrCode(), CSeq_id_Handle::GetHandle(), CVDBCursor::GetMaxRowId(), CSraException::GetRC(), CSNPDb_Impl::SSeqInfo::SPageSet::GetRowIdEnd(), CSNPDb_Impl::SSeqInfo::SPageSet::GetSeqPosEnd(), i, info, kPageSize, kPreloadSeqList, CSNPDb_Impl::STrackTableCursor::m_Cursor, m_Db, m_ExtraTable, m_FeatTable, m_GraphTable, m_Mgr, CSNPDb_Impl::SSeqInfo::SPageSet::m_PageCount, m_PageTable, CSNPDb_Impl::SSeqInfo::SPageSet::m_RowId, m_SeqAccIndex, m_SeqList, m_SeqMapBySeq_id, CSNPDb_Impl::SSeqInfo::SPageSet::m_SeqPos, m_SeqTable, m_TrackList, m_TrackMapByName, NCBI_THROW2_FMT, Page(), Put(), row, Seq(), table, and NStr::TrimSuffixInPlace().
|
virtual |
Definition at line 447 of file snpread.cpp.
|
protected |
Definition at line 274 of file snpread.cpp.
References ExtraTable(), m_Extra, row, and table.
Referenced by CSNPDbFeatIterator::GetExtraRange().
|
protected |
Definition at line 264 of file snpread.cpp.
References FeatTable(), m_Feat, and row.
Referenced by CSNPDbFeatIterator::x_InitPage().
CSNPDb_Impl::TSeqInfoList::const_iterator CSNPDb_Impl::FindSeq | ( | const CSeq_id_Handle & | seq_id | ) |
Definition at line 514 of file snpread.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), FindSeq(), CSeq_id_Handle::GetSeqId(), CSeq_id::GetTextseq_Id(), m_SeqList, and m_SeqMapBySeq_id.
CSNPDb_Impl::TSeqInfoList::const_iterator CSNPDb_Impl::FindSeq | ( | const string & | accession, |
int | version | ||
) |
Definition at line 484 of file snpread.cpp.
References CVDBTableIndex::Find(), m_SeqAccIndex, m_SeqList, NStr::NumericToString(), compile_time_bits::range(), NStr::ToUpper(), dtl::version, and x_Update().
Referenced by FindSeq().
Definition at line 471 of file snpread.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), m_TrackList, and m_TrackMapByName.
TSeqPos CSNPDb_Impl::GetCoverageZoom | ( | void | ) | const |
Definition at line 464 of file snpread.cpp.
References kCoverageZoom.
Referenced by CSNPDb::GetCoverageZoom(), and CSNPDbSeqIterator::GetCoverageZoom().
Definition at line 233 of file snpread.hpp.
References m_DbPath.
Referenced by CSNPBlobId::CSNPBlobId(), x_GetGraphVDBRowId(), and x_GetPageVDBRowRange().
TSeqPos CSNPDb_Impl::GetOverviewZoom | ( | void | ) | const |
Definition at line 458 of file snpread.cpp.
References kOverviewZoom.
Referenced by CSNPDb::GetOverviewZoom(), and CSNPDbSeqIterator::GetOverviewZoom().
TSeqPos CSNPDb_Impl::GetPageSize | ( | void | ) | const |
Definition at line 452 of file snpread.cpp.
References kPageSize.
Referenced by CSNPDbSeqIterator::GetPageSize(), CSNPDbPageIterator::GetPageSize(), and CSNPDbGraphIterator::GetPageSize().
|
inline |
Definition at line 237 of file snpread.hpp.
References m_SeqList.
Referenced by CSNPDbSeqIterator::GetList(), x_GetGraphVDBRowId(), x_GetPageVDBRowRange(), and x_GetSeqVDBIndex().
|
inline |
Definition at line 240 of file snpread.hpp.
References m_SeqMapBySeq_id.
|
inline |
Definition at line 244 of file snpread.hpp.
References m_TrackList.
Referenced by CSNPDbTrackIterator::GetList(), CSNPDb::GetTrackCount(), x_GetGraphVDBRowId(), and x_GetTrackVDBIndex().
|
inline |
Definition at line 247 of file snpread.hpp.
References m_TrackMapByName.
|
protected |
Definition at line 244 of file snpread.cpp.
References GraphTable(), m_Graph, and row.
Referenced by CSNPDbGraphIterator::Select(), and CSNPDbFeatIterator::x_SetFilter().
|
protected |
Definition at line 254 of file snpread.cpp.
References m_Page, PageTable(), and row.
Referenced by CSNPDb_Impl(), CSNPDbSeqIterator::GetSNPCount(), CSNPDbPageIterator::Select(), and x_Update().
|
protected |
Definition at line 310 of file snpread.cpp.
|
protected |
Definition at line 304 of file snpread.cpp.
|
protected |
Definition at line 292 of file snpread.cpp.
|
protected |
Definition at line 298 of file snpread.cpp.
|
protected |
Definition at line 286 of file snpread.cpp.
Referenced by CSNPDb_Impl(), CSNPDbSeqIterator::GetSNPCount(), CSNPDbPageIterator::Reset(), CSNPDbGraphIterator::Reset(), CSNPDbFeatIterator::Reset(), and x_Update().
|
protected |
Definition at line 234 of file snpread.cpp.
References m_Seq, row, and SeqTable().
Referenced by CSNPDb_Impl(), and x_Update().
|
protected |
Definition at line 651 of file snpread.cpp.
References GetDbPath(), GetSeqInfoList(), GetTrackInfoList(), kPageSize, len, and NCBI_THROW_FMT.
Referenced by CSNPDbSeqIterator::GetGraphVDBRowId(), and CSNPDbFeatIterator::x_SetFilter().
Definition at line 639 of file snpread.cpp.
References GetDbPath(), GetSeqInfoList(), and NCBI_THROW_FMT.
Referenced by CSNPDbSeqIterator::GetPageVDBRowRange().
|
inlineprotected |
Definition at line 324 of file snpread.hpp.
References GetSeqInfoList().
Referenced by CSNPDbSeqIterator::GetVDBSeqIndex(), and x_GetSeqVDBRowId().
|
inlineprotected |
Definition at line 330 of file snpread.hpp.
References x_GetSeqVDBIndex().
Referenced by CSNPDbSeqIterator::GetVDBRowId(), and CSNPDbPageIterator::x_GetSeqVDBRowId().
|
inlineprotected |
Definition at line 327 of file snpread.hpp.
References GetTrackInfoList().
Referenced by CSNPDbTrackIterator::GetVDBTrackIndex(), and x_GetTrackVDBRowId().
|
inlineprotected |
Definition at line 333 of file snpread.hpp.
References x_GetTrackVDBIndex().
Referenced by CSNPDbTrackIterator::GetVDBRowId(), and CSNPDbPageIterator::x_GetTrackVDBRowId().
|
protected |
Definition at line 537 of file snpread.cpp.
References _ASSERT, map_checker< Container >::begin(), map_checker< Container >::end(), CSeq_id_Handle::GetHandle(), CSNPDb_Impl::SSeqInfo::SPageSet::GetRowIdEnd(), CSNPDb_Impl::SSeqInfo::SPageSet::GetSeqPosEnd(), info, kPageSize, map_checker< Container >::lower_bound(), m_Mutex, CSNPDb_Impl::SSeqInfo::SPageSet::m_PageCount, CSNPDb_Impl::SSeqInfo::SPageSet::m_RowId, m_Seq2PageMap, m_SeqList, CSNPDb_Impl::SSeqInfo::SPageSet::m_SeqPos, m_TrackList, Page(), Put(), row, and Seq().
Referenced by CSNPDbSeqIterator::CSNPDbSeqIterator(), FindSeq(), and CSNPDbSeqIterator::operator++().
|
friend |
Definition at line 264 of file snpread.hpp.
|
friend |
Definition at line 263 of file snpread.hpp.
|
friend |
Definition at line 262 of file snpread.hpp.
|
friend |
Definition at line 261 of file snpread.hpp.
|
friend |
Definition at line 260 of file snpread.hpp.
|
private |
Definition at line 345 of file snpread.hpp.
Referenced by CSNPDb_Impl().
|
private |
Definition at line 344 of file snpread.hpp.
Referenced by GetDbPath().
|
private |
Definition at line 357 of file snpread.hpp.
|
private |
Definition at line 350 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and ExtraTable().
|
private |
Definition at line 356 of file snpread.hpp.
|
private |
Definition at line 349 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and FeatTable().
|
private |
Definition at line 354 of file snpread.hpp.
|
private |
Definition at line 347 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and GraphTable().
|
private |
Definition at line 343 of file snpread.hpp.
Referenced by CSNPDb_Impl().
|
private |
Definition at line 366 of file snpread.hpp.
Referenced by x_Update().
|
private |
Definition at line 355 of file snpread.hpp.
|
private |
Definition at line 348 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and PageTable().
|
private |
Definition at line 352 of file snpread.hpp.
|
private |
Definition at line 362 of file snpread.hpp.
Referenced by x_Update().
|
private |
Definition at line 353 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and FindSeq().
|
private |
Definition at line 359 of file snpread.hpp.
Referenced by CSNPDb_Impl(), FindSeq(), GetSeqInfoList(), and x_Update().
|
private |
Definition at line 360 of file snpread.hpp.
Referenced by CSNPDb_Impl(), FindSeq(), and GetSeqInfoMapBySeq_id().
|
private |
Definition at line 346 of file snpread.hpp.
Referenced by CSNPDb_Impl(), and SeqTable().
|
private |
Definition at line 364 of file snpread.hpp.
Referenced by CSNPDb_Impl(), FindTrack(), GetTrackInfoList(), and x_Update().
|
private |
Definition at line 365 of file snpread.hpp.
Referenced by CSNPDb_Impl(), FindTrack(), and GetTrackInfoMapByName().