Lines Matching refs:idh

89 static int s_ScoreForDBSource(const CSeq_id_Handle& idh)  in s_ScoreForDBSource()  argument
91 CConstRef<CSeq_id> id = idh.GetSeqId(); in s_ScoreForDBSource()
106 static const CSeq_id_Handle s_FindBestChoiceForDbsource(const CSeq_id_Handle& idh, CScope& scope) in s_FindBestChoiceForDbsource() argument
108 return FindBestChoice(scope.GetIds(idh), s_ScoreForDBSource); in s_FindBestChoiceForDbsource()
112 static void s_AddToUniqueIdList(const CSeq_id_Handle& idh, vector<CSeq_id_Handle>& unique_ids) in s_AddToUniqueIdList() argument
115 if (idh == *it) { in s_AddToUniqueIdList()
119 unique_ids.push_back(idh); in s_AddToUniqueIdList()
143 CSeq_id_Handle idh = FindBestChoice(ids, s_ScoreForDBSource); in x_GatherInfo() local
145 if (!idh) { in x_GatherInfo()
150 switch (idh.Which()) { in x_GatherInfo()
152 m_DBSource.push_back(x_FormatDBSourceID(idh)); in x_GatherInfo()
157 m_DBSource.push_back(x_FormatDBSourceID(idh)); in x_GatherInfo()
162 m_DBSource.push_back(x_FormatDBSourceID(idh)); in x_GatherInfo()
167 m_DBSource.push_back(x_FormatDBSourceID(idh)); in x_GatherInfo()
172 if (!NStr::StartsWith(idh.GetSeqId()->GetGeneral().GetDb(), "PID")) { in x_GatherInfo()
233 m_DBSource.push_back(x_FormatDBSourceID(idh)); in x_GatherInfo()
406 CSeq_id_Handle idh = CSeq_id_Handle::GetHandle(**it); in x_AddSPBlock() local
407 CSeq_id_Handle best = sequence::GetId(idh, ctx.GetScope(), in x_AddSPBlock()
410 best = idh; in x_AddSPBlock()
546 string CDBSourceItem::x_FormatDBSourceID(const CSeq_id_Handle& idh) in x_FormatDBSourceID() argument
553 if (idh) { in x_FormatDBSourceID()
554 id = idh.GetSeqId(); in x_FormatDBSourceID()
625 …xt()->Config().GetHTMLFormatter().FormatNucId(ht, *idh.GetSeqId(), GetContext()->GetScope().GetGi( in x_FormatDBSourceID()
630 GetContext()->Config().GetHTMLFormatter().FormatNucId(ht, *idh.GetSeqId(), in x_FormatDBSourceID()
631 GI_TO(TIntId, GetContext()->GetScope().GetGi(idh)), acc); in x_FormatDBSourceID()
637 const TIntId gi = GetContext()->GetScope().GetGi(idh); in x_FormatDBSourceID()