Go to the documentation of this file.Go to the SVN repository for this file.
56 bool is_known =
false;
63 TCache::const_iterator iter = std::find(
m_Cache.begin(),
m_Cache.end(), gi);
class CGiCache provides a simple, thread-safe interface for storing the older or outdated versions of...
bool RecordKnown(const objects::CBioseq_Handle &handle)
Check if the record is in the cache.
static CGiCache & GetInstance()
retrieve a singleton.
static CRef< CGiCache > m_CacheInstance
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_ForceGi
return only a gi-based seq-id
const CSeq_id_Handle & GetSeq_id_Handle(void) const
Get handle of id used to obtain this bioseq handle.
CScope & GetScope(void) const
Get scope this handle belongs to.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define DEFINE_STATIC_FAST_MUTEX(id)
Define static fast mutex and initialize it.