CBioseq_Handle::TBioseqStateFlags CBioseq_Handle::GetState(void) const { if ( !m_Info ) { return fState_no_data; } TBioseqStateFlags state = x_GetScopeInfo().GetBlobState(); if ( m_Info->HasBioseq() ) { state |= m_Info->GetTSE_Handle().x_GetTSE_Info().GetBlobState(); } if ( state == 0 && !*this ) { state |= fState_not_found; } return state; }
bool CTSE_Handle::OrderedBefore(const CTSE_Handle& tse) const { if ( *this == tse ) { return false; } const CTSE_ScopeInfo& info1 = x_GetScopeInfo(); const CTSE_ScopeInfo& info2 = tse.x_GetScopeInfo(); CTSE_ScopeInfo::TBlobOrder order1 = info1.GetBlobOrder(); CTSE_ScopeInfo::TBlobOrder order2 = info2.GetBlobOrder(); if ( order1 != order2 ) { _ASSERT((order1 < order2) || (order2 < order1)); return order1 < order2; } if ( info1.GetLoadIndex() != info2.GetLoadIndex() ) { return info1.GetLoadIndex() < info2.GetLoadIndex(); } return *this < tse; }
bool CBioseq_EditHandle::x_RealRemoveId(const CSeq_id_Handle& id) const { return x_GetScopeInfo().RemoveId(id); }
void CBioseq_EditHandle::x_RealResetId(void) const { x_GetScopeInfo().ResetId(); }
bool CTSE_Handle::CanBeEdited(void) const { return x_GetScopeInfo().CanBeEdited(); }
bool CTSE_Handle::AddUsedTSE(const CTSE_Handle& tse) const { return x_GetScopeInfo().AddUsedTSE(tse.m_TSE); }