NCBI C++ ToolKit
Biost_resid_graph_set_pntr_.hpp
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  */
27 
28 /// @file Biost_resid_graph_set_pntr_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/mmdb1/mmdb1.asn">mmdb1.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/mmdb1/mmdb1.def">mmdb1.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_MMDB1_BIOST_RESID_GRAPH_SET_PNTR_BASE_HPP
42 #define OBJECTS_MMDB1_BIOST_RESID_GRAPH_SET_PNTR_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
49 
51 
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
55 #endif
56 BEGIN_objects_SCOPE // namespace ncbi::objects::
57 
58 
59 // forward declarations
60 class CBiostruc_id;
61 
62 
63 // generated classes
64 
65 
66 /** @addtogroup dataspec_MMDB_Chemical_graph
67  *
68  * @{
69  */
70 
71 /////////////////////////////////////////////////////////////////////////////
72 ///
73 /// CBiostruc_residue_graph_set_pntr_Base --
74 ///
75 
77 {
79 public:
80  // constructor
82  // destructor
84 
85  // type info
87 
88  // types
91 
92  // member index
93  enum class E_memberIndex {
94  e__allMandatory = 0,
95  e_biostruc_residue_graph_set_id,
96  e_residue_graph_id
97  };
99 
100  // getters
101  // setters
102 
103  /// Check if a value has been assigned to Biostruc_residue_graph_set_id data member.
104  ///
105  /// Data member Biostruc_residue_graph_set_id is mandatory;
106  /// its type is defined as 'typedef CBiostruc_id TBiostruc_residue_graph_set_id'
107  /// @return
108  /// - true, if a value has been assigned.
109  /// - false, otherwise.
110  bool IsSetBiostruc_residue_graph_set_id(void) const;
111 
112  /// Check if it is safe to call GetBiostruc_residue_graph_set_id method.
113  ///
114  /// @return
115  /// - true, if the data member is getatable.
116  /// - false, otherwise.
117  bool CanGetBiostruc_residue_graph_set_id(void) const;
118 
119  /// Reset Biostruc_residue_graph_set_id data member.
120  void ResetBiostruc_residue_graph_set_id(void);
121 
122  /// Get the Biostruc_residue_graph_set_id member data.
123  ///
124  /// @return
125  /// Reference to the member data.
126  const TBiostruc_residue_graph_set_id& GetBiostruc_residue_graph_set_id(void) const;
127 
128  /// Assign a value to Biostruc_residue_graph_set_id data member.
129  ///
130  /// @param value
131  /// Reference to value.
132  void SetBiostruc_residue_graph_set_id(TBiostruc_residue_graph_set_id& value);
133 
134  /// Assign a value to Biostruc_residue_graph_set_id data member.
135  ///
136  /// @return
137  /// Reference to the data value.
138  TBiostruc_residue_graph_set_id& SetBiostruc_residue_graph_set_id(void);
139 
140  /// Check if a value has been assigned to Residue_graph_id data member.
141  ///
142  /// Data member Residue_graph_id is mandatory;
143  /// its type is defined as 'typedef CResidue_graph_id TResidue_graph_id'
144  /// @return
145  /// - true, if a value has been assigned.
146  /// - false, otherwise.
147  bool IsSetResidue_graph_id(void) const;
148 
149  /// Check if it is safe to call GetResidue_graph_id method.
150  ///
151  /// @return
152  /// - true, if the data member is getatable.
153  /// - false, otherwise.
154  bool CanGetResidue_graph_id(void) const;
155 
156  /// Reset Residue_graph_id data member.
157  void ResetResidue_graph_id(void);
158 
159  /// Get the Residue_graph_id member data.
160  ///
161  /// @return
162  /// Reference to the member data.
163  const TResidue_graph_id& GetResidue_graph_id(void) const;
164 
165  /// Assign a value to Residue_graph_id data member.
166  ///
167  /// @param value
168  /// Value to assign
169  void SetResidue_graph_id(const TResidue_graph_id& value);
170 
171  /// Assign a value to Residue_graph_id data member.
172  ///
173  /// @return
174  /// Reference to the data value.
175  TResidue_graph_id& SetResidue_graph_id(void);
176 
177  /// Reset the whole object
178  virtual void Reset(void);
179 
180 
181 private:
182  // Prohibit copy constructor and assignment operator
185 
186  // data
187  Uint4 m_set_State[1];
190 };
191 
192 /* @} */
193 
194 
195 
196 
197 
198 ///////////////////////////////////////////////////////////
199 ///////////////////// inline methods //////////////////////
200 ///////////////////////////////////////////////////////////
201 inline
203 {
204  return m_Biostruc_residue_graph_set_id.NotEmpty();
205 }
206 
207 inline
209 {
210  return true;
211 }
212 
213 inline
215 {
218  }
220 }
221 
222 inline
224 {
227  }
229 }
230 
231 inline
233 {
234  return ((m_set_State[0] & 0xc) != 0);
235 }
236 
237 inline
239 {
240  return IsSetResidue_graph_id();
241 }
242 
243 inline
245 {
247  m_set_State[0] &= ~0xc;
248 }
249 
250 inline
252 {
253  if (!CanGetResidue_graph_id()) {
254  ThrowUnassigned(1);
255  }
256  return m_Residue_graph_id;
257 }
258 
259 inline
261 {
263  m_set_State[0] |= 0xc;
264 }
265 
266 inline
268 {
269  m_set_State[0] |= 0x4;
270  return m_Residue_graph_id;
271 }
272 
273 ///////////////////////////////////////////////////////////
274 ////////////////// end of inline methods //////////////////
275 ///////////////////////////////////////////////////////////
276 
277 
278 
279 
280 
281 END_objects_SCOPE // namespace ncbi::objects::
282 
284 
285 
286 #endif // OBJECTS_MMDB1_BIOST_RESID_GRAPH_SET_PNTR_BASE_HPP
User-defined methods of the data storage class.
CBiostruc_id –.
Definition: Biostruc_id.hpp:66
CBiostruc_residue_graph_set_pntr_Base –.
CRef –.
Definition: ncbiobj.hpp:618
CResidue_graph_id –.
Base class for all serializable objects.
Definition: serialbase.hpp:150
void ThrowUnassigned(TMemberIndex index) const
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
#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_MMDB1_EXPORT
Definition: ncbi_export.h:624
void ResetBiostruc_residue_graph_set_id(void)
Reset Biostruc_residue_graph_set_id data member.
CRef< TBiostruc_residue_graph_set_id > m_Biostruc_residue_graph_set_id
CBiostruc_residue_graph_set_pntr_Base(const CBiostruc_residue_graph_set_pntr_Base &)
CBiostruc_residue_graph_set_pntr_Base & operator=(const CBiostruc_residue_graph_set_pntr_Base &)
const TResidue_graph_id & GetResidue_graph_id(void) const
Get the Residue_graph_id member data.
const TBiostruc_residue_graph_set_id & GetBiostruc_residue_graph_set_id(void) const
Get the Biostruc_residue_graph_set_id member data.
bool IsSetBiostruc_residue_graph_set_id(void) const
Check if a value has been assigned to Biostruc_residue_graph_set_id data member.
TBiostruc_residue_graph_set_id & SetBiostruc_residue_graph_set_id(void)
Assign a value to Biostruc_residue_graph_set_id data member.
bool CanGetBiostruc_residue_graph_set_id(void) const
Check if it is safe to call GetBiostruc_residue_graph_set_id method.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
void ResetResidue_graph_id(void)
Reset Residue_graph_id data member.
TResidue_graph_id & SetResidue_graph_id(void)
Assign a value to Residue_graph_id data member.
bool IsSetResidue_graph_id(void) const
Check if a value has been assigned to Residue_graph_id data member.
bool CanGetResidue_graph_id(void) const
Check if it is safe to call GetResidue_graph_id method.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Mon Jun 10 04:52:10 2024 by modify_doxy.py rev. 669887