NCBI C++ ToolKit
|
Search Toolkit Book for CSeqEntryIndex
#include <objmgr/util/indexer.hpp>
Public Types | |
enum | EPolicy { eAdaptive = 0 , eInternal = 1 , eExternal = 2 , eExhaustive = 3 , eFtp = 4 , eWeb = 5 , eGenomes = 6 } |
enum | EFlags { fDefault = 0 , fHideImpFeats = 1 , fHideSNPFeats = 2 , fHideCDDFeats = 4 , fHideSTSFeats = 8 , fHideExonFeats = 16 , fHideIntronFeats = 32 , fHideMiscFeats = 64 , fShowSNPFeats = 128 , fShowCDDFeats = 256 , fGeneRNACDSOnly = 512 , fHideGapFeats = 1024 } |
typedef int | TFlags |
![]() | |
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... | |
Public Member Functions | |
CSeqEntryIndex (CSeq_entry_Handle &topseh, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CBioseq_Handle &bsh, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CSeq_entry &topsep, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CBioseq_set &seqset, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CBioseq &bioseq, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CSeq_submit &submit, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CSeq_entry &topsep, CSubmit_block &sblock, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
CSeqEntryIndex (CSeq_entry &topsep, CSeq_descr &descr, EPolicy policy=eAdaptive, TFlags flags=fDefault) | |
template<typename Fnc > | |
size_t | IterateBioseqs (Fnc m) |
CRef< CBioseqIndex > | GetBioseqIndex (void) |
CRef< CBioseqIndex > | GetBioseqIndex (int n) |
CRef< CBioseqIndex > | GetBioseqIndex (const string &accn) |
CRef< CBioseqIndex > | GetBioseqIndex (CBioseq_Handle bsh) |
CRef< CBioseqIndex > | GetBioseqIndex (const CMappedFeat &mf) |
CRef< CBioseqIndex > | GetBioseqIndex (const CSeq_loc &loc) |
template<typename Fnc > | |
size_t | IterateSeqsets (Fnc m) |
const vector< CRef< CBioseqIndex > > & | GetBioseqIndices (void) |
const vector< CRef< CSeqsetIndex > > & | GetSeqsetIndices (void) |
bool | DistributedReferences (void) |
void | SetSnpFunc (FAddSnpFunc *snp) |
FAddSnpFunc * | GetSnpFunc (void) |
void | SetFeatDepth (int featDepth) |
int | GetFeatDepth (void) |
void | SetGapDepth (int gapDepth) |
int | GetGapDepth (void) |
bool | IsFetchFailure (void) |
bool | IsIndexFailure (void) |
CRef< CSeqMasterIndex > | GetMasterIndex (void) const |
![]() | |
CObjectEx (void) | |
virtual | ~CObjectEx (void) |
![]() | |
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 |
![]() | |
CWeakObject (void) | |
virtual | ~CWeakObject (void) |
CPtrToObjectProxy * | GetPtrProxy (void) const |
Get pointer to proxy object containing pointer to this object. More... | |
Private Member Functions | |
CSeqEntryIndex (const CSeqEntryIndex &)=delete | |
CSeqEntryIndex & | operator= (const CSeqEntryIndex &)=delete |
Private Attributes | |
CRef< CSeqMasterIndex > | m_Idx |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
![]() | |
void | CleanWeakRefs (void) const |
Method cleaning all CWeakRefs referencing at this moment to the object After calling to this method all existing CWeakRefs referencing to the object will return NULL, so it effectively will be equal to deleting the object. More... | |
Definition at line 87 of file indexer.hpp.
typedef int CSeqEntryIndex::TFlags |
Definition at line 116 of file indexer.hpp.
Enumerator | |
---|---|
fDefault | |
fHideImpFeats | |
fHideSNPFeats | |
fHideCDDFeats | |
fHideSTSFeats | |
fHideExonFeats | |
fHideIntronFeats | |
fHideMiscFeats | |
fShowSNPFeats | |
fShowCDDFeats | |
fGeneRNACDSOnly | |
fHideGapFeats |
Definition at line 102 of file indexer.hpp.
Enumerator | |
---|---|
eAdaptive | |
eInternal | |
eExternal | |
eExhaustive | |
eFtp | |
eWeb | |
eGenomes |
Definition at line 91 of file indexer.hpp.
CSeqEntryIndex::CSeqEntryIndex | ( | CSeq_entry_Handle & | topseh, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 57 of file indexer.cpp.
References flags.
CSeqEntryIndex::CSeqEntryIndex | ( | CBioseq_Handle & | bsh, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 64 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CSeq_entry & | topsep, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 71 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CBioseq_set & | seqset, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 78 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CBioseq & | bioseq, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 85 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CSeq_submit & | submit, |
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 92 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CSeq_entry & | topsep, |
CSubmit_block & | sblock, | ||
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 99 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
CSeqEntryIndex::CSeqEntryIndex | ( | CSeq_entry & | topsep, |
CSeq_descr & | descr, | ||
EPolicy | policy = eAdaptive , |
||
TFlags | flags = fDefault |
||
) |
Definition at line 106 of file indexer.cpp.
References flags, m_Idx, CRef< C, Locker >::Reset(), and CSeqMasterIndex::x_Initialize().
|
privatedelete |
bool CSeqEntryIndex::DistributedReferences | ( | void | ) |
Definition at line 167 of file indexer.cpp.
References CSeqMasterIndex::DistributedReferences(), and m_Idx.
Referenced by CFlatGatherer::x_DoMultipleSections(), and CFlatGatherer::x_GatherBioseq().
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | CBioseq_Handle | bsh | ) |
Definition at line 135 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), and m_Idx.
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | const CMappedFeat & | mf | ) |
Definition at line 142 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), and m_Idx.
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | const CSeq_loc & | loc | ) |
Definition at line 149 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), and m_Idx.
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | const string & | accn | ) |
Definition at line 128 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), and m_Idx.
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | int | n | ) |
Definition at line 121 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), m_Idx, and n.
CRef< CBioseqIndex > CSeqEntryIndex::GetBioseqIndex | ( | void | ) |
Definition at line 114 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndex(), and m_Idx.
Referenced by CBioseqContext::GetTaxname(), CBioseqContext::HasMultiIntervalGenes(), CBioseqContext::HasOperon(), CBioseqContext::IsCrossKingdom(), CFeatureItem::x_AddQualsCdregionIdx(), CFeatureItem::x_AddQualsIdx(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CFlatGatherer::x_GatherFeaturesIdx(), CFlatGatherer::x_GatherFeaturesOnRangeIdx(), CFlatGatherer::x_GatherFeaturesOnWholeLocationIdx(), CFlatGatherer::x_GatherReferencesIdx(), CFeatureItem::x_GetAssociatedProtInfoIdx(), x_GetDivisionProcIdx(), CDeflineGenerator::x_SetBioSrcIdx(), CDeflineGenerator::x_SetFlagsIdx(), CDeflineGenerator::x_SetPrefix(), CDeflineGenerator::x_SetTitleFromProteinIdx(), and CValidError_bioseq::x_ValidateCDSVDJCmatch().
const vector< CRef< CBioseqIndex > > & CSeqEntryIndex::GetBioseqIndices | ( | void | ) |
Definition at line 155 of file indexer.cpp.
References CSeqMasterIndex::GetBioseqIndices(), and m_Idx.
int CSeqEntryIndex::GetFeatDepth | ( | void | ) |
Definition at line 191 of file indexer.cpp.
References CSeqMasterIndex::GetFeatDepth(), and m_Idx.
int CSeqEntryIndex::GetGapDepth | ( | void | ) |
Definition at line 203 of file indexer.cpp.
References CSeqMasterIndex::GetGapDepth(), and m_Idx.
|
inline |
Definition at line 189 of file indexer.hpp.
References m_Idx.
Referenced by CFlatFileGenerator::Generate(), and CFeatureItem::x_AddQualsIdx().
const vector< CRef< CSeqsetIndex > > & CSeqEntryIndex::GetSeqsetIndices | ( | void | ) |
Definition at line 161 of file indexer.cpp.
References CSeqMasterIndex::GetSeqsetIndices(), and m_Idx.
FAddSnpFunc * CSeqEntryIndex::GetSnpFunc | ( | void | ) |
Definition at line 179 of file indexer.cpp.
References CSeqMasterIndex::GetSnpFunc(), and m_Idx.
bool CSeqEntryIndex::IsFetchFailure | ( | void | ) |
Definition at line 209 of file indexer.cpp.
References CSeqMasterIndex::IsFetchFailure(), and m_Idx.
bool CSeqEntryIndex::IsIndexFailure | ( | void | ) |
Definition at line 215 of file indexer.cpp.
References CSeqMasterIndex::IsIndexFailure(), and m_Idx.
Referenced by CFlatFileGenerator::Generate().
|
inline |
Definition at line 990 of file indexer.hpp.
References CSeqMasterIndex::IterateBioseqs(), and m_Idx.
Referenced by CExploreProcess::SeqEntryProcess().
|
inline |
Definition at line 1012 of file indexer.hpp.
References CSeqMasterIndex::IterateSeqsets(), and m_Idx.
|
privatedelete |
void CSeqEntryIndex::SetFeatDepth | ( | int | featDepth | ) |
Definition at line 185 of file indexer.cpp.
References m_Idx, and CSeqMasterIndex::SetFeatDepth().
Referenced by CFlatFileGenerator::Generate(), and CExploreProcess::SeqEntryProcess().
void CSeqEntryIndex::SetGapDepth | ( | int | gapDepth | ) |
Definition at line 197 of file indexer.cpp.
References m_Idx, and CSeqMasterIndex::SetGapDepth().
Referenced by CFlatFileGenerator::Generate().
void CSeqEntryIndex::SetSnpFunc | ( | FAddSnpFunc * | snp | ) |
Definition at line 173 of file indexer.cpp.
References m_Idx, and CSeqMasterIndex::SetSnpFunc().
|
private |
Definition at line 193 of file indexer.hpp.
Referenced by CSeqEntryIndex(), DistributedReferences(), GetBioseqIndex(), GetBioseqIndices(), GetFeatDepth(), GetGapDepth(), GetMasterIndex(), GetSeqsetIndices(), GetSnpFunc(), IsFetchFailure(), IsIndexFailure(), IterateBioseqs(), IterateSeqsets(), SetFeatDepth(), SetGapDepth(), and SetSnpFunc().