52 _ASSERT(annot.x_GetInfo().GetInfo(index).IsGraph());
67 if (
info.IsRemoved() ) {
69 "CSeq_graph_Handle: removed");
71 return info.GetGraph();
91 processor.
run(
new TCommand(*
this));
99 processor.
run(
new TCommand(*
this, new_obj));
bool IsRemoved(void) const
CMDReturn< CMD >::TReturn run(CMD *cmd)
Base class for all object manager exceptions.
void x_ClearAnnotCache(void)
void Remove(TAnnotIndex index)
const CAnnotObject_Info & GetInfo(TAnnotIndex index) const
void Update(TAnnotIndex index)
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void x_RealRemove(void) const
Remove the Seq-graph from Seq-annot.
const CSeq_annot_Handle & GetAnnot(void) const
Get an annotation handle for the current seq-graph.
CConstRef< CSeq_graph > GetSeq_graph(void) const
Get constant reference to the current seq-graph.
CSeq_annot_Info & x_GetInfo(void) const
void x_RealReplace(const CSeq_graph &new_obj) const
Replace the Seq-graph with new Seq-graph object.
CSeq_annot_Handle m_Annot
CScope_Impl & x_GetScopeImpl(void) const
const CSeq_graph & x_GetSeq_graph(void) const
bool IsRemoved(void) const
Return true if this Seq-graph was removed already.
void Remove(void) const
Remove the Seq-graph from Seq-annot.
void Update(void) const
Update index after manual modification of the object.
CSeq_annot_EditHandle GetEditHandle(void) const
Get 'edit' version of handle.
const CSeq_annot_Info & x_GetInfo(void) const
void Replace(const CSeq_graph &new_obj) const
Replace the Seq-graph with new Seq-graph object.
CConstRef< C > ConstRef(const C *object)
Template function for conversion of const object pointer to CConstRef.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.