NCBI C++ ToolKit
|
Search Toolkit Book for CVDBGraphDb_Impl
#include <sra/readers/sra/graphread.hpp>
Classes | |
struct | SGraphTableCursor |
struct | SSeqInfo |
Public Member Functions | |
CVDBGraphDb_Impl (CVDBMgr &mgr, CTempString path, ELookupType lookup_type=eLookupDefault) | |
virtual | ~CVDBGraphDb_Impl (void) |
bool | HasMidZoomGraphs (void) |
bool | LookupIsInVDB () const |
bool | LookupIsInMemory () 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 |
Static Public Member Functions | |
static bool | LookupIsInMemory (ELookupType lookup_type) |
![]() | |
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) |
Protected Types | |
typedef list< SSeqInfo > | TSeqInfoList |
typedef map< CSeq_id_Handle, TSeqInfoList::iterator > | TSeqInfoMapBySeq_id |
typedef map< TVDBRowId, TSeqInfoList::iterator > | TSeqInfoMapByFirstRow |
Protected Member Functions | |
const string & | GetPath (void) const |
const TSeqInfoList & | GetSeqInfoList (void) const |
const TSeqInfoMapBySeq_id & | GetSeqInfoMapBySeq_id (void) const |
const CVDBTable & | GraphTable (void) |
CRef< SGraphTableCursor > | Graph (void) |
void | Put (CRef< SGraphTableCursor > &curs) |
SSeqInfo | GetSeqInfoAtRow (TVDBRowId row) |
SSeqInfo | GetSeqInfo (const CSeq_id_Handle &seq_id) |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Friends | |
class | CVDBGraphSeqIterator |
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... | |
![]() | |
enum | ELookupType { eLookupDefault , eLookupInMemory , eLookupInVDB } |
![]() | |
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 62 of file graphread.hpp.
|
protected |
Definition at line 131 of file graphread.hpp.
|
protected |
Definition at line 133 of file graphread.hpp.
|
protected |
Definition at line 132 of file graphread.hpp.
CVDBGraphDb_Impl::CVDBGraphDb_Impl | ( | CVDBMgr & | mgr, |
CTempString | path, | ||
ELookupType | lookup_type = eLookupDefault |
||
) |
Definition at line 103 of file graphread.cpp.
References _ASSERT, CVDBTableIndex::eMissing_Allow, CSraException::eNotFoundTable, ERR_POST, CVDBTableIndex::Find(), CSraException::GetErrCode(), CSeq_id_Handle::GetHandle(), CSraException::GetRC(), Graph(), GraphTable(), info, map_checker< Container >::insert(), len, LookupIsInMemory(), m_GraphTable, m_LookupIndex, m_SeqList, m_SeqMapByFirstRow, m_SeqMapBySeq_id, NCBI_THROW2_FMT, NON_CONST_ITERATE, Put(), compile_time_bits::range(), and Warning().
|
virtual |
Definition at line 203 of file graphread.cpp.
Definition at line 111 of file graphread.hpp.
References m_Path.
|
protected |
Definition at line 274 of file graphread.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), CVDBTableIndex::Find(), CTextseq_id_Base::GetAccession(), CSeq_id_Handle::GetSeqId(), CTextseq_id_Base::GetVersion(), Graph(), info, CTextseq_id_Base::IsSetAccession(), CTextseq_id_Base::IsSetName(), CTextseq_id_Base::IsSetRelease(), CTextseq_id_Base::IsSetVersion(), m_LookupIndex, m_SeqInfoMutex, m_SeqMapBySeq_id, NStr::NumericToString(), Put(), compile_time_bits::range(), and NStr::ToUpper().
Referenced by CVDBGraphSeqIterator::CVDBGraphSeqIterator().
|
protected |
Definition at line 229 of file graphread.cpp.
References _ASSERT, CVDBValue::eMissing_Allow, ctll::empty(), map_checker< Container >::end(), map_checker< Container >::find(), CVDBTableIndex::Find(), CSeq_id_Handle::GetHandle(), Graph(), info, m_LookupIndex, m_SeqInfoMutex, m_SeqMapByFirstRow, Put(), and compile_time_bits::range().
Referenced by CVDBGraphSeqIterator::CVDBGraphSeqIterator().
|
inlineprotected |
Definition at line 135 of file graphread.hpp.
References m_SeqList.
|
inlineprotected |
Definition at line 138 of file graphread.hpp.
References m_SeqMapBySeq_id.
|
protected |
Definition at line 208 of file graphread.cpp.
References GraphTable(), and m_Graph.
Referenced by CVDBGraphDb_Impl(), GetSeqInfo(), GetSeqInfoAtRow(), and HasMidZoomGraphs().
Definition at line 143 of file graphread.hpp.
References m_GraphTable.
Referenced by CVDBGraphDb_Impl(), and Graph().
bool CVDBGraphDb_Impl::HasMidZoomGraphs | ( | void | ) |
Definition at line 219 of file graphread.cpp.
|
inline |
Definition at line 75 of file graphread.hpp.
References m_LookupIndex.
Referenced by CVDBGraphDb_Impl().
|
static |
Definition at line 64 of file graphread.cpp.
References SVDBGraphDb_Base::eLookupDefault, SVDBGraphDb_Base::eLookupInMemory, and NCBI_PARAM_TYPE.
|
inline |
Definition at line 71 of file graphread.hpp.
References m_LookupIndex.
|
inlineprotected |
Definition at line 149 of file graphread.hpp.
References m_Graph.
Referenced by CVDBGraphDb_Impl(), CVDBGraphSeqIterator::GetAnnot(), GetSeqInfo(), GetSeqInfoAtRow(), HasMidZoomGraphs(), and CVDBGraphSeqIterator::SeqTableIsSmaller().
|
friend |
Definition at line 82 of file graphread.hpp.
|
private |
Definition at line 163 of file graphread.hpp.
|
private |
Definition at line 160 of file graphread.hpp.
Referenced by CVDBGraphDb_Impl(), and GraphTable().
|
private |
Definition at line 161 of file graphread.hpp.
Referenced by CVDBGraphDb_Impl(), GetSeqInfo(), GetSeqInfoAtRow(), LookupIsInMemory(), and LookupIsInVDB().
|
private |
Definition at line 157 of file graphread.hpp.
|
private |
Definition at line 158 of file graphread.hpp.
Referenced by GetPath().
|
private |
Definition at line 165 of file graphread.hpp.
Referenced by GetSeqInfo(), and GetSeqInfoAtRow().
|
private |
Definition at line 166 of file graphread.hpp.
Referenced by CVDBGraphDb_Impl(), and GetSeqInfoList().
|
private |
Definition at line 168 of file graphread.hpp.
Referenced by CVDBGraphDb_Impl(), and GetSeqInfoAtRow().
|
private |
Definition at line 167 of file graphread.hpp.
Referenced by CVDBGraphDb_Impl(), GetSeqInfo(), and GetSeqInfoMapBySeq_id().