NCBI C++ Toolkit Cross Reference


/* $Id$ * =========================================================================== * * 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. * * =========================================================================== * */ /// @file Biostruc_align_.hpp /// Data storage class. /// /// This file was generated by application DATATOOL /// using the following specifications: /// 'ncbimime.asn'. /// /// ATTENTION: /// Don't edit or commit this file into CVS as this file will /// be overridden (by DATATOOL) without warning! #ifndef OBJECTS_NCBIMIME_BIOSTRUC_ALIGN_BASE_HPP #define OBJECTS_NCBIMIME_BIOSTRUC_ALIGN_BASE_HPP // standard includes #include <serial/serialbase.hpp> // generated includes #include <list> BEGIN_NCBI_SCOPE #ifndef BEGIN_objects_SCOPE # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) # define END_objects_SCOPE END_SCOPE(objects) #endif BEGIN_objects_SCOPE // namespace ncbi::objects:: // forward declarations class CBiostruc; class CBiostruc_annot_set; class CCn3d_style_dictionary; class CCn3d_user_annotations; class CSeq_annot; class CSeq_entry; // generated classes ///////////////////////////////////////////////////////////////////////////// class NCBI_NCBIMIME_EXPORT CBiostruc_align_Base : public CSerialObject { typedef CSerialObject Tparent; public: // constructor CBiostruc_align_Base(void); // destructor virtual ~CBiostruc_align_Base(void); // type info DECLARE_INTERNAL_TYPE_INFO(); // types typedef CBiostruc TMaster; typedef list< CRef< CBiostruc > > TSlaves; typedef CBiostruc_annot_set TAlignments; typedef list< CRef< CSeq_entry > > TSequences; typedef list< CRef< CSeq_annot > > TSeqalign; typedef CCn3d_style_dictionary TStyle_dictionary; typedef CCn3d_user_annotations TUser_annotations; // getters // setters /// mandatory /// typedef CBiostruc TMaster /// Check whether the Master data member has been assigned a value. bool IsSetMaster(void) const; /// Check whether it is safe or not to call GetMaster method. bool CanGetMaster(void) const; void ResetMaster(void); const TMaster& GetMaster(void) const; void SetMaster(TMaster& value); TMaster& SetMaster(void); /// mandatory /// typedef list< CRef< CBiostruc > > TSlaves /// Check whether the Slaves data member has been assigned a value. bool IsSetSlaves(void) const; /// Check whether it is safe or not to call GetSlaves method. bool CanGetSlaves(void) const; void ResetSlaves(void); const TSlaves& GetSlaves(void) const; TSlaves& SetSlaves(void); /// structure alignments /// mandatory /// typedef CBiostruc_annot_set TAlignments /// Check whether the Alignments data member has been assigned a value. bool IsSetAlignments(void) const; /// Check whether it is safe or not to call GetAlignments method. bool CanGetAlignments(void) const; void ResetAlignments(void); const TAlignments& GetAlignments(void) const; void SetAlignments(TAlignments& value); TAlignments& SetAlignments(void); /// sequences /// mandatory /// typedef list< CRef< CSeq_entry > > TSequences /// Check whether the Sequences data member has been assigned a value. bool IsSetSequences(void) const; /// Check whether it is safe or not to call GetSequences method. bool CanGetSequences(void) const; void ResetSequences(void); const TSequences& GetSequences(void) const; TSequences& SetSequences(void); /// mandatory /// typedef list< CRef< CSeq_annot > > TSeqalign /// Check whether the Seqalign data member has been assigned a value. bool IsSetSeqalign(void) const; /// Check whether it is safe or not to call GetSeqalign method. bool CanGetSeqalign(void) const; void ResetSeqalign(void); const TSeqalign& GetSeqalign(void) const; TSeqalign& SetSeqalign(void); /// optional /// typedef CCn3d_style_dictionary TStyle_dictionary /// Check whether the Style_dictionary data member has been assigned a value. bool IsSetStyle_dictionary(void) const; /// Check whether it is safe or not to call GetStyle_dictionary method. bool CanGetStyle_dictionary(void) const; void ResetStyle_dictionary(void); const TStyle_dictionary& GetStyle_dictionary(void) const; void SetStyle_dictionary(TStyle_dictionary& value); TStyle_dictionary& SetStyle_dictionary(void); /// optional /// typedef CCn3d_user_annotations TUser_annotations /// Check whether the User_annotations data member has been assigned a value. bool IsSetUser_annotations(void) const; /// Check whether it is safe or not to call GetUser_annotations method. bool CanGetUser_annotations(void) const; void ResetUser_annotations(void); const TUser_annotations& GetUser_annotations(void) const; void SetUser_annotations(TUser_annotations& value); TUser_annotations& SetUser_annotations(void); /// Reset the whole object virtual void Reset(void); private: // Prohibit copy constructor and assignment operator CBiostruc_align_Base(const CBiostruc_align_Base&); CBiostruc_align_Base& operator=(const CBiostruc_align_Base&); // data Uint4 m_set_State[1]; CRef< TMaster > m_Master; list< CRef< CBiostruc > > m_Slaves; CRef< TAlignments > m_Alignments; list< CRef< CSeq_entry > > m_Sequences; list< CRef< CSeq_annot > > m_Seqalign; CRef< TStyle_dictionary > m_Style_dictionary; CRef< TUser_annotations > m_User_annotations; }; /////////////////////////////////////////////////////////// ///////////////////// inline methods ////////////////////// /////////////////////////////////////////////////////////// inline bool CBiostruc_align_Base::IsSetMaster(void) const { return m_Master.NotEmpty(); } inline bool CBiostruc_align_Base::CanGetMaster(void) const { return true; } inline const CBiostruc_align_Base::TMaster& CBiostruc_align_Base::GetMaster(void) const { if ( !m_Master ) { const_cast<CBiostruc_align_Base*>(this)->ResetMaster(); } return (*m_Master); } inline CBiostruc_align_Base::TMaster& CBiostruc_align_Base::SetMaster(void) { if ( !m_Master ) { ResetMaster(); } return (*m_Master); } inline bool CBiostruc_align_Base::IsSetSlaves(void) const { return ((m_set_State[0] & 0xc) != 0); } inline bool CBiostruc_align_Base::CanGetSlaves(void) const { return true; } inline const CBiostruc_align_Base::TSlaves& CBiostruc_align_Base::GetSlaves(void) const { return m_Slaves; } inline CBiostruc_align_Base::TSlaves& CBiostruc_align_Base::SetSlaves(void) { m_set_State[0] |= 0x4; return m_Slaves; } inline bool CBiostruc_align_Base::IsSetAlignments(void) const { return m_Alignments.NotEmpty(); } inline bool CBiostruc_align_Base::CanGetAlignments(void) const { return true; } inline const CBiostruc_align_Base::TAlignments& CBiostruc_align_Base::GetAlignments(void) const { if ( !m_Alignments ) { const_cast<CBiostruc_align_Base*>(this)->ResetAlignments(); } return (*m_Alignments); } inline CBiostruc_align_Base::TAlignments& CBiostruc_align_Base::SetAlignments(void) { if ( !m_Alignments ) { ResetAlignments(); } return (*m_Alignments); } inline bool CBiostruc_align_Base::IsSetSequences(void) const { return ((m_set_State[0] & 0xc0) != 0); } inline bool CBiostruc_align_Base::CanGetSequences(void) const { return true; } inline const CBiostruc_align_Base::TSequences& CBiostruc_align_Base::GetSequences(void) const { return m_Sequences; } inline CBiostruc_align_Base::TSequences& CBiostruc_align_Base::SetSequences(void) { m_set_State[0] |= 0x40; return m_Sequences; } inline bool CBiostruc_align_Base::IsSetSeqalign(void) const { return ((m_set_State[0] & 0x300) != 0); } inline bool CBiostruc_align_Base::CanGetSeqalign(void) const { return true; } inline const CBiostruc_align_Base::TSeqalign& CBiostruc_align_Base::GetSeqalign(void) const { return m_Seqalign; } inline CBiostruc_align_Base::TSeqalign& CBiostruc_align_Base::SetSeqalign(void) { m_set_State[0] |= 0x100; return m_Seqalign; } inline bool CBiostruc_align_Base::IsSetStyle_dictionary(void) const { return m_Style_dictionary.NotEmpty(); } inline bool CBiostruc_align_Base::CanGetStyle_dictionary(void) const { return IsSetStyle_dictionary(); } inline const CBiostruc_align_Base::TStyle_dictionary& CBiostruc_align_Base::GetStyle_dictionary(void) const { if (!CanGetStyle_dictionary()) { ThrowUnassigned(5); } return (*m_Style_dictionary); } inline bool CBiostruc_align_Base::IsSetUser_annotations(void) const { return m_User_annotations.NotEmpty(); } inline bool CBiostruc_align_Base::CanGetUser_annotations(void) const { return IsSetUser_annotations(); } inline const CBiostruc_align_Base::TUser_annotations& CBiostruc_align_Base::GetUser_annotations(void) const { if (!CanGetUser_annotations()) { ThrowUnassigned(6); } return (*m_User_annotations); } /////////////////////////////////////////////////////////// ////////////////// end of inline methods ////////////////// /////////////////////////////////////////////////////////// END_objects_SCOPE // namespace ncbi::objects:: END_NCBI_SCOPE #endif // OBJECTS_NCBIMIME_BIOSTRUC_ALIGN_BASE_HPP

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.