NCBI C++ ToolKit
|
Search Toolkit Book for CScope_Impl
#include <objmgr/impl/scope_impl.hpp>
Private Types | |
typedef vector< CBioseq_Handle > | TBioseq_HandleSet |
typedef int | TBioseqLevelFlag |
typedef CBioseq_ScopeInfo::TTSE_MatchSet | TTSE_MatchSet |
typedef CDataSource::TTSE_LockMatchSet | TTSE_LockMatchSet_DS |
typedef CRWLock | TConfLock |
typedef TConfLock::TReadLockGuard | TConfReadLockGuard |
typedef TConfLock::TWriteLockGuard | TConfWriteLockGuard |
typedef CFastMutex | TSeq_idMapLock |
Friends | |
class | CScope |
class | CHeapScope |
class | CObjectManager |
class | CSeqVector |
class | CDataSource |
class | CBioseq_CI |
class | CAnnot_Collector |
class | CBioseq_Handle |
class | CBioseq_set_Handle |
class | CSeq_entry_Handle |
class | CBioseq_EditHandle |
class | CBioseq_set_EditHandle |
class | CSeq_entry_EditHandle |
class | CSeq_annot_EditHandle |
class | CTSE_CI |
class | CSeq_annot_CI |
class | CSeqMap_CI |
class | CPrefetchTokenOld_Impl |
class | CDataSource_ScopeInfo |
class | CTSE_ScopeInfo |
class | CScopeTransaction_Impl |
class | CBioseq_ScopeInfo |
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... | |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Definition at line 130 of file scope_impl.hpp.
|
private |
Definition at line 558 of file scope_impl.hpp.
Definition at line 524 of file scope_impl.hpp.
typedef pair<CConstRef<CBioseq_set_Info>, TTSE_Lock> CScope_Impl::TBioseq_set_Lock |
Definition at line 523 of file scope_impl.hpp.
typedef vector<CBioseq_Handle> CScope_Impl::TBioseqHandles |
Bulk retrieval methods.
Definition at line 347 of file scope_impl.hpp.
|
private |
Definition at line 559 of file scope_impl.hpp.
typedef vector<TIds> CScope_Impl::TBulkIds |
Definition at line 144 of file scope_impl.hpp.
typedef vector<CTSE_Handle> CScope_Impl::TCDD_Entries |
Definition at line 350 of file scope_impl.hpp.
|
private |
Definition at line 644 of file scope_impl.hpp.
|
private |
Definition at line 645 of file scope_impl.hpp.
|
private |
Definition at line 646 of file scope_impl.hpp.
typedef map<CRef<CDataSource>, CRef<CDataSource_ScopeInfo> > CScope_Impl::TDSMap |
Definition at line 142 of file scope_impl.hpp.
Definition at line 141 of file scope_impl.hpp.
typedef int CScope_Impl::TExist |
Definition at line 152 of file scope_impl.hpp.
typedef int CScope_Impl::TGetFlags |
Definition at line 334 of file scope_impl.hpp.
typedef vector<TGi> CScope_Impl::TGIs |
Definition at line 361 of file scope_impl.hpp.
typedef vector<CSeq_id_Handle> CScope_Impl::TIds |
Definition at line 143 of file scope_impl.hpp.
typedef vector<string> CScope_Impl::TLabels |
Definition at line 365 of file scope_impl.hpp.
typedef int CScope_Impl::TMissing |
Definition at line 151 of file scope_impl.hpp.
typedef int CScope_Impl::TPriority |
Definition at line 140 of file scope_impl.hpp.
typedef pair<CConstRef<CSeq_annot_Info>, TTSE_Lock> CScope_Impl::TSeq_annot_Lock |
Definition at line 522 of file scope_impl.hpp.
typedef pair<CConstRef<CSeq_entry_Info>, TTSE_Lock> CScope_Impl::TSeq_entry_Lock |
Definition at line 521 of file scope_impl.hpp.
Definition at line 136 of file scope_impl.hpp.
|
private |
Definition at line 647 of file scope_impl.hpp.
Definition at line 137 of file scope_impl.hpp.
typedef set<CSeq_id_Handle> CScope_Impl::TSeq_idSet |
Definition at line 138 of file scope_impl.hpp.
typedef vector<int> CScope_Impl::TSequenceHashes |
Definition at line 403 of file scope_impl.hpp.
typedef vector<TSeqPos> CScope_Impl::TSequenceLengths |
Definition at line 391 of file scope_impl.hpp.
typedef vector<int> CScope_Impl::TSequenceStates |
Definition at line 399 of file scope_impl.hpp.
typedef vector<CSeq_inst::TMol> CScope_Impl::TSequenceTypes |
Definition at line 395 of file scope_impl.hpp.
typedef vector<TTaxId> CScope_Impl::TTaxIds |
Definition at line 369 of file scope_impl.hpp.
typedef vector<CSeq_entry_Handle> CScope_Impl::TTSE_Handles |
Definition at line 145 of file scope_impl.hpp.
Definition at line 133 of file scope_impl.hpp.
typedef vector< pair<CTSE_Handle, CSeq_id_Handle> > CScope_Impl::TTSE_LockMatchSet |
Definition at line 139 of file scope_impl.hpp.
|
private |
Definition at line 586 of file scope_impl.hpp.
|
private |
Definition at line 585 of file scope_impl.hpp.
Enumerator | |
---|---|
fUserFlagMask | |
fNoLockFlag |
Definition at line 284 of file scope_impl.hpp.
|
private |
Definition at line 102 of file scope_impl.cpp.
|
privatevirtual |
Definition at line 115 of file scope_impl.cpp.
References m_ConfLock, and x_DetachFromOM().
|
private |
CBioseq_Handle CScope_Impl::AddBioseq | ( | CBioseq & | bioseq, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 274 of file scope_impl.cpp.
References CDataSource::AddStaticTSE(), CBioseq_Handle, CScope::eExist_Throw, CScope::eMissing_Null, CTSE_Handle::eTopLevel_Bioseq, CDataSource_ScopeInfo::GetDataSource(), GetEditDS(), CSeq_entry_Info::GetSeq(), CDataSource_ScopeInfo::GetTSE_Lock(), m_ConfLock, NCBI_THROW, CTSE_Info::SetTopLevelObjectType(), x_ClearCacheOnNewData(), x_GetBioseq_Lock(), x_GetBioseqHandle(), and x_MakeDummyTSE().
Referenced by CScope::AddBioseq().
Definition at line 194 of file scope_impl.cpp.
References CObjectManager::AcquireDataLoader(), CDataSource::GetDefaultPriority(), CPriorityTree::Insert(), CScope::kPriority_Default, m_ConfLock, m_ObjMgr, m_setDataSrc, x_ClearCacheOnNewDS(), and x_GetDSInfo().
Referenced by CScope::AddDataLoader().
void CScope_Impl::AddDefaults | ( | TPriority | priority | ) |
Definition at line 179 of file scope_impl.cpp.
References CObjectManager::AcquireDefaultDataSources(), CPriorityTree::Insert(), CScope::kPriority_Default, m_ConfLock, m_ObjMgr, m_setDataSrc, NON_CONST_ITERATE, x_ClearCacheOnNewDS(), and x_GetDSInfo().
Referenced by CScope::AddDefaults().
CRef< CDataSource_ScopeInfo > CScope_Impl::AddDS | ( | CRef< CDataSource > | ds, |
TPriority | priority | ||
) |
Definition at line 1312 of file scope_impl.cpp.
References CDataSource::GetDefaultPriority(), CDataSource::GetSharedTSE(), CPriorityTree::Insert(), CScope::kPriority_Default, m_ConfLock, m_setDataSrc, x_ClearCacheOnNewData(), x_ClearCacheOnNewDS(), and x_GetDSInfo().
Referenced by AddSharedBioseq(), AddSharedSeq_annot(), and AddSharedSeq_entry().
CRef< CDataSource_ScopeInfo > CScope_Impl::AddDSBefore | ( | CRef< CDataSource > | ds, |
CRef< CDataSource_ScopeInfo > | ds2, | ||
const CTSE_ScopeInfo * | replaced_tse = 0 |
||
) |
Definition at line 1379 of file scope_impl.cpp.
References m_ConfLock, m_setDataSrc, NCBI_THROW, x_ClearCacheOnEdit(), and x_GetDSInfo().
Referenced by GetEditDataSource().
void CScope_Impl::AddScope | ( | CScope_Impl & | scope, |
TPriority | priority | ||
) |
Definition at line 206 of file scope_impl.cpp.
References CPriorityTree::Insert(), CScope::kPriority_Default, m_ConfLock, m_setDataSrc, CGuard< Resource, Lock, Unlock, ReportExceptions >::Release(), and x_ClearCacheOnNewDS().
Referenced by CScope::AddScope().
CSeq_annot_Handle CScope_Impl::AddSeq_annot | ( | CSeq_annot & | annot, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 335 of file scope_impl.cpp.
References CDataSource::AddStaticTSE(), CScope::eExist_Throw, CScope::eMissing_Null, CTSE_Handle::eTopLevel_Seq_annot, CBioseq_Base_Info::GetAnnot(), CDataSource_ScopeInfo::GetDataSource(), GetEditDS(), CSeq_entry_Info::GetSet(), CDataSource_ScopeInfo::GetTSE_Lock(), m_ConfLock, NCBI_THROW, CTSE_Info::SetTopLevelObjectType(), x_ClearCacheOnNewAnnot(), x_GetSeq_annot_Lock(), and x_MakeDummyTSE().
Referenced by CScope::AddSeq_annot().
CSeq_entry_Handle CScope_Impl::AddSeq_entry | ( | CSeq_entry & | entry, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 219 of file scope_impl.cpp.
References CDataSource::AddStaticTSE(), CSeq_entry_Handle, CScope::eExist_Throw, CScope::eMissing_Null, CDataSource_ScopeInfo::GetDataSource(), GetEditDS(), CDataSource_ScopeInfo::GetTSE_Lock(), m_ConfLock, NCBI_THROW, x_ClearCacheOnNewData(), and x_GetSeq_entry_Lock().
Referenced by CScope::AddTopLevelSeqEntry().
CSeq_entry_Handle CScope_Impl::AddSeq_submit | ( | CSeq_submit & | submit, |
TPriority | pri | ||
) |
Definition at line 398 of file scope_impl.cpp.
References CDataSource::AddStaticTSE(), CSeq_entry_Handle, CTSE_Handle::eTopLevel_Seq_submit, CDataSource_ScopeInfo::GetDataSource(), GetEditDS(), CDataSource_ScopeInfo::GetTSE_Lock(), m_ConfLock, CTSE_Info::SetTopLevelObject(), x_ClearCacheOnNewAnnot(), and x_MakeDummyTSE().
Referenced by CScope::AddSeq_submit().
CBioseq_Handle CScope_Impl::AddSharedBioseq | ( | const CBioseq & | bioseq, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 301 of file scope_impl.cpp.
References _ASSERT, CObjectManager::AcquireSharedBioseq(), AddDS(), CDataSource::AddStaticTSE(), CBioseq_Handle, CScope::eExist_Throw, CScope::eMissing_Null, CTSE_Handle::eTopLevel_Bioseq, CBioseq_Info::GetBioseqCore(), GetConstDS(), CDataSource_ScopeInfo::GetDataSource(), CSeq_entry_Info::GetSeq(), CDataSource::GetSharedTSE(), CDataSource_ScopeInfo::GetTSE_Lock(), CSeq_entry_Info::IsSeq(), m_ConfLock, m_ObjMgr, NCBI_THROW, CTSE_Info::SetTopLevelObjectType(), x_GetBioseq_Lock(), x_GetBioseqHandle(), and x_MakeDummyTSE().
Referenced by CScope::AddBioseq().
CSeq_annot_Handle CScope_Impl::AddSharedSeq_annot | ( | const CSeq_annot & | annot, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 362 of file scope_impl.cpp.
References _ASSERT, CObjectManager::AcquireSharedSeq_annot(), AddDS(), CDataSource::AddStaticTSE(), CScope::eExist_Throw, CScope::eMissing_Null, CTSE_Handle::eTopLevel_Seq_annot, CBioseq_Base_Info::GetAnnot(), GetConstDS(), CDataSource_ScopeInfo::GetDataSource(), CSeq_entry_Info::GetSet(), CDataSource::GetSharedTSE(), CDataSource_ScopeInfo::GetTSE_Lock(), CSeq_entry_Info::IsSet(), CBioseq_Base_Info::IsSetAnnot(), m_ConfLock, m_ObjMgr, NCBI_THROW, CTSE_Info::SetTopLevelObjectType(), x_GetSeq_annot_Lock(), and x_MakeDummyTSE().
Referenced by CScope::AddSeq_annot().
CSeq_entry_Handle CScope_Impl::AddSharedSeq_entry | ( | const CSeq_entry & | entry, |
TPriority | pri, | ||
TExist | action | ||
) |
Definition at line 243 of file scope_impl.cpp.
References _ASSERT, CObjectManager::AcquireSharedSeq_entry(), AddDS(), CDataSource::AddStaticTSE(), CSeq_entry_Handle, CScope::eExist_Throw, CScope::eMissing_Null, GetConstDS(), CDataSource_ScopeInfo::GetDataSource(), CDataSource::GetSharedTSE(), CDataSource_ScopeInfo::GetTSE_Lock(), CTSE_Info::GetTSECore(), m_ConfLock, m_ObjMgr, NCBI_THROW, x_ClearCacheOnNewData(), and x_GetSeq_entry_Lock().
Referenced by CScope::AddTopLevelSeqEntry().
CSeq_annot_EditHandle CScope_Impl::AttachAnnot | ( | const CSeq_entry_EditHandle & | entry, |
const CSeq_annot_EditHandle & | annot | ||
) |
Definition at line 925 of file scope_impl.cpp.
References _ASSERT, AttachAnnot(), CHECK_HANDLE, CHECK_REMOVED_HANDLE, CSeq_annot_Handle::IsRemoved(), and x_AttachAnnot().
CSeq_annot_EditHandle CScope_Impl::AttachAnnot | ( | const CSeq_entry_EditHandle & | entry, |
CRef< CSeq_annot_Info > | annot | ||
) |
Definition at line 889 of file scope_impl.cpp.
References _ASSERT, AttachAnnot(), CHECK_HANDLE, and x_AttachAnnot().
CSeq_annot_EditHandle CScope_Impl::AttachAnnot | ( | const CSeq_entry_EditHandle & | entry, |
CSeq_annot & | annot | ||
) |
Definition at line 878 of file scope_impl.cpp.
References Ref().
Referenced by AttachAnnot(), CAttachAnnot_EditCommand< Annot >::Do(), and RemoveAction< CSeq_annot_EditHandle >::Undo().
CSeq_entry_EditHandle CScope_Impl::AttachEntry | ( | const CBioseq_set_EditHandle & | seqset, |
const CSeq_entry_EditHandle & | entry, | ||
int | index = -1 |
||
) |
Definition at line 744 of file scope_impl.cpp.
References _ASSERT, AttachEntry(), CHECK_HANDLE, CHECK_REMOVED_HANDLE, CSeq_entry_Handle::IsRemoved(), and x_AttachEntry().
CSeq_entry_EditHandle CScope_Impl::AttachEntry | ( | const CBioseq_set_EditHandle & | seqset, |
CRef< CSeq_entry_Info > | entry, | ||
int | index = -1 |
||
) |
Definition at line 704 of file scope_impl.cpp.
References _ASSERT, AttachEntry(), CHECK_HANDLE, and x_AttachEntry().
CSeq_entry_EditHandle CScope_Impl::AttachEntry | ( | const CBioseq_set_EditHandle & | seqset, |
CSeq_entry & | entry, | ||
int | index = -1 |
||
) |
Definition at line 696 of file scope_impl.cpp.
References Ref().
Referenced by AttachEntry(), CAttachEntry_EditCommand< Entry >::Do(), and CSeq_entry_Remove_EditCommand::Undo().
IScopeTransaction_Impl * CScope_Impl::CreateTransaction | ( | ) |
Definition at line 3239 of file scope_impl.cpp.
References CScopeTransaction_Impl, and m_Transaction.
Referenced by GetTransaction().
bool CScope_Impl::Exists | ( | const CSeq_id_Handle & | id | ) |
Definition at line 2692 of file scope_impl.cpp.
References CSeq_inst_Base::eMol_not_set, and GetSequenceType().
Referenced by CScope::Exists().
CSeq_id_Handle CScope_Impl::GetAccVer | ( | const CSeq_id_Handle & | idh, |
TGetFlags | flags | ||
) |
Definition at line 2736 of file scope_impl.cpp.
References data, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, info, CSeq_id_Handle::IsAccVer(), CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, x_FindBioseq_Info(), and CScope::x_GetAccVer().
Referenced by CScope::GetAccVer().
Definition at line 3468 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), x_FindBioseq_Info(), and CScope::x_GetAccVer().
void CScope_Impl::GetAllTSEs | ( | TTSE_Handles & | tses, |
int | kind | ||
) |
Definition at line 3202 of file scope_impl.cpp.
References CScope::eManualTSEs, ITERATE, m_ConfLock, m_setDataSrc, and x_GetTSE_Lock().
Referenced by CScope::GetAllTSEs().
CBioseq_set_Handle CScope_Impl::GetBioseq_setHandle | ( | const CBioseq_set & | seqset, |
TMissing | action | ||
) |
Definition at line 1215 of file scope_impl.cpp.
References CBioseq_set_Handle, m_ConfLock, and x_GetBioseq_set_Lock().
Referenced by CScope::GetBioseq_setEditHandle(), and CScope::GetBioseq_setHandle().
CBioseq_Handle CScope_Impl::GetBioseqHandle | ( | const CBioseq & | bioseq, |
TMissing | action | ||
) |
Definition at line 1254 of file scope_impl.cpp.
References m_ConfLock, CBioseq_Handle::m_Info, x_GetBioseq_Lock(), and x_UpdateHandleSeq_id().
|
private |
Definition at line 2081 of file scope_impl.cpp.
References m_ConfLock, and x_GetBioseqHandle().
CBioseq_Handle CScope_Impl::GetBioseqHandle | ( | const CSeq_id_Handle & | id, |
int | get_flag | ||
) |
Definition at line 1858 of file scope_impl.cpp.
References fNoLockFlag, fUserFlagMask, info, m_ConfLock, CBioseq_Handle::m_Handle_Seq_id, CBioseq_Handle::m_Info, match(), CScopeInfo_Ref< Info >::Reset(), and x_GetBioseq_Info().
Referenced by CSeq_loc_Conversion::Convert(), CSeq_loc_Conversion_Set::Convert(), CSeq_loc_Conversion::ConvertSimpleLoc(), CScope::GetBioseqEditHandle(), CScope::GetBioseqHandle(), GetBioseqHandle(), CSeq_entry_Handle::GetSeq(), GetSequenceHash(), GetSequenceHashes(), IsSameBioseq(), CSeq_entry_EditHandle::SetSeq(), CAnnot_Collector::x_GetBioseqHandle(), and x_GetBioseqHandlesSorted().
CBioseq_Handle CScope_Impl::GetBioseqHandle | ( | const CSeq_loc & | loc, |
int | get_flag | ||
) |
Definition at line 2012 of file scope_impl.cpp.
References set< Key, Compare >::begin(), set< Key, Compare >::empty(), CMasterSeqSegments::FindSeg(), GetBioseqHandle(), CTSE_Info::GetMasterSeqSegments(), CTSE_Info::GetSegSetMaster(), CBioseq_Handle::GetTSE_Handle(), set< Key, Compare >::insert(), ITERATE, NCBI_THROW, CConstRef< C, Locker >::Reset(), set< Key, Compare >::size(), and CTSE_Handle::x_GetTSE_Info().
CBioseq_Handle CScope_Impl::GetBioseqHandleFromTSE | ( | const CSeq_id_Handle & | id, |
const CTSE_Handle & | tse | ||
) |
Definition at line 2001 of file scope_impl.cpp.
References x_GetBioseqHandleFromTSE().
Referenced by CAnnot_Collector::CanResolveId(), CTSE_Handle::GetBioseqHandle(), and CScope::GetBioseqHandleFromTSE().
CScope_Impl::TBioseqHandles CScope_Impl::GetBioseqHandles | ( | const TIds & | ids | ) |
Definition at line 3337 of file scope_impl.cpp.
References cnt, count, CSortedSeq_ids::GetSortedIds(), CSortedSeq_ids::RestoreOrder(), and x_GetBioseqHandlesSorted().
Referenced by CScope::GetBioseqHandles(), and GetCDDAnnots().
Definition at line 3410 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingSequence, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), and x_FindBioseq_Info().
CScope_Impl::TCDD_Entries CScope_Impl::GetCDDAnnots | ( | const TBioseqHandles & | bhs | ) |
Definition at line 3370 of file scope_impl.cpp.
References count, CSortedBioseqs::GetSortedBioseqs(), i, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, CSortedBioseqs::RestoreOrder(), sx_CountFalse(), x_GetDSInfo(), and x_GetTSE_Lock().
CScope_Impl::TCDD_Entries CScope_Impl::GetCDDAnnots | ( | const TIds & | idhs | ) |
Definition at line 3363 of file scope_impl.cpp.
References GetBioseqHandles().
Referenced by CScope::GetCDDAnnots().
CRef< CDataSource_ScopeInfo > CScope_Impl::GetConstDS | ( | TPriority | priority | ) |
Definition at line 1354 of file scope_impl.cpp.
References _ASSERT, CDataSource::CanBeEdited(), CDataSource_ScopeInfo::CanBeEdited(), CPriorityTree::GetTree(), CDataSource_ScopeInfo::IsConst(), multimap_checker< Container >::lower_bound(), m_ConfLock, m_setDataSrc, Ref(), CDataSource_ScopeInfo::SetConst(), and x_GetDSInfo().
Referenced by AddSharedBioseq(), AddSharedSeq_annot(), and AddSharedSeq_entry().
|
private |
Definition at line 1898 of file scope_impl.cpp.
References _ASSERT, AddDSBefore(), CDataSource::CanBeEdited(), CDataSource_ScopeInfo::CanBeEdited(), CDataSource_ScopeInfo::GetDataLoader(), m_ConfLock, CDataSource_ScopeInfo::m_EditDS, Ref(), and CDataSource_ScopeInfo::SetCanRemoveOnResetHistory().
Referenced by GetEditHandle().
CRef< CDataSource_ScopeInfo > CScope_Impl::GetEditDS | ( | TPriority | priority | ) |
Definition at line 1332 of file scope_impl.cpp.
References _ASSERT, CDataSource::CanBeEdited(), CDataSource_ScopeInfo::CanBeEdited(), CPriorityTree::GetTree(), multimap_checker< Container >::lower_bound(), m_ConfLock, m_setDataSrc, Ref(), and x_GetDSInfo().
Referenced by AddBioseq(), AddSeq_annot(), AddSeq_entry(), and AddSeq_submit().
CBioseq_EditHandle CScope_Impl::GetEditHandle | ( | const CBioseq_Handle & | seq | ) |
Definition at line 1964 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CTSE_Handle::CanBeEdited(), CBioseq_EditHandle, CHECK_HANDLE, GetEditHandle(), and CBioseq_Handle::GetTSE_Handle().
CBioseq_set_EditHandle CScope_Impl::GetEditHandle | ( | const CBioseq_set_Handle & | seqset | ) |
Definition at line 1991 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CTSE_Handle::CanBeEdited(), CBioseq_set_EditHandle, CHECK_HANDLE, GetEditHandle(), and CBioseq_set_Handle::GetTSE_Handle().
CSeq_annot_EditHandle CScope_Impl::GetEditHandle | ( | const CSeq_annot_Handle & | annot | ) |
Definition at line 1982 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CTSE_Handle::CanBeEdited(), CHECK_HANDLE, CSeq_annot_EditHandle, GetEditHandle(), and CSeq_annot_Handle::GetTSE_Handle().
CSeq_entry_EditHandle CScope_Impl::GetEditHandle | ( | const CSeq_entry_Handle & | entry | ) |
Definition at line 1973 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CTSE_Handle::CanBeEdited(), CHECK_HANDLE, CSeq_entry_EditHandle, GetEditHandle(), and CSeq_entry_Handle::GetTSE_Handle().
CTSE_Handle CScope_Impl::GetEditHandle | ( | const CTSE_Handle & | src_tse | ) |
Definition at line 1918 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CDataSource::AddStaticTSE(), CDataSource_ScopeInfo::CanBeEdited(), CTSE_Handle::CanBeEdited(), CDataSource_ScopeInfo::DetachScope(), CDataSource::DropStaticTSE(), CPriorityTree::Erase(), map_checker< Container >::erase(), CDataSource::GetDataLoader(), CDataSource_ScopeInfo::GetDataSource(), CTSE_ScopeInfo::GetDSInfo(), GetEditDataSource(), CDataSource::GetSharedObject(), CDataSource_ScopeInfo::IsConst(), CTSE_Info::m_BaseTSE, m_ConfLock, m_DSMap, m_setDataSrc, CTSE_ScopeInfo::m_TSE_Lock, CTSE_ScopeInfo::ReplaceTSE(), CRef< C, Locker >::Reset(), CTSE_ScopeInfo::SetEditTSE(), and CTSE_Handle::x_GetScopeInfo().
Referenced by CScope::GetBioseq_setEditHandle(), CScope::GetBioseqEditHandle(), GetEditHandle(), CScope::GetEditHandle(), CBioseq_Handle::GetEditHandle(), CSeq_annot_Handle::GetEditHandle(), CScope::GetSeq_annotEditHandle(), and CScope::GetSeq_entryEditHandle().
|
private |
Definition at line 3219 of file scope_impl.cpp.
References m_ConfLock, and m_setDataSrc.
Referenced by CPrefetchTokenOld_Impl::x_InitPrefetch().
TGi CScope_Impl::GetGi | ( | const CSeq_id_Handle & | idh, |
TGetFlags | flags | ||
) |
Definition at line 2791 of file scope_impl.cpp.
References data, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, x_FindBioseq_Info(), CScope::x_GetGi(), and ZERO_GI.
Referenced by CScope::GetGi().
Definition at line 3539 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), x_FindBioseq_Info(), CScope::x_GetGi(), and ZERO_GI.
CScope_Impl::TIds CScope_Impl::GetIds | ( | const CSeq_id_Handle & | idh, |
TGetFlags | flags = 0 |
||
) |
Definition at line 2697 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingSequence, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, and x_FindBioseq_Info().
Referenced by CScope::GetIds(), and CAnnot_Collector::x_SearchLoc().
|
inline |
Definition at line 550 of file scope_impl.hpp.
References m_KeepExternalAnnotsForEdit.
Referenced by CScope::GetKeepExternalAnnotsForEdit(), x_GetTSESetWithBioseqAnnots(), and x_GetTSESetWithOrphanAnnots().
string CScope_Impl::GetLabel | ( | const CSeq_id_Handle & | idh, |
TGetFlags | flags | ||
) |
Definition at line 2839 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingSequence, GetDirectLabel(), GetLabel(), info, m_ConfLock, m_setDataSrc, match(), NCBI_THROW, string, and x_FindBioseq_Info().
Referenced by CScope::GetLabel().
Definition at line 3610 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, ctll::empty(), CScope::fForceLoad, flags, CScope::fThrowOnMissing, GetDirectLabel(), GetLabel(), CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), and x_FindBioseq_Info().
|
inline |
Definition at line 687 of file scope_impl.hpp.
References m_ObjMgr.
Referenced by CScope::GetObjectManager(), and CScopeSource::GetScope().
CScope & CScope_Impl::GetScope | ( | void | ) |
Definition at line 122 of file scope_impl.cpp.
References _ASSERT, and m_HeapScope.
CSeq_annot_Handle CScope_Impl::GetSeq_annotHandle | ( | const CSeq_annot & | annot, |
TMissing | action | ||
) |
Definition at line 1241 of file scope_impl.cpp.
References m_ConfLock, and x_GetSeq_annot_Lock().
Referenced by CScope::GetSeq_annotEditHandle(), and CScope::GetSeq_annotHandle().
CSeq_entry_Handle CScope_Impl::GetSeq_entryHandle | ( | CDataLoader * | loader, |
const CBlobIdKey & | blob_id, | ||
TMissing | action | ||
) |
Definition at line 1191 of file scope_impl.cpp.
References CSeq_entry_Handle, CScope::eMissing_Null, CDataLoader::GetDataSource(), CDataSource_ScopeInfo::GetSeq_entry_Lock(), m_ConfLock, NCBI_THROW, and x_GetDSInfo().
Referenced by CScope::GetSeq_entryEditHandle(), and CScope::GetSeq_entryHandle().
CSeq_entry_Handle CScope_Impl::GetSeq_entryHandle | ( | const CSeq_entry & | entry, |
TMissing | action | ||
) |
Definition at line 1228 of file scope_impl.cpp.
References CSeq_entry_Handle, m_ConfLock, and x_GetSeq_entry_Lock().
CSeq_entry_Handle CScope_Impl::GetSeq_entryHandle | ( | const CTSE_Handle & | tse | ) |
Definition at line 1267 of file scope_impl.cpp.
References CSeq_entry_Handle, and CTSE_Handle::x_GetTSE_Info().
CSeq_feat_Handle CScope_Impl::GetSeq_featHandle | ( | const CSeq_feat & | feat, |
TMissing | action | ||
) |
Definition at line 1273 of file scope_impl.cpp.
References CScope::eMissing_Null, CSeq_feat_Base::GetLocation(), kInvalidSeqPos, m_ConfLock, m_setDataSrc, and NCBI_THROW.
Referenced by CScope::GetSeq_featHandle().
int CScope_Impl::GetSequenceHash | ( | const CSeq_id_Handle & | id, |
TGetFlags | flags | ||
) |
Definition at line 3060 of file scope_impl.cpp.
References data, CScope::eGetBioseq_All, CScope::fDoNotRecalculate, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, GetBioseqHandle(), CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, NCBI_THROW, NCBI_THROW_FMT, and sx_CalcHash().
Referenced by CScope::GetSequenceHash().
void CScope_Impl::GetSequenceHashes | ( | TSequenceHashes & | ret, |
const TIds & | idhs, | ||
TGetFlags | flags | ||
) |
Definition at line 3902 of file scope_impl.cpp.
References count, CScope::eGetBioseq_All, CScope::fDoNotRecalculate, flags, CScope::fThrowOnMissing, CScope::fThrowOnMissingData, GetBioseqHandle(), CSortedSeq_ids::GetSortedIds(), i, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, NCBI_THROW, NCBI_THROW_FMT, CSortedSeq_ids::RestoreOrder(), sx_CalcHash(), and sx_CountFalse().
TSeqPos CScope_Impl::GetSequenceLength | ( | const CSeq_id_Handle & | id, |
TGetFlags | flags | ||
) |
Definition at line 2936 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingSequence, info, CPrefetchManager::IsActive(), kInvalidSeqPos, m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, and x_FindBioseq_Info().
Referenced by CScope::GetSequenceLength().
void CScope_Impl::GetSequenceLengths | ( | TSequenceLengths & | ret, |
const TIds & | idhs, | ||
TGetFlags | flags | ||
) |
Definition at line 3740 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissing, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), kInvalidSeqPos, m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), and x_FindBioseq_Info().
int CScope_Impl::GetSequenceState | ( | const CSeq_id_Handle & | id, |
TGetFlags | flags | ||
) |
Definition at line 3010 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CBioseq_Handle::fState_no_data, CBioseq_Handle::fState_not_found, CScope::fThrowOnMissingSequence, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, and x_FindBioseq_Info().
Referenced by CScope::GetSequenceState().
void CScope_Impl::GetSequenceStates | ( | TSequenceStates & | ret, |
const TIds & | idhs, | ||
TGetFlags | flags | ||
) |
Definition at line 3846 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CBioseq_Handle::fState_no_data, CBioseq_Handle::fState_not_found, CScope::fThrowOnMissing, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), and x_FindBioseq_Info().
CSeq_inst::TMol CScope_Impl::GetSequenceType | ( | const CSeq_id_Handle & | id, |
TGetFlags | flags | ||
) |
Definition at line 2973 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CSeq_inst_Base::eMol_not_set, CScope::fForceLoad, flags, CScope::fThrowOnMissingSequence, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, CDataLoader::STypeFound::sequence_found, CDataLoader::STypeFound::type, and x_FindBioseq_Info().
Referenced by Exists(), and CScope::GetSequenceType().
void CScope_Impl::GetSequenceTypes | ( | TSequenceTypes & | ret, |
const TIds & | idhs, | ||
TGetFlags | flags | ||
) |
Definition at line 3793 of file scope_impl.cpp.
References count, CScope::eGetBioseq_Resolved, CSeq_inst_Base::eMol_not_set, CScope::fForceLoad, flags, CScope::fThrowOnMissing, CSortedSeq_ids::GetSortedIds(), i, info, CPrefetchManager::IsActive(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), and x_FindBioseq_Info().
CConstRef< CSynonymsSet > CScope_Impl::GetSynonyms | ( | const CBioseq_Handle & | bh | ) |
Definition at line 3127 of file scope_impl.cpp.
References m_ConfLock, CBioseq_Handle::x_GetScopeInfo(), and x_GetSynonyms().
CConstRef< CSynonymsSet > CScope_Impl::GetSynonyms | ( | const CSeq_id_Handle & | id, |
int | get_flag | ||
) |
Definition at line 3113 of file scope_impl.cpp.
References _ASSERT, info, m_ConfLock, match(), x_GetBioseq_Info(), and x_GetSynonyms().
Referenced by CScope::GetSynonyms(), CAnnot_Collector::x_SearchLoc(), and CAnnot_Collector::x_SearchMaster().
TTaxId CScope_Impl::GetTaxId | ( | const CSeq_id_Handle & | idh, |
TGetFlags | flags | ||
) |
Definition at line 2880 of file scope_impl.cpp.
References CSeq_id_Base::e_General, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissingData, CScope::fThrowOnMissingSequence, CDbtag_Base::GetDb(), CObject_id_Base::GetId(), CSeq_id_Handle::GetSeqId(), CDbtag_Base::GetTag(), info, INVALID_TAX_ID, CObject_id_Base::IsId(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, NCBI_THROW_FMT, TAX_ID_FROM, CSeq_id_Handle::Which(), x_FindBioseq_Info(), and ZERO_TAX_ID.
Referenced by CScope::GetTaxId().
Definition at line 3672 of file scope_impl.cpp.
References count, CSeq_id_Base::e_General, CScope::eGetBioseq_Resolved, CScope::fForceLoad, flags, CScope::fThrowOnMissing, CDbtag_Base::GetDb(), CObject_id_Base::GetId(), CSortedSeq_ids::GetSortedIds(), CDbtag_Base::GetTag(), i, info, INVALID_TAX_ID, CPrefetchManager::IsActive(), CObject_id_Base::IsId(), m_ConfLock, m_setDataSrc, match(), NCBI_THROW, CSortedSeq_ids::RestoreOrder(), sx_CountFalse(), TAX_ID_FROM, and x_FindBioseq_Info().
IScopeTransaction_Impl & CScope_Impl::GetTransaction | ( | ) |
Definition at line 3231 of file scope_impl.cpp.
References CreateTransaction(), and m_Transaction.
Referenced by CCommandProcessor::run(), and CScopeTransaction_Impl::x_CanCommitRollBack().
|
private |
Definition at line 2251 of file scope_impl.cpp.
References _ASSERT, CBioseq_ScopeInfo::HasBioseq(), m_ConfLock, CBioseq_Handle::x_GetScopeInfo(), and x_GetTSESetWithAnnots().
|
private |
Definition at line 2283 of file scope_impl.cpp.
References _ASSERT, CBioseq_ScopeInfo::HasBioseq(), m_ConfLock, CBioseq_Handle::x_GetScopeInfo(), and x_GetTSESetWithAnnots().
|
private |
Definition at line 2232 of file scope_impl.cpp.
References CScope::eGetBioseq_All, CBioseq_ScopeInfo::HasBioseq(), info, m_ConfLock, x_GetSeq_id_Info(), x_GetTSESetWithAnnots(), and x_InitBioseq_Info().
Referenced by CAnnot_Collector::x_SearchLoc(), and CAnnot_Collector::x_SearchMaster().
|
private |
Definition at line 2265 of file scope_impl.cpp.
References CScope::eGetBioseq_All, CBioseq_ScopeInfo::HasBioseq(), info, m_ConfLock, x_GetSeq_id_Info(), x_GetTSESetWithAnnots(), and x_InitBioseq_Info().
bool CScope_Impl::IsSameBioseq | ( | const CSeq_id_Handle & | id1, |
const CSeq_id_Handle & | id2, | ||
int | get_flag | ||
) |
Definition at line 1881 of file scope_impl.cpp.
References fNoLockFlag, and GetBioseqHandle().
Referenced by CScope::IsSameBioseq().
bool CScope_Impl::IsTransactionActive | ( | ) | const |
Definition at line 3261 of file scope_impl.cpp.
References m_Transaction.
|
private |
void CScope_Impl::RemoveAnnot | ( | const CSeq_annot_EditHandle & | annot | ) |
Definition at line 1634 of file scope_impl.cpp.
References CSeq_annot_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), m_ConfLock, CTSE_ScopeInfo::RemoveAnnot(), x_ClearAnnotCache(), x_ClearCacheOnRemoveAnnot(), CSeq_annot_EditHandle::x_GetInfo(), CSeq_annot_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
Referenced by RemoveAction< CSeq_annot_EditHandle >::Do(), and CAttachAnnot_EditCommand< Annot >::Undo().
void CScope_Impl::RemoveBioseq | ( | const CBioseq_EditHandle & | seq | ) |
Definition at line 1661 of file scope_impl.cpp.
References CBioseq_EditHandle::GetParentEntry(), and SelectNone().
void CScope_Impl::RemoveBioseq_set | ( | const CBioseq_set_EditHandle & | seqset | ) |
Definition at line 1667 of file scope_impl.cpp.
References CBioseq_set_EditHandle::GetParentEntry(), and SelectNone().
Definition at line 442 of file scope_impl.cpp.
References _VERIFY, CObjectManager::AcquireDataLoader(), CDataSource_ScopeInfo::DetachScope(), map_checker< Container >::end(), CPriorityTree::Erase(), map_checker< Container >::erase(), CScope::eRemoveIfLocked, CScope::eThrowIfLocked, map_checker< Container >::find(), CDataSource_ScopeInfo::GetTSE_InfoMap(), CDataSource_ScopeInfo::GetTSE_InfoMapMutex(), ITERATE, m_ConfLock, m_DSMap, m_ObjMgr, m_setDataSrc, NCBI_THROW, CRef< C, Locker >::Reset(), CDataSource_ScopeInfo::ResetHistory(), and x_ClearCacheOnRemoveData().
Referenced by CScope::RemoveDataLoader().
void CScope_Impl::RemoveEntry | ( | const CSeq_entry_EditHandle & | entry | ) |
Definition at line 1509 of file scope_impl.cpp.
References CSeq_entry_Handle::GetCompleteSeq_entry(), CSeq_entry_EditHandle::GetParentEntry(), CSeq_entry_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), m_ConfLock, CTSE_ScopeInfo::RemoveEntry(), RemoveTopLevelSeqEntry(), x_ClearCacheOnRemoveData(), CSeq_entry_EditHandle::x_GetInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
Referenced by CSeq_entry_Remove_EditCommand::Do(), and CAttachEntry_EditCommand< Entry >::Undo().
void CScope_Impl::RemoveFromHistory | ( | const CSeq_id_Handle & | seq_id | ) |
Definition at line 2606 of file scope_impl.cpp.
References map_checker< Container >::end(), map_checker< Container >::erase(), map_checker< Container >::find(), CScopeInfo_Base::IsDetached(), m_ConfLock, m_Seq_idMap, CBioseq_ScopeInfo::m_SynCache, CInitMutex< C >::Reset(), and CBioseq_ScopeInfo::x_ResetAnnotRef_Info().
void CScope_Impl::RemoveFromHistory | ( | const CTSE_Handle & | tse, |
int | action | ||
) |
Definition at line 2586 of file scope_impl.cpp.
References _ASSERT, CScope::eKeepIfLocked, m_ConfLock, CTSE_ScopeInfo::RemoveFromHistory(), and x_ClearCacheOnRemoveData().
Referenced by CScope::RemoveFromHistory().
void CScope_Impl::RemoveTopLevelAnnot | ( | const CSeq_annot_Handle & | annot | ) |
Definition at line 1695 of file scope_impl.cpp.
References CSeq_annot_Handle::GetTSE_Handle(), NCBI_THROW, RemoveTopLevelSeqEntry(), CSeq_annot_Handle::x_GetInfo(), CTSE_Handle::x_GetTSE_Info(), and x_IsDummyTSE().
Referenced by CScope::RemoveSeq_annot().
void CScope_Impl::RemoveTopLevelBioseq | ( | const CBioseq_Handle & | seq | ) |
Definition at line 1673 of file scope_impl.cpp.
References CBioseq_Handle::GetTSE_Handle(), NCBI_THROW, RemoveTopLevelSeqEntry(), CBioseq_Handle::x_GetInfo(), CTSE_Handle::x_GetTSE_Info(), and x_IsDummyTSE().
Referenced by CScope::RemoveBioseq().
void CScope_Impl::RemoveTopLevelBioseq_set | ( | const CBioseq_set_Handle & | seqset | ) |
Definition at line 1684 of file scope_impl.cpp.
References CBioseq_set_Handle::GetTSE_Handle(), NCBI_THROW, RemoveTopLevelSeqEntry(), CBioseq_set_Handle::x_GetInfo(), CTSE_Handle::x_GetTSE_Info(), and x_IsDummyTSE().
void CScope_Impl::RemoveTopLevelSeqEntry | ( | const CTSE_Handle & | entry | ) |
Definition at line 483 of file scope_impl.cpp.
References _ASSERT, _VERIFY, CDataSource_ScopeInfo::CanBeEdited(), CDataSource_ScopeInfo::DetachScope(), CPriorityTree::Erase(), map_checker< Container >::erase(), CScope::eRemoveIfLocked, CDataSource_ScopeInfo::GetDataLoader(), CDataSource_ScopeInfo::GetDataSource(), CDataSource_ScopeInfo::GetScopeImpl(), m_ConfLock, m_DSMap, m_setDataSrc, NCBI_THROW, CTSE_ScopeInfo::RemoveFromHistory(), CRef< C, Locker >::Reset(), CTSE_Lock::Reset(), x_ClearCacheOnRemoveData(), and CTSE_Handle::x_GetScopeInfo().
Referenced by CRemoveTSE_EditCommand::Do(), RemoveEntry(), RemoveTopLevelAnnot(), RemoveTopLevelBioseq(), RemoveTopLevelBioseq_set(), and CScope::RemoveTopLevelSeqEntry().
void CScope_Impl::ResetDataAndHistory | ( | void | ) |
Definition at line 2639 of file scope_impl.cpp.
References CDataSource_ScopeInfo::CanBeEdited(), map_checker< Container >::clear(), CDataSource::DropAllTSEs(), CScope::eRemoveIfLocked, CDataSource_ScopeInfo::GetDataSource(), CDataSource_ScopeInfo::IsConst(), m_ConfLock, m_DSMap, m_Seq_idMap, NON_CONST_ITERATE, CDataSource_ScopeInfo::ResetDS(), and x_ClearCacheOnRemoveData().
Referenced by CScope::ResetDataAndHistory().
void CScope_Impl::ResetHistory | ( | int | action | ) |
Definition at line 2628 of file scope_impl.cpp.
References m_ConfLock, m_DSMap, NON_CONST_ITERATE, and x_ClearCacheOnRemoveData().
Referenced by CScope::ResetHistory().
void CScope_Impl::ResetScope | ( | void | ) |
Definition at line 2657 of file scope_impl.cpp.
References map_checker< Container >::begin(), map_checker< Container >::clear(), CPriorityTree::Clear(), CDataSource_ScopeInfo::DetachScope(), map_checker< Container >::empty(), map_checker< Container >::erase(), m_ConfLock, m_DSMap, m_Seq_idMap, and m_setDataSrc.
Referenced by CScope::ResetDataAndHistory(), and x_DetachFromOM().
void CScope_Impl::SelectNone | ( | const CSeq_entry_EditHandle & | entry | ) |
Definition at line 1646 of file scope_impl.cpp.
References _ASSERT, CSeq_entry_Handle::GetCompleteSeq_entry(), CSeq_entry_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), m_ConfLock, CTSE_ScopeInfo::ResetEntry(), x_ClearCacheOnRemoveData(), CSeq_entry_EditHandle::x_GetInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
Referenced by RemoveAction< CBioseq_EditHandle >::Do(), RemoveAction< CBioseq_set_EditHandle >::Do(), CSeq_entry_SelectNone_EditCommand::Do(), RemoveBioseq(), RemoveBioseq_set(), and CSeq_entry_Select_EditCommand< Handle, Data >::Undo().
CBioseq_EditHandle CScope_Impl::SelectSeq | ( | const CSeq_entry_EditHandle & | entry, |
CBioseq & | seq | ||
) |
Definition at line 760 of file scope_impl.cpp.
References Ref().
Referenced by SeqEntrySelectAction< CBioseq_EditHandle, Data >::Do(), SelectSeq(), CSeq_entry_SelectNone_EditCommand::Undo(), and RemoveAction< CBioseq_EditHandle >::Undo().
CBioseq_EditHandle CScope_Impl::SelectSeq | ( | const CSeq_entry_EditHandle & | entry, |
const CBioseq_EditHandle & | seq | ||
) |
Definition at line 802 of file scope_impl.cpp.
References _ASSERT, CHECK_HANDLE, CHECK_REMOVED_HANDLE, CBioseq_Handle::IsRemoved(), SelectSeq(), and x_SelectSeq().
CBioseq_EditHandle CScope_Impl::SelectSeq | ( | const CSeq_entry_EditHandle & | entry, |
CRef< CBioseq_Info > | seq | ||
) |
Definition at line 769 of file scope_impl.cpp.
References _ASSERT, CHECK_HANDLE, SelectSeq(), and x_SelectSeq().
CBioseq_set_EditHandle CScope_Impl::SelectSet | ( | const CSeq_entry_EditHandle & | entry, |
CBioseq_set & | seqset | ||
) |
Definition at line 817 of file scope_impl.cpp.
References Ref().
Referenced by SeqEntrySelectAction< CBioseq_set_EditHandle, Data >::Do(), SelectSet(), CSeq_entry_SelectNone_EditCommand::Undo(), and RemoveAction< CBioseq_set_EditHandle >::Undo().
CBioseq_set_EditHandle CScope_Impl::SelectSet | ( | const CSeq_entry_EditHandle & | entry, |
const CBioseq_set_EditHandle & | seqset | ||
) |
Definition at line 863 of file scope_impl.cpp.
References _ASSERT, CHECK_HANDLE, CHECK_REMOVED_HANDLE, CBioseq_set_Handle::IsRemoved(), SelectSet(), and x_SelectSet().
CBioseq_set_EditHandle CScope_Impl::SelectSet | ( | const CSeq_entry_EditHandle & | entry, |
CRef< CBioseq_set_Info > | seqset | ||
) |
Definition at line 827 of file scope_impl.cpp.
References _ASSERT, CHECK_HANDLE, SelectSet(), and x_SelectSet().
void CScope_Impl::SetActiveTransaction | ( | IScopeTransaction_Impl * | transaction | ) |
Definition at line 3250 of file scope_impl.cpp.
References IScopeTransaction_Impl::AddScope(), IScopeTransaction_Impl::HasScope(), m_Transaction, and NCBI_THROW.
Referenced by CScopeTransaction_Impl::x_DoFinish().
Definition at line 171 of file scope_impl.cpp.
References m_ConfLock, m_KeepExternalAnnotsForEdit, and x_ClearAnnotCache().
Referenced by CScope::SetKeepExternalAnnotsForEdit().
|
private |
Definition at line 3137 of file scope_impl.cpp.
References _ASSERT, CSynonymsSet::AddSynonym(), CSeq_id_Handle::AsString(), CSynonymsSet::ContainsSynonym(), ERR_POST_X, CBioseq_ScopeInfo::IdString(), info, Warning(), x_GetSeq_id_Info(), and x_InitBioseq_Info().
Referenced by x_GetSynonyms().
|
private |
Definition at line 2401 of file scope_impl.cpp.
References ITERATE, Ref(), CTSE_Handle::x_GetScopeInfo(), and x_GetTSE_Lock().
Referenced by x_GetTSESetWithBioseqAnnots(), and x_GetTSESetWithOrphanAnnots().
|
private |
Definition at line 663 of file scope_impl.cpp.
References _ASSERT, CTSE_ScopeInfo::AddAnnot(), CSeq_entry_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), CSeq_annot_Handle::IsRemoved(), m_ConfLock, x_ClearCacheOnNewAnnot(), CSeq_annot_EditHandle::x_GetInfo(), CSeq_annot_EditHandle::x_GetScopeInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
|
private |
Definition at line 647 of file scope_impl.cpp.
References _ASSERT, CSeq_entry_Info::AddAnnot(), CSeq_annot_EditHandle, CSeq_entry_Handle::GetTSE_Handle(), m_ConfLock, x_ClearCacheOnNewAnnot(), and CSeq_entry_EditHandle::x_GetInfo().
Referenced by AttachAnnot().
|
private |
Definition at line 546 of file scope_impl.cpp.
References _ASSERT, CTSE_ScopeInfo::AddEntry(), CBioseq_set_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), CSeq_entry_Handle::IsRemoved(), m_ConfLock, x_ClearCacheOnNewData(), CBioseq_set_EditHandle::x_GetInfo(), CSeq_entry_EditHandle::x_GetInfo(), CBioseq_set_EditHandle::x_GetScopeInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
|
private |
Definition at line 529 of file scope_impl.cpp.
References _ASSERT, CBioseq_set_Info::AddEntry(), CSeq_entry_EditHandle, CBioseq_set_Handle::GetTSE_Handle(), m_ConfLock, x_ClearCacheOnNewData(), and CBioseq_set_EditHandle::x_GetInfo().
Referenced by AttachEntry().
|
private |
Definition at line 129 of file scope_impl.cpp.
References _ASSERT, m_ObjMgr, CObjectManager::RegisterScope(), and CRef< C, Locker >::Reset().
void CScope_Impl::x_ClearAnnotCache | ( | void | ) |
Definition at line 1092 of file scope_impl.cpp.
References m_AnnotChangeCounter, m_Seq_idMap, NON_CONST_ITERATE, and CBioseq_ScopeInfo::x_ResetAnnotRef_Info().
Referenced by RemoveAnnot(), SetKeepExternalAnnotsForEdit(), CSeq_annot_EditHandle::Update(), CScope::UpdateAnnotIndex(), x_ClearCacheOnNewAnnot(), x_ClearCacheOnNewData(), x_ClearCacheOnRemoveAnnot(), CSeq_annot_EditHandle::x_RealAdd(), CSeq_align_Handle::x_RealReplace(), CSeq_feat_EditHandle::x_RealReplace(), and CSeq_graph_Handle::x_RealReplace().
|
private |
Definition at line 1065 of file scope_impl.cpp.
References map_checker< Container >::begin(), map_checker< Container >::end(), map_checker< Container >::erase(), CBioseq_ScopeInfo::HasBioseq(), m_BioseqChangeCounter, m_Seq_idMap, CBioseq_ScopeInfo::m_SynCache, CBioseq_ScopeInfo::m_UnresolvedTimestamp, CInitMutex< C >::Reset(), CScopeInfo_Base::x_GetTSE_ScopeInfo(), and CBioseq_ScopeInfo::x_ResetAnnotRef_Info().
Referenced by AddDSBefore().
Definition at line 1108 of file scope_impl.cpp.
References x_ClearAnnotCache().
Referenced by AddSeq_annot(), AddSeq_submit(), and x_AttachAnnot().
Definition at line 956 of file scope_impl.cpp.
References CSeq_entry_Info::GetSeqAndAnnotIds(), and x_ClearCacheOnNewData().
|
private |
Definition at line 975 of file scope_impl.cpp.
References CSeq_entry_Info::GetSeqAndAnnotIds(), and x_ClearCacheOnNewData().
|
private |
Definition at line 967 of file scope_impl.cpp.
References x_ClearCacheOnNewData().
Definition at line 984 of file scope_impl.cpp.
References map_checker< Container >::begin(), map_checker< Container >::empty(), map_checker< Container >::end(), map_checker< Container >::find(), first(), CBioseq_ScopeInfo::HasBioseq(), ITERATE, log, m_BioseqChangeCounter, m_Seq_idMap, CBioseq_ScopeInfo::m_UnresolvedTimestamp, max(), min(), NON_CONST_ITERATE, map_checker< Container >::size(), x_ClearAnnotCache(), and x_ReportNewDataConflict().
Referenced by AddBioseq(), AddDS(), CBioseq_ScopeInfo::AddId(), AddSeq_entry(), AddSharedSeq_entry(), x_AttachEntry(), x_ClearCacheOnNewData(), x_SelectSeq(), and x_SelectSet().
|
private |
Definition at line 1115 of file scope_impl.cpp.
References map_checker< Container >::empty(), m_AnnotChangeCounter, m_BioseqChangeCounter, m_Seq_idMap, and x_ReportNewDataConflict().
Referenced by AddDataLoader(), AddDefaults(), AddDS(), and AddScope().
Definition at line 1184 of file scope_impl.cpp.
References x_ClearAnnotCache().
Referenced by RemoveAnnot().
Definition at line 1129 of file scope_impl.cpp.
References map_checker< Container >::begin(), map_checker< Container >::end(), map_checker< Container >::erase(), CScopeInfo_Base::IsDetached(), m_Seq_idMap, CBioseq_ScopeInfo::m_SynCache, CInitMutex< C >::Reset(), and CBioseq_ScopeInfo::x_ResetAnnotRef_Info().
Referenced by RemoveDataLoader(), RemoveEntry(), RemoveFromHistory(), RemoveTopLevelSeqEntry(), ResetDataAndHistory(), ResetHistory(), and SelectNone().
|
private |
Definition at line 1149 of file scope_impl.cpp.
References map_checker< Container >::end(), map_checker< Container >::erase(), map_checker< Container >::find(), CBioseq_ScopeInfo::GetIds(), ITERATE, m_Seq_idMap, CBioseq_ScopeInfo::m_SynCache, and CInitMutex< C >::Reset().
Referenced by CBioseq_ScopeInfo::RemoveId(), and CBioseq_ScopeInfo::ResetId().
|
private |
Definition at line 137 of file scope_impl.cpp.
References _ASSERT, m_ObjMgr, CRef< C, Locker >::Reset(), ResetScope(), and CObjectManager::RevokeScope().
Referenced by ~CScope_Impl().
|
private |
Definition at line 1814 of file scope_impl.cpp.
References _ASSERT, CBioseq_ScopeInfo::HasBioseq(), info, match(), x_FindSeq_id_Info(), CScopeInfo_Base::x_GetScopeImpl(), and x_InitBioseq_Info().
Referenced by GetAccVer(), GetAccVers(), GetBulkIds(), GetGi(), GetGis(), GetIds(), GetLabel(), GetLabels(), GetSequenceLength(), GetSequenceLengths(), GetSequenceState(), GetSequenceStates(), GetSequenceType(), GetSequenceTypes(), GetTaxId(), GetTaxIds(), and x_GetBioseqHandleFromTSE().
|
private |
Definition at line 2161 of file scope_impl.cpp.
References _ASSERT, CDataSource_ScopeInfo::BestResolve(), CBlobStateException::GetBlobState(), CDataSource_ScopeInfo::GetScopeImpl(), CPrefetchManager::IsActive(), and SSeqMatch_Scope::m_BlobState.
|
private |
Definition at line 2178 of file scope_impl.cpp.
References CPriorityNode::GetLeaf(), CPriorityNode::GetTree(), CPriorityNode::IsLeaf(), CPriorityNode::IsTree(), and x_FindBioseqInfo().
|
private |
Definition at line 2118 of file scope_impl.cpp.
References _ASSERT, CTSE_ScopeInfo::CanBeEdited(), CBioseq_Handle::fState_conflict, CTSE_ScopeInfo::GetScopeImpl(), ITERATE, SSeqMatch_TSE::m_Bioseq, SSeqMatch_Scope::m_BlobState, SSeqMatch_Scope::m_TSE_Lock, and CConstRef< C, Locker >::Reset().
Referenced by x_FindBioseqInfo(), and x_ResolveSeq_id().
|
private |
Definition at line 1758 of file scope_impl.cpp.
References map_checker< Container >::end(), map_checker< Container >::lower_bound(), m_Seq_idMap, and m_Seq_idMapLock.
Referenced by x_FindBioseq_Info().
|
private |
Definition at line 2299 of file scope_impl.cpp.
References CSeq_id::eSNPScaleLimit_Default, SAnnotSelector::GetNamedAnnotAccessions(), SAnnotSelector::GetSNPScaleLimit(), SAnnotSelector::IsIncludedAnyNamedAnnotAccession(), and m_Seq_idMapLock.
Referenced by x_GetTSESetWithAnnots().
|
private |
Definition at line 1805 of file scope_impl.cpp.
References match(), x_GetSeq_id_Info(), and x_InitBioseq_Info().
Referenced by GetBioseqHandle(), and GetSynonyms().
CScope_Impl::TBioseq_Lock CScope_Impl::x_GetBioseq_Lock | ( | const CBioseq & | bioseq, |
int | action | ||
) |
Definition at line 1477 of file scope_impl.cpp.
References CScope::eMissing_Null, m_setDataSrc, and NCBI_THROW.
Referenced by AddBioseq(), AddSharedBioseq(), and GetBioseqHandle().
CScope_Impl::TBioseq_set_Lock CScope_Impl::x_GetBioseq_set_Lock | ( | const CBioseq_set & | seqset, |
int | action | ||
) |
Definition at line 1459 of file scope_impl.cpp.
References CScope::eMissing_Null, m_setDataSrc, and NCBI_THROW.
Referenced by GetBioseq_setHandle().
|
private |
Definition at line 2093 of file scope_impl.cpp.
References ConstRef(), CTSE_ScopeInfo::GetBioseqLock(), CBioseq_Handle::m_Info, CTSE_Handle::x_GetScopeInfo(), and x_UpdateHandleSeq_id().
Referenced by AddBioseq(), AddSharedBioseq(), GetBioseqHandle(), and x_PopulateBioseq_HandleSet().
|
private |
Definition at line 1830 of file scope_impl.cpp.
References _ASSERT, CBioseq_Handle, CTSE_ScopeInfo::ContainsMatchingBioseq(), CScope::eGetBioseq_Loaded, CTSE_ScopeInfo::GetBioseqInfo(), info, m_ConfLock, match(), CTSE_ScopeInfo::Resolve(), x_FindBioseq_Info(), and CTSE_Handle::x_GetScopeInfo().
Referenced by GetBioseqHandleFromTSE(), and x_UpdateHandleSeq_id().
|
private |
Bulk retrieval methods.
Definition at line 3281 of file scope_impl.cpp.
References _ASSERT, CBioseq_ScopeInfo, count, CScope::eGetBioseq_Resolved, CInitGuard::force, CBioseq_Handle::fState_not_found, GetBioseqHandle(), CTSE_ScopeInfo::GetBioseqInfo(), CTSE_ScopeInfo::GetScopeImpl(), i, info, init(), m_BioseqChangeCounter, m_ConfLock, m_MutexPool, m_setDataSrc, match(), and x_GetSeq_id_Info().
Referenced by GetBioseqHandles().
CRef< CDataSource_ScopeInfo > CScope_Impl::x_GetDSInfo | ( | CDataSource & | ds | ) |
Definition at line 1397 of file scope_impl.cpp.
References CDataSource_ScopeInfo, m_DSMap, and Ref().
Referenced by AddDataLoader(), AddDefaults(), AddDS(), AddDSBefore(), CPriorityNode::CPriorityNode(), GetCDDAnnots(), GetConstDS(), GetEditDS(), and GetSeq_entryHandle().
CScope_Impl::TSeq_annot_Lock CScope_Impl::x_GetSeq_annot_Lock | ( | const CSeq_annot & | annot, |
int | action | ||
) |
Definition at line 1442 of file scope_impl.cpp.
References CScope::eMissing_Null, m_setDataSrc, and NCBI_THROW.
Referenced by AddSeq_annot(), AddSharedSeq_annot(), and GetSeq_annotHandle().
CScope_Impl::TSeq_entry_Lock CScope_Impl::x_GetSeq_entry_Lock | ( | const CSeq_entry & | entry, |
int | action | ||
) |
Definition at line 1425 of file scope_impl.cpp.
References CScope::eMissing_Null, m_setDataSrc, and NCBI_THROW.
Referenced by AddSeq_entry(), AddSharedSeq_entry(), and GetSeq_entryHandle().
|
private |
|
private |
Definition at line 1707 of file scope_impl.cpp.
References map_checker< Container >::end(), map_checker< Container >::insert(), map_checker< Container >::lower_bound(), m_Seq_idMap, and m_Seq_idMapLock.
Referenced by GetTSESetWithAnnots(), x_AddSynonym(), x_GetBioseq_Info(), and x_GetBioseqHandlesSorted().
|
private |
Definition at line 3161 of file scope_impl.cpp.
References CSeq_id_Handle::GetHandle(), CSeq_id::GetTextseq_Id(), info, init(), ITERATE, m_MutexPool, CTextseq_id_Base::ResetName(), SerialClone(), and x_AddSynonym().
Referenced by GetSynonyms(), and x_GetTSESetWithBioseqAnnots().
CScope_Impl::TTSE_Lock CScope_Impl::x_GetTSE_Lock | ( | const CSeq_entry & | tse, |
int | action | ||
) |
Definition at line 1407 of file scope_impl.cpp.
References CScope::eMissing_Null, m_setDataSrc, and NCBI_THROW.
Referenced by GetAllTSEs(), GetCDDAnnots(), x_AddTSESetWithAnnots(), and x_LockMatchSet().
CScope_Impl::TTSE_Lock CScope_Impl::x_GetTSE_Lock | ( | const CTSE_Lock & | lock, |
CDataSource_ScopeInfo & | ds | ||
) |
Definition at line 1494 of file scope_impl.cpp.
References _ASSERT, CDataSource_ScopeInfo::GetScopeImpl(), and CDataSource_ScopeInfo::GetTSE_Lock().
CScope_Impl::TTSE_Lock CScope_Impl::x_GetTSE_Lock | ( | const CTSE_ScopeInfo & | tse | ) |
Definition at line 1502 of file scope_impl.cpp.
References _ASSERT, and CTSE_ScopeInfo::GetScopeImpl().
|
private |
Definition at line 2318 of file scope_impl.cpp.
References CTSE_ScopeInfo::CanBeEdited(), CInitGuard::force, CBioseq_ScopeInfo::GetObjectInfo(), init(), m_AnnotChangeCounter, CBioseq_ScopeInfo::m_BioseqAnnotRef_Info, CBioseq_Info::m_IdChangeCounter, m_MutexPool, CBioseq_ScopeInfo::m_NABioseqAnnotRef_Info, x_GetAnnotRef_Info(), CScopeInfo_Base::x_GetTSE_ScopeInfo(), x_GetTSESetWithBioseqAnnots(), and x_LockMatchSet().
Referenced by GetTSESetWithAnnots(), and x_GetTSESetWithAnnots().
|
private |
Definition at line 2354 of file scope_impl.cpp.
References CInitGuard::force, info, init(), m_AnnotChangeCounter, m_MutexPool, x_GetAnnotRef_Info(), x_GetTSESetWithAnnots(), and x_LockMatchSet().
|
private |
Definition at line 2381 of file scope_impl.cpp.
References x_GetTSESetWithBioseqAnnots().
|
private |
Definition at line 2390 of file scope_impl.cpp.
References info, and x_GetTSESetWithOrphanAnnots().
|
private |
Definition at line 2566 of file scope_impl.cpp.
References CDataSource_ScopeInfo::GetDataSource(), CTSE_ScopeInfo::GetDSInfo(), CBioseq_ScopeInfo::GetLock(), CDataSource::GetTSESetWithBioseqAnnots(), ct::sort(), x_AddTSESetWithAnnots(), and CScopeInfo_Base::x_GetTSE_ScopeInfo().
|
private |
Definition at line 2506 of file scope_impl.cpp.
References CDataSource_ScopeInfo::GetDataSource(), CTSE_ScopeInfo::GetDSInfo(), GetKeepExternalAnnotsForEdit(), CBioseq_ScopeInfo::GetLock(), CDataSource::GetTSESetWithBioseqAnnots(), CDataSource::GetTSESetWithExternalAnnots(), CDataSource::GetTSESetWithOrphanAnnots(), CPriorityTree::HasSeveralNodes(), set< Key, Compare >::insert(), CPrefetchManager::IsActive(), ITERATE, m_setDataSrc, CTSE_ScopeInfo::m_TSE_Lock, ct::sort(), x_AddTSESetWithAnnots(), x_GetSynonyms(), CScopeInfo_Base::x_GetTSE_ScopeInfo(), and x_UpdateProcessedNAs().
Referenced by x_GetTSESetWithAnnots().
|
private |
Definition at line 2466 of file scope_impl.cpp.
References CTSE_ScopeInfo::GetDSInfo(), GetKeepExternalAnnotsForEdit(), CBioseq_ScopeInfo::GetLock(), CDataSource::GetTSESetWithExternalAnnots(), CDataSource::GetTSESetWithOrphanAnnots(), CPrefetchManager::IsActive(), CDataSource_ScopeInfo::m_EditDS, m_setDataSrc, CTSE_ScopeInfo::m_TSE_Lock, x_AddTSESetWithAnnots(), CScopeInfo_Base::x_GetTSE_ScopeInfo(), and x_UpdateProcessedNAs().
Referenced by x_GetTSESetWithAnnots().
|
private |
Definition at line 1789 of file scope_impl.cpp.
References _ASSERT, CInitGuard::force, info, init(), m_BioseqChangeCounter, m_MutexPool, and CScopeInfo_Base::x_GetScopeImpl().
|
private |
Definition at line 1769 of file scope_impl.cpp.
References CScope::eGetBioseq_Resolved, CInitGuard::force, info, init(), m_BioseqChangeCounter, m_MutexPool, match(), and x_ResolveSeq_id().
Referenced by GetTSESetWithAnnots(), x_AddSynonym(), x_FindBioseq_Info(), and x_GetBioseq_Info().
|
private |
Definition at line 1571 of file scope_impl.cpp.
References CBioseq_Base_Info::GetParentSeq_entry_Info().
Referenced by RemoveTopLevelAnnot(), RemoveTopLevelBioseq(), and RemoveTopLevelBioseq_set().
|
private |
Definition at line 1581 of file scope_impl.cpp.
References CBioseq_Base_Info::GetParentSeq_entry_Info().
|
private |
Definition at line 1591 of file scope_impl.cpp.
References CBioseq_Base_Info::GetAnnot(), CSeq_annot_Info::GetParentSeq_entry_Info(), CSeq_entry_Info::GetSet(), CBioseq_set_Info::IsEmptySeq_set(), CSeq_entry_Info::IsSet(), CBioseq_Base_Info::IsSetAnnot(), CBioseq_set_Info::IsSetClass(), CBioseq_set_Info::IsSetColl(), CBioseq_set_Info::IsSetDate(), CBioseq_Base_Info::IsSetDescr(), CBioseq_set_Info::IsSetId(), CBioseq_set_Info::IsSetLevel(), CBioseq_set_Info::IsSetRelease(), and CBioseq_set_Info::IsSetSeq_set().
|
private |
Definition at line 2433 of file scope_impl.cpp.
References first(), i, match(), ncbi::grid::netcache::search::fields::size, and x_GetTSE_Lock().
Referenced by x_GetTSESetWithAnnots().
|
private |
Definition at line 1528 of file scope_impl.cpp.
References CSeq_entry_Base::SetSeq().
Referenced by AddBioseq(), AddSeq_annot(), AddSeq_submit(), AddSharedBioseq(), and AddSharedSeq_annot().
|
private |
Definition at line 1536 of file scope_impl.cpp.
References CSeq_entry_Base::SetSet().
|
private |
Definition at line 1544 of file scope_impl.cpp.
References Ref(), CBioseq_set_Base::SetAnnot(), CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().
|
private |
Definition at line 1553 of file scope_impl.cpp.
References CSeq_submit_Base::C_Data::e_Annots, CSeq_submit_Base::C_Data::e_Entrys, CSeq_submit_Base::C_Data::GetAnnots(), CSeq_submit_Base::GetData(), CSeq_submit_Base::C_Data::GetEntrys(), CBioseq_set_Base::SetAnnot(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), and CSeq_submit_Base::C_Data::Which().
|
private |
Definition at line 2672 of file scope_impl.cpp.
References CSeq_entry_Handle::GetTSE_Handle(), info, ITERATE, m_ConfLock, x_GetBioseqHandle(), and CSeq_entry_Handle::x_GetInfo().
|
private |
Definition at line 939 of file scope_impl.cpp.
References CSeq_id_Handle::AsString(), Info(), and LOG_POST_X.
Referenced by x_ClearCacheOnNewData(), and x_ClearCacheOnNewDS().
|
private |
Definition at line 2196 of file scope_impl.cpp.
References _ASSERT, CBioseq_ScopeInfo, CScope::eGetBioseq_All, CTSE_ScopeInfo::GetBioseqInfo(), CTSE_ScopeInfo::GetScopeImpl(), CBioseq_ScopeInfo::HasBioseq(), m_BioseqChangeCounter, m_setDataSrc, match(), CBioseq_ScopeInfo::SetUnresolved(), x_FindBioseqInfo(), and CScopeInfo_Base::x_GetScopeImpl().
Referenced by x_InitBioseq_Info().
|
private |
Definition at line 608 of file scope_impl.cpp.
References _ASSERT, CSeq_entry_Base::e_not_set, CSeq_entry_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), CBioseq_Handle::IsRemoved(), m_ConfLock, CTSE_ScopeInfo::SelectSeq(), CSeq_entry_Handle::Which(), x_ClearCacheOnNewData(), CSeq_entry_EditHandle::x_GetInfo(), CBioseq_EditHandle::x_GetScopeInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
|
private |
Definition at line 566 of file scope_impl.cpp.
References _ASSERT, CSeq_entry_Base::e_not_set, CTSE_ScopeInfo::GetBioseqLock(), m_ConfLock, CBioseq_Handle::m_Info, CSeq_entry_Info::SelectSeq(), CSeq_entry_Handle::Which(), x_ClearCacheOnNewData(), CSeq_entry_EditHandle::x_GetInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), CScopeInfo_Base::x_GetTSE_ScopeInfo(), and x_UpdateHandleSeq_id().
Referenced by SelectSeq().
|
private |
Definition at line 627 of file scope_impl.cpp.
References _ASSERT, CSeq_entry_Base::e_not_set, CSeq_entry_Handle::GetTSE_Handle(), CTSE_Info_Object::GetTSE_Info(), CBioseq_set_Handle::IsRemoved(), m_ConfLock, CTSE_ScopeInfo::SelectSet(), CSeq_entry_Handle::Which(), x_ClearCacheOnNewData(), CSeq_entry_EditHandle::x_GetInfo(), CBioseq_set_EditHandle::x_GetScopeInfo(), CSeq_entry_EditHandle::x_GetScopeInfo(), and CTSE_Handle::x_GetScopeInfo().
|
private |
Definition at line 590 of file scope_impl.cpp.
References _ASSERT, CBioseq_set_EditHandle, CSeq_entry_Base::e_not_set, CSeq_entry_Handle::GetTSE_Handle(), m_ConfLock, CSeq_entry_Info::SelectSet(), CSeq_entry_Handle::Which(), x_ClearCacheOnNewData(), and CSeq_entry_EditHandle::x_GetInfo().
Referenced by SelectSet().
|
private |
Definition at line 2103 of file scope_impl.cpp.
References CBioseq_Handle::GetId(), CBioseq_Handle::GetTSE_Handle(), ITERATE, CBioseq_Handle::m_Handle_Seq_id, x_GetBioseqHandleFromTSE(), and CBioseq_Handle::x_GetInfo().
Referenced by GetBioseqHandle(), x_GetBioseqHandle(), and x_SelectSeq().
|
private |
Definition at line 2445 of file scope_impl.cpp.
References set< Key, Compare >::empty(), SAnnotSelector::ExcludeNamedAnnotAccession(), and set< Key, Compare >::insert().
Referenced by x_GetTSESetWithBioseqAnnots(), and x_GetTSESetWithOrphanAnnots().
|
friend |
Definition at line 666 of file scope_impl.hpp.
|
friend |
Definition at line 665 of file scope_impl.hpp.
|
friend |
Definition at line 670 of file scope_impl.hpp.
Referenced by GetEditHandle().
|
friend |
Definition at line 667 of file scope_impl.hpp.
Referenced by AddBioseq(), AddSharedBioseq(), and x_GetBioseqHandleFromTSE().
|
friend |
Definition at line 682 of file scope_impl.hpp.
Referenced by x_GetBioseqHandlesSorted(), and x_ResolveSeq_id().
|
friend |
Definition at line 671 of file scope_impl.hpp.
Referenced by GetEditHandle(), and x_SelectSet().
|
friend |
Definition at line 668 of file scope_impl.hpp.
Referenced by GetBioseq_setHandle().
|
friend |
Definition at line 664 of file scope_impl.hpp.
|
friend |
Definition at line 678 of file scope_impl.hpp.
Referenced by x_GetDSInfo().
|
friend |
Definition at line 661 of file scope_impl.hpp.
|
friend |
Definition at line 662 of file scope_impl.hpp.
|
friend |
Definition at line 677 of file scope_impl.hpp.
|
friend |
Definition at line 660 of file scope_impl.hpp.
|
friend |
Definition at line 680 of file scope_impl.hpp.
Referenced by CreateTransaction().
|
friend |
Definition at line 675 of file scope_impl.hpp.
|
friend |
Definition at line 673 of file scope_impl.hpp.
Referenced by GetEditHandle(), and x_AttachAnnot().
|
friend |
Definition at line 672 of file scope_impl.hpp.
Referenced by GetEditHandle(), and x_AttachEntry().
|
friend |
Definition at line 669 of file scope_impl.hpp.
Referenced by AddSeq_entry(), AddSeq_submit(), AddSharedSeq_entry(), and GetSeq_entryHandle().
|
friend |
Definition at line 676 of file scope_impl.hpp.
|
friend |
Definition at line 663 of file scope_impl.hpp.
|
friend |
Definition at line 674 of file scope_impl.hpp.
|
friend |
Definition at line 679 of file scope_impl.hpp.
|
private |
Definition at line 657 of file scope_impl.hpp.
Referenced by x_ClearAnnotCache(), x_ClearCacheOnNewDS(), and x_GetTSESetWithAnnots().
|
private |
Definition at line 656 of file scope_impl.hpp.
Referenced by x_ClearCacheOnEdit(), x_ClearCacheOnNewData(), x_ClearCacheOnNewDS(), x_GetBioseqHandlesSorted(), x_InitBioseq_Info(), and x_ResolveSeq_id().
|
mutableprivate |
Definition at line 649 of file scope_impl.hpp.
Referenced by AddBioseq(), AddDataLoader(), AddDefaults(), AddDS(), AddDSBefore(), AddScope(), AddSeq_annot(), AddSeq_entry(), AddSeq_submit(), AddSharedBioseq(), AddSharedSeq_annot(), AddSharedSeq_entry(), GetAccVer(), GetAccVers(), GetAllTSEs(), GetBioseq_setHandle(), GetBioseqHandle(), GetBulkIds(), GetCDDAnnots(), GetConstDS(), GetEditDataSource(), GetEditDS(), GetEditHandle(), GetFirstLoaderSource(), GetGi(), GetGis(), GetIds(), GetLabel(), GetLabels(), GetSeq_annotHandle(), GetSeq_entryHandle(), GetSeq_featHandle(), GetSequenceHash(), GetSequenceHashes(), GetSequenceLength(), GetSequenceLengths(), GetSequenceState(), GetSequenceStates(), GetSequenceType(), GetSequenceTypes(), GetSynonyms(), GetTaxId(), GetTaxIds(), GetTSESetWithAnnots(), RemoveAnnot(), RemoveDataLoader(), RemoveEntry(), RemoveFromHistory(), RemoveTopLevelSeqEntry(), ResetDataAndHistory(), ResetHistory(), ResetScope(), SelectNone(), SetKeepExternalAnnotsForEdit(), x_AttachAnnot(), x_AttachEntry(), x_GetBioseqHandleFromTSE(), x_GetBioseqHandlesSorted(), CAnnot_Collector::x_Initialize(), x_PopulateBioseq_HandleSet(), x_SelectSeq(), x_SelectSet(), and ~CScope_Impl().
|
private |
Definition at line 640 of file scope_impl.hpp.
Referenced by GetEditHandle(), RemoveDataLoader(), RemoveTopLevelSeqEntry(), ResetDataAndHistory(), ResetHistory(), ResetScope(), and x_GetDSInfo().
|
private |
Definition at line 635 of file scope_impl.hpp.
Referenced by GetScope(), and CScope::~CScope().
|
private |
Definition at line 658 of file scope_impl.hpp.
Referenced by GetKeepExternalAnnotsForEdit(), and SetKeepExternalAnnotsForEdit().
|
private |
Definition at line 642 of file scope_impl.hpp.
Referenced by x_GetBioseqHandlesSorted(), x_GetSynonyms(), x_GetTSESetWithAnnots(), and x_InitBioseq_Info().
|
private |
Definition at line 637 of file scope_impl.hpp.
Referenced by AddDataLoader(), AddDefaults(), AddSharedBioseq(), AddSharedSeq_annot(), AddSharedSeq_entry(), CDataSource_ScopeInfo::DetachScope(), GetObjectManager(), RemoveDataLoader(), x_AttachToOM(), and x_DetachFromOM().
|
private |
Definition at line 651 of file scope_impl.hpp.
Referenced by RemoveFromHistory(), ResetDataAndHistory(), ResetScope(), x_ClearAnnotCache(), x_ClearCacheOnEdit(), x_ClearCacheOnNewData(), x_ClearCacheOnNewDS(), x_ClearCacheOnRemoveData(), x_ClearCacheOnRemoveSeqId(), x_FindSeq_id_Info(), and x_GetSeq_id_Info().
|
mutableprivate |
Definition at line 652 of file scope_impl.hpp.
Referenced by x_FindSeq_id_Info(), x_GetAnnotRef_Info(), and x_GetSeq_id_Info().
|
private |
Definition at line 638 of file scope_impl.hpp.
Referenced by AddDataLoader(), AddDefaults(), AddDS(), AddDSBefore(), AddScope(), GetAccVer(), GetAccVers(), GetAllTSEs(), GetBulkIds(), GetCDDAnnots(), GetConstDS(), GetEditDS(), GetEditHandle(), GetFirstLoaderSource(), GetGi(), GetGis(), GetIds(), GetLabel(), GetLabels(), GetSeq_featHandle(), GetSequenceHash(), GetSequenceHashes(), GetSequenceLength(), GetSequenceLengths(), GetSequenceState(), GetSequenceStates(), GetSequenceType(), GetSequenceTypes(), GetTaxId(), GetTaxIds(), RemoveDataLoader(), RemoveTopLevelSeqEntry(), ResetScope(), x_GetBioseq_Lock(), x_GetBioseq_set_Lock(), x_GetBioseqHandlesSorted(), x_GetSeq_annot_Lock(), x_GetSeq_entry_Lock(), x_GetTSE_Lock(), x_GetTSESetWithBioseqAnnots(), x_GetTSESetWithOrphanAnnots(), and x_ResolveSeq_id().
|
private |
Definition at line 654 of file scope_impl.hpp.
Referenced by CreateTransaction(), GetTransaction(), IsTransactionActive(), and SetActiveTransaction().