NCBI C++ ToolKit
ID2S_Bioseq_set_Ids_.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 ID2S_Bioseq_set_Ids_.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/seqsplit/seqsplit.asn">seqsplit.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/seqsplit/seqsplit.def">seqsplit.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_SEQSPLIT_ID2S_BIOSEQ_SET_IDS_BASE_HPP
42 #define OBJECTS_SEQSPLIT_ID2S_BIOSEQ_SET_IDS_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
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 // generated classes
60 
61 
62 /** @addtogroup dataspec_NCBI_Seq_split
63  *
64  * @{
65  */
66 
67 /////////////////////////////////////////////////////////////////////////////
68 ///
69 /// CID2S_Bioseq_set_Ids_Base --
70 ///
71 
73 {
75 public:
76  // constructor
78  // destructor
79  virtual ~CID2S_Bioseq_set_Ids_Base(void);
80 
81  // type info
83 
84  // types
85  typedef list< int > Tdata;
86 
87  // getters
88  // setters
89 
90  /// Check if a value has been assigned to data member.
91  ///
92  /// Data member is mandatory;
93  /// its type is defined as 'typedef list< int > Tdata'
94  /// @return
95  /// - true, if a value has been assigned.
96  /// - false, otherwise.
97  bool IsSet(void) const;
98 
99  /// Check if it is safe to call Get method.
100  ///
101  /// @return
102  /// - true, if the data member is getatable.
103  /// - false, otherwise.
104  bool CanGet(void) const;
105 
106  /// Reset data member.
107  void Reset(void);
108 
109  /// Get the member data.
110  ///
111  /// @return
112  /// Reference to the member data.
113  const Tdata& Get(void) const;
114 
115  /// Assign a value to data member.
116  ///
117  /// @return
118  /// Reference to the data value.
119  Tdata& Set(void);
120 
121  /// Conversion operator to 'const Tdata' type.
122  operator const Tdata& (void) const;
123  /// Conversion operator to 'Tdata' type.
124  operator Tdata& (void);
125 
126 
127 
128 private:
129  // Prohibit copy constructor and assignment operator
132 
133  // data
134  Uint4 m_set_State[1];
135  list< int > m_data;
136 };
137 
138 /* @} */
139 
140 
141 
142 
143 
144 ///////////////////////////////////////////////////////////
145 ///////////////////// inline methods //////////////////////
146 ///////////////////////////////////////////////////////////
147 inline
149 {
150  return ((m_set_State[0] & 0x3) != 0);
151 }
152 
153 inline
155 {
156  return true;
157 }
158 
159 inline
161 {
162  return m_data;
163 }
164 
165 inline
167 {
168  m_set_State[0] |= 0x1;
169  return m_data;
170 }
171 
172 inline
173 CID2S_Bioseq_set_Ids_Base::operator const CID2S_Bioseq_set_Ids_Base::Tdata& (void) const
174 {
175  return m_data;
176 }
177 
178 inline
179 CID2S_Bioseq_set_Ids_Base::operator CID2S_Bioseq_set_Ids_Base::Tdata& (void)
180 {
181  m_set_State[0] |= 0x1;
182  return m_data;
183 }
184 
185 ///////////////////////////////////////////////////////////
186 ////////////////// end of inline methods //////////////////
187 ///////////////////////////////////////////////////////////
188 
189 
190 
191 
192 
193 END_objects_SCOPE // namespace ncbi::objects::
194 
196 
197 
198 #endif // OBJECTS_SEQSPLIT_ID2S_BIOSEQ_SET_IDS_BASE_HPP
CID2S_Bioseq_set_Ids_Base –.
Base class for all serializable objects.
Definition: serialbase.hpp:150
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_ID2_EXPORT
Definition: ncbi_export.h:552
Tdata & Set(void)
Assign a value to data member.
bool IsSet(void) const
Check if a value has been assigned to data member.
const Tdata & Get(void) const
Get the member data.
CID2S_Bioseq_set_Ids_Base & operator=(const CID2S_Bioseq_set_Ids_Base &)
CID2S_Bioseq_set_Ids_Base(const CID2S_Bioseq_set_Ids_Base &)
bool CanGet(void) const
Check if it is safe to call Get method.
const TYPE & Get(const CNamedParameterList *param)
Modified on Thu Nov 30 04:55:22 2023 by modify_doxy.py rev. 669887