NCBI C++ ToolKit
Spliced_exon_.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id$
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  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'seqalign.asn'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
50 
51 BEGIN_objects_SCOPE // namespace ncbi::objects::
52 
53 
54 // generated classes
55 
57 {
58  if ( !m_Product_start ) {
59  m_Product_start.Reset(new TProduct_start());
60  return;
61  }
62  (*m_Product_start).Reset();
63 }
64 
66 {
67  m_Product_start.Reset(&value);
68 }
69 
71 {
72  if ( !m_Product_end ) {
73  m_Product_end.Reset(new TProduct_end());
74  return;
75  }
76  (*m_Product_end).Reset();
77 }
78 
80 {
81  m_Product_end.Reset(&value);
82 }
83 
85 {
86  m_Product_id.Reset();
87 }
88 
90 {
91  m_Product_id.Reset(&value);
92 }
93 
95 {
96  if ( !m_Product_id )
97  m_Product_id.Reset(new TProduct_id());
98  return (*m_Product_id);
99 }
100 
102 {
103  m_Genomic_id.Reset();
104 }
105 
107 {
108  m_Genomic_id.Reset(&value);
109 }
110 
112 {
113  if ( !m_Genomic_id )
114  m_Genomic_id.Reset(new TGenomic_id());
115  return (*m_Genomic_id);
116 }
117 
119 {
120  m_Parts.clear();
121  m_set_State[0] &= ~0x30000;
122 }
123 
125 {
126  m_Scores.Reset();
127 }
128 
130 {
131  m_Scores.Reset(&value);
132 }
133 
135 {
136  if ( !m_Scores )
137  m_Scores.Reset(new TScores());
138  return (*m_Scores);
139 }
140 
142 {
143  m_Acceptor_before_exon.Reset();
144 }
145 
147 {
149 }
150 
152 {
153  if ( !m_Acceptor_before_exon )
155  return (*m_Acceptor_before_exon);
156 }
157 
159 {
160  m_Donor_after_exon.Reset();
161 }
162 
164 {
165  m_Donor_after_exon.Reset(&value);
166 }
167 
169 {
170  if ( !m_Donor_after_exon )
172  return (*m_Donor_after_exon);
173 }
174 
176 {
177  m_Ext.clear();
178  m_set_State[0] &= ~0xc000000;
179 }
180 
182 {
187  ResetProduct_id();
188  ResetGenomic_id();
191  ResetParts();
192  ResetScores();
195  ResetPartial();
196  ResetExt();
197 }
198 
200 {
201  SET_CLASS_MODULE("NCBI-Seqalign");
202  ADD_NAMED_REF_MEMBER("product-start", m_Product_start, CProduct_pos);
203  ADD_NAMED_REF_MEMBER("product-end", m_Product_end, CProduct_pos);
204  ADD_NAMED_STD_MEMBER("genomic-start", m_Genomic_start)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
205  ADD_NAMED_STD_MEMBER("genomic-end", m_Genomic_end)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
206  ADD_NAMED_REF_MEMBER("product-id", m_Product_id, CSeq_id)->SetOptional();
207  ADD_NAMED_REF_MEMBER("genomic-id", m_Genomic_id, CSeq_id)->SetOptional();
208  ADD_NAMED_ENUM_MEMBER("product-strand", m_Product_strand, ENa_strand)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
209  ADD_NAMED_ENUM_MEMBER("genomic-strand", m_Genomic_strand, ENa_strand)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
210  ADD_NAMED_MEMBER("parts", m_Parts, STL_list, (STL_CRef, (CLASS, (CSpliced_exon_chunk))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
211  ADD_NAMED_REF_MEMBER("scores", m_Scores, CScore_set)->SetOptional();
212  ADD_NAMED_REF_MEMBER("acceptor-before-exon", m_Acceptor_before_exon, CSplice_site)->SetOptional();
213  ADD_NAMED_REF_MEMBER("donor-after-exon", m_Donor_after_exon, CSplice_site)->SetOptional();
214  ADD_NAMED_STD_MEMBER("partial", m_Partial)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
215  ADD_NAMED_MEMBER("ext", m_Ext, STL_list, (STL_CRef, (CLASS, (CUser_object))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
216  info->RandomOrder();
217  info->CodeVersion(22400);
218  info->DataSpec(ncbi::EDataSpec::eASN);
219 }
221 
222 // constructor
224  : m_Genomic_start(0), m_Genomic_end(0), m_Product_strand((ncbi::objects::ENa_strand)(0)), m_Genomic_strand((ncbi::objects::ENa_strand)(0)), m_Partial(0)
225 {
226  memset(m_set_State,0,sizeof(m_set_State));
227  if ( !IsAllocatedInPool() ) {
230  }
231 }
232 
233 // destructor
235 {
236 }
237 
238 
239 
240 END_objects_SCOPE // namespace ncbi::objects::
241 
243 
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Spliced-exon", CSpliced_exon)
User-defined methods of the data storage class.
CScore_set –.
Definition: Score_set.hpp:66
CSplice_site –.
Definition: Splice_site.hpp:66
CSpliced_exon_chunk –.
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:342
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
Definition: serialimpl.hpp:345
#define SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
Definition: serialimpl.hpp:351
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
Definition: ncbiobj.hpp:461
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
CRef< TDonor_after_exon > m_Donor_after_exon
void ResetGenomic_end(void)
Reset Genomic_end data member.
list< CRef< CUser_object > > m_Ext
TGenomic_id & SetGenomic_id(void)
Assign a value to Genomic_id data member.
CRef< TProduct_id > m_Product_id
TScores & SetScores(void)
Assign a value to Scores data member.
TProduct_end & SetProduct_end(void)
Assign a value to Product_end data member.
void ResetGenomic_id(void)
Reset Genomic_id data member.
void ResetGenomic_start(void)
Reset Genomic_start data member.
void ResetParts(void)
Reset Parts data member.
void ResetPartial(void)
Reset Partial data member.
void ResetExt(void)
Reset Ext data member.
list< CRef< CSpliced_exon_chunk > > m_Parts
void ResetProduct_start(void)
Reset Product_start data member.
CSplice_site TDonor_after_exon
void ResetProduct_end(void)
Reset Product_end data member.
CRef< TGenomic_id > m_Genomic_id
virtual void Reset(void)
Reset the whole object.
TProduct_id & SetProduct_id(void)
Assign a value to Product_id data member.
void ResetGenomic_strand(void)
Reset Genomic_strand data member.
CProduct_pos TProduct_start
CProduct_pos TProduct_end
void ResetDonor_after_exon(void)
Reset Donor_after_exon data member.
CRef< TAcceptor_before_exon > m_Acceptor_before_exon
CRef< TScores > m_Scores
void ResetProduct_id(void)
Reset Product_id data member.
TDonor_after_exon & SetDonor_after_exon(void)
Assign a value to Donor_after_exon data member.
void ResetAcceptor_before_exon(void)
Reset Acceptor_before_exon data member.
TProduct_start & SetProduct_start(void)
Assign a value to Product_start data member.
virtual ~CSpliced_exon_Base(void)
TAcceptor_before_exon & SetAcceptor_before_exon(void)
Assign a value to Acceptor_before_exon data member.
CSplice_site TAcceptor_before_exon
CRef< TProduct_end > m_Product_end
void ResetProduct_strand(void)
Reset Product_strand data member.
void ResetScores(void)
Reset Scores data member.
CRef< TProduct_start > m_Product_start
ENa_strand
strand of nucleic acid
Definition: Na_strand_.hpp:64
static MDB_envinfo info
Definition: mdb_load.c:37
Magic spell ;-) needed for some weird compilers... very empiric.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Apr 17 13:08:03 2024 by modify_doxy.py rev. 669887