NCBI C++ ToolKit
Seq_inst.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: Seq_inst.hpp 75340 2016-11-08 13:43:55Z bollin $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Author: .......
27  *
28  * File Description:
29  * .......
30  *
31  * Remark:
32  * This code was originally generated by application DATATOOL
33  * using specifications from the data definition file
34  * 'seq.asn'.
35  */
36 
37 #ifndef OBJECTS_SEQ_SEQ_INST_HPP
38 #define OBJECTS_SEQ_SEQ_INST_HPP
39 
40 
41 // generated includes
43 
44 // generated classes
45 
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
51 {
53 public:
54  // constructor
55  CSeq_inst(void);
56  // destructor
57  ~CSeq_inst(void);
58 
59  // check molecule type for nucleotide or protein
60  static bool IsNa(EMol mol);
61  static bool IsAa(EMol mol);
62 
63  bool IsNa(void) const;
64  bool IsAa(void) const;
65 
66  // translate EMol to string
67  static string GetMoleculeClass(EMol mol);
68 
69  bool ConvertDeltaToRaw();
70 
71 private:
72  // Prohibit copy constructor and assignment operator
75 
76 };
77 
78 
79 
80 /////////////////// CSeq_inst inline methods
81 
82 // constructor
83 inline
85 {
86 }
87 
88 
89 inline
91 {
92  return (mol == eMol_dna ||
93  mol == eMol_rna ||
94  mol == eMol_na);
95 }
96 
97 
98 inline
100 {
101  return (mol == eMol_aa);
102 }
103 
104 
105 inline
106 bool CSeq_inst::IsNa(void) const
107 {
108  return IsNa(GetMol());
109 }
110 
111 
112 inline
113 bool CSeq_inst::IsAa(void) const
114 {
115  return IsAa(GetMol());
116 }
117 
118 
119 /////////////////// end of CSeq_inst inline methods
120 
121 
122 END_objects_SCOPE // namespace ncbi::objects::
123 
125 
126 #endif // OBJECTS_SEQ_SEQ_INST_HPP
127 /* Original file checksum: lines: 93, chars: 2363, CRC32: 8de74472 */
Data storage class.
*** Instances of sequences ******************************* * the sequence data itself
Definition: Seq_inst_.hpp:79
CSeq_inst(const CSeq_inst &value)
CSeq_inst & operator=(const CSeq_inst &value)
bool IsAa(void) const
Definition: Seq_inst.hpp:113
CSeq_inst(void)
Definition: Seq_inst.hpp:84
CSeq_inst_Base Tparent
Definition: Seq_inst.hpp:52
bool IsNa(void) const
Definition: Seq_inst.hpp:106
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_SEQ_EXPORT
Definition: ncbi_export.h:825
TMol GetMol(void) const
Get the Mol member data.
Definition: Seq_inst_.hpp:612
EMol
molecule class in living organism
Definition: Seq_inst_.hpp:108
@ eMol_na
just a nucleic acid
Definition: Seq_inst_.hpp:113
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sun Apr 14 05:25:30 2024 by modify_doxy.py rev. 669887