seq_graph_handle.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
- /*
- * ===========================================================================
- * PRODUCTION $Log: seq_graph_handle.hpp,v $
- * PRODUCTION Revision 1000.0 2004/06/01 19:25:47 gouriano
- * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1
- * PRODUCTION
- * ===========================================================================
- */
- #ifndef SEQ_GRAPH_HANDLE__HPP
- #define SEQ_GRAPH_HANDLE__HPP
- /* $Id: seq_graph_handle.hpp,v 1000.0 2004/06/01 19:25:47 gouriano Exp $
- * ===========================================================================
- *
- * PUBLIC DOMAIN NOTICE
- * National Center for Biotechnology Information
- *
- * This software/database is a "United States Government Work" under the
- * terms of the United States Copyright Act. It was written as part of
- * the author's official duties as a United States Government employee and
- * thus cannot be copyrighted. This software/database is freely available
- * to the public for use. The National Library of Medicine and the U.S.
- * Government have not placed any restriction on its use or reproduction.
- *
- * Although all reasonable efforts have been taken to ensure the accuracy
- * and reliability of the software and data, the NLM and the U.S.
- * Government do not and cannot warrant the performance or results that
- * may be obtained by using this software or data. The NLM and the U.S.
- * Government disclaim all warranties, express or implied, including
- * warranties of performance, merchantability or fitness for any particular
- * purpose.
- *
- * Please cite the author in any work or product based on this material.
- *
- * ===========================================================================
- *
- * Author: Aleksey Grichenko, Eugene Vasilchenko
- *
- * File Description:
- * Seq-graph handle
- *
- */
- #include <corelib/ncbiobj.hpp>
- #include <objmgr/impl/heap_scope.hpp>
- #include <objects/seqres/Seq_graph.hpp>
- #include <objmgr/impl/seq_annot_info.hpp>
- BEGIN_NCBI_SCOPE
- BEGIN_SCOPE(objects)
- class CScope;
- class CSeq_annot_Handle;
- class CSeq_graph_Handle
- {
- public:
- CSeq_graph_Handle(void);
- CSeq_graph_Handle(CScope& scope,
- const CSeq_annot_Info& annot_info,
- size_t index);
- ~CSeq_graph_Handle(void);
- CSeq_annot_Handle GetAnnot(void) const;
- CConstRef<CSeq_graph> GetSeq_graph(void) const;
- // Mappings for CSeq_graph methods
- bool IsSetTitle(void) const;
- const string& GetTitle(void) const;
- bool IsSetComment(void) const;
- const string& GetComment(void) const;
- const CSeq_loc& GetLoc(void) const;
- bool IsSetTitle_x(void) const;
- const string& GetTitle_x(void) const;
- bool IsSetTitle_y(void) const;
- const string& GetTitle_y(void) const;
- bool IsSetComp(void) const;
- TSeqPos GetComp(void) const;
- bool IsSetA(void) const;
- double GetA(void) const;
- bool IsSetB(void) const;
- double GetB(void) const;
- TSeqPos GetNumval(void) const;
- const CSeq_graph::TGraph& GetGraph(void) const;
- private:
- const CSeq_graph& x_GetSeq_graph(void) const;
- CHeapScope m_Scope;
- CConstRef<CSeq_annot_Info> m_Annot;
- size_t m_Index;
- };
- inline
- bool CSeq_graph_Handle::IsSetTitle(void) const
- {
- return x_GetSeq_graph().IsSetTitle();
- }
- inline
- const string& CSeq_graph_Handle::GetTitle(void) const
- {
- return x_GetSeq_graph().GetTitle();
- }
- inline
- bool CSeq_graph_Handle::IsSetComment(void) const
- {
- return x_GetSeq_graph().IsSetComment();
- }
- inline
- const string& CSeq_graph_Handle::GetComment(void) const
- {
- return x_GetSeq_graph().GetComment();
- }
- inline
- const CSeq_loc& CSeq_graph_Handle::GetLoc(void) const
- {
- return x_GetSeq_graph().GetLoc();
- }
- inline
- bool CSeq_graph_Handle::IsSetTitle_x(void) const
- {
- return x_GetSeq_graph().IsSetTitle_x();
- }
- inline
- const string& CSeq_graph_Handle::GetTitle_x(void) const
- {
- return x_GetSeq_graph().GetTitle_x();
- }
- inline
- bool CSeq_graph_Handle::IsSetTitle_y(void) const
- {
- return x_GetSeq_graph().IsSetTitle_y();
- }
- inline
- const string& CSeq_graph_Handle::GetTitle_y(void) const
- {
- return x_GetSeq_graph().GetTitle_y();
- }
- inline
- bool CSeq_graph_Handle::IsSetComp(void) const
- {
- return x_GetSeq_graph().IsSetComp();
- }
- inline
- TSeqPos CSeq_graph_Handle::GetComp(void) const
- {
- return x_GetSeq_graph().GetComp();
- }
- inline
- bool CSeq_graph_Handle::IsSetA(void) const
- {
- return x_GetSeq_graph().IsSetA();
- }
- inline
- double CSeq_graph_Handle::GetA(void) const
- {
- return x_GetSeq_graph().GetA();
- }
- inline
- bool CSeq_graph_Handle::IsSetB(void) const
- {
- return x_GetSeq_graph().IsSetB();
- }
- inline
- double CSeq_graph_Handle::GetB(void) const
- {
- return x_GetSeq_graph().GetB();
- }
- inline
- TSeqPos CSeq_graph_Handle::GetNumval(void) const
- {
- return x_GetSeq_graph().GetNumval();
- }
- inline
- const CSeq_graph::TGraph& CSeq_graph_Handle::GetGraph(void) const
- {
- return x_GetSeq_graph().GetGraph();
- }
- END_SCOPE(objects)
- END_NCBI_SCOPE
- /*
- * ---------------------------------------------------------------------------
- * $Log: seq_graph_handle.hpp,v $
- * Revision 1000.0 2004/06/01 19:25:47 gouriano
- * PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1
- *
- * Revision 1.1 2004/05/04 18:06:06 grichenk
- * Initial revision
- *
- *
- * ===========================================================================
- */
- #endif // SEQ_GRAPH_HANDLE__HPP