NCBI C++ ToolKit
Seq_data_.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 Seq_data_.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/seq/seq.asn">seq.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/seq/seq.def">seq.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_SEQ_SEQ_DATA_BASE_HPP
42 #define OBJECTS_SEQ_SEQ_DATA_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <objects/seq/IUPACaa.hpp>
49 #include <objects/seq/IUPACna.hpp>
50 #include <objects/seq/NCBI2na.hpp>
51 #include <objects/seq/NCBI4na.hpp>
52 #include <objects/seq/NCBI8aa.hpp>
53 #include <objects/seq/NCBI8na.hpp>
54 #include <objects/seq/NCBIeaa.hpp>
55 #include <objects/seq/NCBIpaa.hpp>
56 #include <objects/seq/NCBIpna.hpp>
58 
60 
61 #ifndef BEGIN_objects_SCOPE
62 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
63 # define END_objects_SCOPE END_SCOPE(objects)
64 #endif
65 BEGIN_objects_SCOPE // namespace ncbi::objects::
66 
67 
68 // forward declarations
69 class CSeq_gap;
70 
71 
72 // generated classes
73 
74 
75 /** @addtogroup dataspec_NCBI_Sequence
76  *
77  * @{
78  */
79 
80 /////////////////////////////////////////////////////////////////////////////
81 ///*** Various internal sequence representations ************
82 ///* all are controlled, fixed length forms
83 /// sequence representations
84 ///
85 /// CSeq_data_Base --
86 ///
87 
89 {
91 public:
92  // constructor
93  CSeq_data_Base(void);
94  // destructor
95  virtual ~CSeq_data_Base(void);
96 
97  // type info
99 
100 
101  /// Choice variants.
102  enum E_Choice {
103  e_not_set = 0, ///< No variant selected
104  e_Iupacna, ///< IUPAC 1 letter nuc acid code
105  e_Iupacaa, ///< IUPAC 1 letter amino acid code
106  e_Ncbi2na, ///< 2 bit nucleic acid code
107  e_Ncbi4na, ///< 4 bit nucleic acid code
108  e_Ncbi8na, ///< 8 bit extended nucleic acid code
109  e_Ncbipna, ///< nucleic acid probabilities
110  e_Ncbi8aa, ///< 8 bit extended amino acid codes
111  e_Ncbieaa, ///< extended ASCII 1 letter aa codes
112  e_Ncbipaa, ///< amino acid probabilities
113  e_Ncbistdaa, ///< consecutive codes for std aas
114  e_Gap ///< gap types
115  };
116  /// Maximum+1 value of the choice variant enumerator.
118  e_MaxChoice = 12 ///< == e_Gap+1
119  };
120 
121  /// Reset the whole object
122  virtual void Reset(void);
123 
124  /// Reset the selection (set it to e_not_set).
125  virtual void ResetSelection(void);
126 
127  /// Which variant is currently selected.
128  ///
129  /// @return
130  /// Choice state enumerator.
131  E_Choice Which(void) const;
132 
133  /// Verify selection, throw exception if it differs from the expected.
134  ///
135  /// @param index
136  /// Expected selection.
137  void CheckSelected(E_Choice index) const;
138 
139  /// Throw 'InvalidSelection' exception.
140  ///
141  /// @param index
142  /// Expected selection.
143  NCBI_NORETURN void ThrowInvalidSelection(E_Choice index) const;
144 
145  /// Retrieve selection name (for diagnostic purposes).
146  ///
147  /// @param index
148  /// One of possible selection states.
149  /// @return
150  /// Name string.
151  static string SelectionName(E_Choice index);
152 
153  /// Select the requested variant if needed.
154  ///
155  /// @param index
156  /// New selection state.
157  /// @param reset
158  /// Flag that defines the resetting of the variant data. The data will
159  /// be reset if either the current selection differs from the new one,
160  /// or the flag is set to eDoResetVariant.
162  /// Select the requested variant if needed,
163  /// allocating CObject variants from memory pool.
164  void Select(E_Choice index,
165  EResetVariant reset,
166  CObjectMemoryPool* pool);
167 
168  // types
179  typedef CSeq_gap TGap;
180 
181  // getters
182  // setters
183 
184 
185  /// Check if variant Iupacna is selected.
186  ///
187  /// Iupacna type is defined as 'typedef CIUPACna TIupacna'.
188  /// @return
189  /// - true, if the variant is selected.
190  /// - false, otherwise.
191  bool IsIupacna(void) const;
192 
193  /// Get the variant data.
194  ///
195  /// @return
196  /// Reference to the data.
197  const TIupacna& GetIupacna(void) const;
198 
199  /// Select the variant.
200  ///
201  /// @return
202  /// Reference to the variant data.
203  TIupacna& SetIupacna(void);
204 
205  /// Select the variant and set its data.
206  ///
207  /// @param value
208  /// Variant data.
209  void SetIupacna(const TIupacna& value);
210 
211 
212  /// Check if variant Iupacaa is selected.
213  ///
214  /// Iupacaa type is defined as 'typedef CIUPACaa TIupacaa'.
215  /// @return
216  /// - true, if the variant is selected.
217  /// - false, otherwise.
218  bool IsIupacaa(void) const;
219 
220  /// Get the variant data.
221  ///
222  /// @return
223  /// Reference to the data.
224  const TIupacaa& GetIupacaa(void) const;
225 
226  /// Select the variant.
227  ///
228  /// @return
229  /// Reference to the variant data.
230  TIupacaa& SetIupacaa(void);
231 
232  /// Select the variant and set its data.
233  ///
234  /// @param value
235  /// Variant data.
236  void SetIupacaa(const TIupacaa& value);
237 
238 
239  /// Check if variant Ncbi2na is selected.
240  ///
241  /// Ncbi2na type is defined as 'typedef CNCBI2na TNcbi2na'.
242  /// @return
243  /// - true, if the variant is selected.
244  /// - false, otherwise.
245  bool IsNcbi2na(void) const;
246 
247  /// Get the variant data.
248  ///
249  /// @return
250  /// Reference to the data.
251  const TNcbi2na& GetNcbi2na(void) const;
252 
253  /// Select the variant.
254  ///
255  /// @return
256  /// Reference to the variant data.
257  TNcbi2na& SetNcbi2na(void);
258 
259 
260  /// Check if variant Ncbi4na is selected.
261  ///
262  /// Ncbi4na type is defined as 'typedef CNCBI4na TNcbi4na'.
263  /// @return
264  /// - true, if the variant is selected.
265  /// - false, otherwise.
266  bool IsNcbi4na(void) const;
267 
268  /// Get the variant data.
269  ///
270  /// @return
271  /// Reference to the data.
272  const TNcbi4na& GetNcbi4na(void) const;
273 
274  /// Select the variant.
275  ///
276  /// @return
277  /// Reference to the variant data.
278  TNcbi4na& SetNcbi4na(void);
279 
280 
281  /// Check if variant Ncbi8na is selected.
282  ///
283  /// Ncbi8na type is defined as 'typedef CNCBI8na TNcbi8na'.
284  /// @return
285  /// - true, if the variant is selected.
286  /// - false, otherwise.
287  bool IsNcbi8na(void) const;
288 
289  /// Get the variant data.
290  ///
291  /// @return
292  /// Reference to the data.
293  const TNcbi8na& GetNcbi8na(void) const;
294 
295  /// Select the variant.
296  ///
297  /// @return
298  /// Reference to the variant data.
299  TNcbi8na& SetNcbi8na(void);
300 
301 
302  /// Check if variant Ncbipna is selected.
303  ///
304  /// Ncbipna type is defined as 'typedef CNCBIpna TNcbipna'.
305  /// @return
306  /// - true, if the variant is selected.
307  /// - false, otherwise.
308  bool IsNcbipna(void) const;
309 
310  /// Get the variant data.
311  ///
312  /// @return
313  /// Reference to the data.
314  const TNcbipna& GetNcbipna(void) const;
315 
316  /// Select the variant.
317  ///
318  /// @return
319  /// Reference to the variant data.
320  TNcbipna& SetNcbipna(void);
321 
322 
323  /// Check if variant Ncbi8aa is selected.
324  ///
325  /// Ncbi8aa type is defined as 'typedef CNCBI8aa TNcbi8aa'.
326  /// @return
327  /// - true, if the variant is selected.
328  /// - false, otherwise.
329  bool IsNcbi8aa(void) const;
330 
331  /// Get the variant data.
332  ///
333  /// @return
334  /// Reference to the data.
335  const TNcbi8aa& GetNcbi8aa(void) const;
336 
337  /// Select the variant.
338  ///
339  /// @return
340  /// Reference to the variant data.
341  TNcbi8aa& SetNcbi8aa(void);
342 
343 
344  /// Check if variant Ncbieaa is selected.
345  ///
346  /// Ncbieaa type is defined as 'typedef CNCBIeaa TNcbieaa'.
347  /// @return
348  /// - true, if the variant is selected.
349  /// - false, otherwise.
350  bool IsNcbieaa(void) const;
351 
352  /// Get the variant data.
353  ///
354  /// @return
355  /// Reference to the data.
356  const TNcbieaa& GetNcbieaa(void) const;
357 
358  /// Select the variant.
359  ///
360  /// @return
361  /// Reference to the variant data.
362  TNcbieaa& SetNcbieaa(void);
363 
364  /// Select the variant and set its data.
365  ///
366  /// @param value
367  /// Variant data.
368  void SetNcbieaa(const TNcbieaa& value);
369 
370 
371  /// Check if variant Ncbipaa is selected.
372  ///
373  /// Ncbipaa type is defined as 'typedef CNCBIpaa TNcbipaa'.
374  /// @return
375  /// - true, if the variant is selected.
376  /// - false, otherwise.
377  bool IsNcbipaa(void) const;
378 
379  /// Get the variant data.
380  ///
381  /// @return
382  /// Reference to the data.
383  const TNcbipaa& GetNcbipaa(void) const;
384 
385  /// Select the variant.
386  ///
387  /// @return
388  /// Reference to the variant data.
389  TNcbipaa& SetNcbipaa(void);
390 
391 
392  /// Check if variant Ncbistdaa is selected.
393  ///
394  /// Ncbistdaa type is defined as 'typedef CNCBIstdaa TNcbistdaa'.
395  /// @return
396  /// - true, if the variant is selected.
397  /// - false, otherwise.
398  bool IsNcbistdaa(void) const;
399 
400  /// Get the variant data.
401  ///
402  /// @return
403  /// Reference to the data.
404  const TNcbistdaa& GetNcbistdaa(void) const;
405 
406  /// Select the variant.
407  ///
408  /// @return
409  /// Reference to the variant data.
410  TNcbistdaa& SetNcbistdaa(void);
411 
412 
413  /// Check if variant Gap is selected.
414  ///
415  /// Gap type is defined as 'typedef CSeq_gap TGap'.
416  /// @return
417  /// - true, if the variant is selected.
418  /// - false, otherwise.
419  bool IsGap(void) const;
420 
421  /// Get the variant data.
422  ///
423  /// @return
424  /// Reference to the data.
425  const TGap& GetGap(void) const;
426 
427  /// Select the variant.
428  ///
429  /// @return
430  /// Reference to the variant data.
431  TGap& SetGap(void);
432  /// Select the variant and set its data.
433  ///
434  /// @param value
435  /// Reference to the data.
436  void SetGap(TGap& value);
437 
438 
439 private:
440  // copy constructor and assignment operator
443  // choice state
445  // helper methods
446  void DoSelect(E_Choice index, CObjectMemoryPool* pool = 0);
447 
448  static const char* const sm_SelectionNames[];
449  // data
450  union {
451  NCBI_NS_NCBI::CUnionBuffer<TIupacna> m_Iupacna;
452  NCBI_NS_NCBI::CUnionBuffer<TIupacaa> m_Iupacaa;
453  NCBI_NS_NCBI::CUnionBuffer<TNcbi2na> m_Ncbi2na;
454  NCBI_NS_NCBI::CUnionBuffer<TNcbi4na> m_Ncbi4na;
455  NCBI_NS_NCBI::CUnionBuffer<TNcbi8na> m_Ncbi8na;
456  NCBI_NS_NCBI::CUnionBuffer<TNcbipna> m_Ncbipna;
457  NCBI_NS_NCBI::CUnionBuffer<TNcbi8aa> m_Ncbi8aa;
458  NCBI_NS_NCBI::CUnionBuffer<TNcbieaa> m_Ncbieaa;
459  NCBI_NS_NCBI::CUnionBuffer<TNcbipaa> m_Ncbipaa;
460  NCBI_NS_NCBI::CUnionBuffer<TNcbistdaa> m_Ncbistdaa;
461  NCBI_NS_NCBI::CSerialObject *m_object;
462  };
463 };
464 
465 /* @} */
466 
467 
468 
469 
470 
471 ///////////////////////////////////////////////////////////
472 ///////////////////// inline methods //////////////////////
473 ///////////////////////////////////////////////////////////
474 inline
476 {
477  return m_choice;
478 }
479 
480 inline
482 {
483  if ( m_choice != index )
484  ThrowInvalidSelection(index);
485 }
486 
487 inline
488 void CSeq_data_Base::Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset, NCBI_NS_NCBI::CObjectMemoryPool* pool)
489 {
490  if ( reset == NCBI_NS_NCBI::eDoResetVariant || m_choice != index ) {
491  if ( m_choice != e_not_set )
492  ResetSelection();
493  DoSelect(index, pool);
494  }
495 }
496 
497 inline
498 void CSeq_data_Base::Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset)
499 {
500  Select(index, reset, 0);
501 }
502 
503 inline
505 {
506  return m_choice == e_Iupacna;
507 }
508 
509 inline
511 {
513  return *m_Iupacna;
514 }
515 
516 inline
518 {
520  return *m_Iupacna;
521 }
522 
523 inline
525 {
526  return m_choice == e_Iupacaa;
527 }
528 
529 inline
531 {
533  return *m_Iupacaa;
534 }
535 
536 inline
538 {
540  return *m_Iupacaa;
541 }
542 
543 inline
545 {
546  return m_choice == e_Ncbi2na;
547 }
548 
549 inline
551 {
553  return *m_Ncbi2na;
554 }
555 
556 inline
558 {
560  return *m_Ncbi2na;
561 }
562 
563 inline
565 {
566  return m_choice == e_Ncbi4na;
567 }
568 
569 inline
571 {
573  return *m_Ncbi4na;
574 }
575 
576 inline
578 {
580  return *m_Ncbi4na;
581 }
582 
583 inline
585 {
586  return m_choice == e_Ncbi8na;
587 }
588 
589 inline
591 {
593  return *m_Ncbi8na;
594 }
595 
596 inline
598 {
600  return *m_Ncbi8na;
601 }
602 
603 inline
605 {
606  return m_choice == e_Ncbipna;
607 }
608 
609 inline
611 {
613  return *m_Ncbipna;
614 }
615 
616 inline
618 {
620  return *m_Ncbipna;
621 }
622 
623 inline
625 {
626  return m_choice == e_Ncbi8aa;
627 }
628 
629 inline
631 {
633  return *m_Ncbi8aa;
634 }
635 
636 inline
638 {
640  return *m_Ncbi8aa;
641 }
642 
643 inline
645 {
646  return m_choice == e_Ncbieaa;
647 }
648 
649 inline
651 {
653  return *m_Ncbieaa;
654 }
655 
656 inline
658 {
660  return *m_Ncbieaa;
661 }
662 
663 inline
665 {
666  return m_choice == e_Ncbipaa;
667 }
668 
669 inline
671 {
673  return *m_Ncbipaa;
674 }
675 
676 inline
678 {
680  return *m_Ncbipaa;
681 }
682 
683 inline
685 {
686  return m_choice == e_Ncbistdaa;
687 }
688 
689 inline
691 {
693  return *m_Ncbistdaa;
694 }
695 
696 inline
698 {
700  return *m_Ncbistdaa;
701 }
702 
703 inline
704 bool CSeq_data_Base::IsGap(void) const
705 {
706  return m_choice == e_Gap;
707 }
708 
709 ///////////////////////////////////////////////////////////
710 ////////////////// end of inline methods //////////////////
711 ///////////////////////////////////////////////////////////
712 
713 
714 
715 
716 
717 END_objects_SCOPE // namespace ncbi::objects::
718 
720 
721 
722 #endif // OBJECTS_SEQ_SEQ_DATA_BASE_HPP
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.
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.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
bool IsGap(char ch)
CIUPACaa –.
Definition: IUPACaa.hpp:66
CIUPACna –.
Definition: IUPACna.hpp:66
CNCBI2na –.
Definition: NCBI2na.hpp:66
CNCBI4na –.
Definition: NCBI4na.hpp:66
CNCBI8aa –.
Definition: NCBI8aa.hpp:66
CNCBI8na –.
Definition: NCBI8na.hpp:66
CNCBIeaa –.
Definition: NCBIeaa.hpp:66
CNCBIpaa –.
Definition: NCBIpaa.hpp:66
CNCBIpna –.
Definition: NCBIpna.hpp:66
CNCBIstdaa –.
Definition: NCBIstdaa.hpp:66
*** Various internal sequence representations ************ * all are controlled, fixed length forms s...
Definition: Seq_data_.hpp:89
Base class for all serializable objects.
Definition: serialbase.hpp:150
EResetVariant
Definition: serialbase.hpp:76
@ eDoResetVariant
Definition: serialbase.hpp:77
@ eDoNotResetVariant
Definition: serialbase.hpp:78
#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
const TIupacaa & GetIupacaa(void) const
Get the variant data.
Definition: Seq_data_.hpp:530
NCBI_NS_NCBI::CUnionBuffer< TNcbistdaa > m_Ncbistdaa
Definition: Seq_data_.hpp:460
NCBI_NS_NCBI::CUnionBuffer< TIupacna > m_Iupacna
Definition: Seq_data_.hpp:451
NCBI_NS_NCBI::CUnionBuffer< TNcbipna > m_Ncbipna
Definition: Seq_data_.hpp:456
CNCBI2na TNcbi2na
Definition: Seq_data_.hpp:171
CNCBI8aa TNcbi8aa
Definition: Seq_data_.hpp:175
bool IsNcbipna(void) const
Check if variant Ncbipna is selected.
Definition: Seq_data_.hpp:604
TNcbipna & SetNcbipna(void)
Select the variant.
Definition: Seq_data_.hpp:617
NCBI_NS_NCBI::CUnionBuffer< TNcbi4na > m_Ncbi4na
Definition: Seq_data_.hpp:454
CSeq_gap TGap
Definition: Seq_data_.hpp:179
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
Definition: Seq_data_.cpp:161
bool IsNcbieaa(void) const
Check if variant Ncbieaa is selected.
Definition: Seq_data_.hpp:644
bool IsNcbi8aa(void) const
Check if variant Ncbi8aa is selected.
Definition: Seq_data_.hpp:624
NCBI_NS_NCBI::CUnionBuffer< TNcbi8na > m_Ncbi8na
Definition: Seq_data_.hpp:455
bool IsIupacaa(void) const
Check if variant Iupacaa is selected.
Definition: Seq_data_.hpp:524
TNcbi8aa & SetNcbi8aa(void)
Select the variant.
Definition: Seq_data_.hpp:637
const TIupacna & GetIupacna(void) const
Get the variant data.
Definition: Seq_data_.hpp:510
bool IsNcbistdaa(void) const
Check if variant Ncbistdaa is selected.
Definition: Seq_data_.hpp:684
const TNcbipna & GetNcbipna(void) const
Get the variant data.
Definition: Seq_data_.hpp:610
const TNcbipaa & GetNcbipaa(void) const
Get the variant data.
Definition: Seq_data_.hpp:670
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
Definition: Seq_data_.hpp:117
TNcbipaa & SetNcbipaa(void)
Select the variant.
Definition: Seq_data_.hpp:677
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
Definition: Seq_data_.cpp:57
const TNcbi8aa & GetNcbi8aa(void) const
Get the variant data.
Definition: Seq_data_.hpp:630
CSerialObject Tparent
Definition: Seq_data_.hpp:90
TNcbieaa & SetNcbieaa(void)
Select the variant.
Definition: Seq_data_.hpp:657
CSeq_data_Base & operator=(const CSeq_data_Base &)
E_Choice
Choice variants.
Definition: Seq_data_.hpp:102
CSeq_data_Base(const CSeq_data_Base &)
NCBI_NS_NCBI::CUnionBuffer< TNcbipaa > m_Ncbipaa
Definition: Seq_data_.hpp:459
bool IsNcbi4na(void) const
Check if variant Ncbi4na is selected.
Definition: Seq_data_.hpp:564
NCBI_NS_NCBI::CUnionBuffer< TNcbipna > m_Ncbipna
Definition: Seq_data_.hpp:456
bool IsNcbi8na(void) const
Check if variant Ncbi8na is selected.
Definition: Seq_data_.hpp:584
CNCBIstdaa TNcbistdaa
Definition: Seq_data_.hpp:178
CNCBI4na TNcbi4na
Definition: Seq_data_.hpp:172
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TIupacna & SetIupacna(void)
Select the variant.
Definition: Seq_data_.hpp:517
NCBI_NS_NCBI::CUnionBuffer< TNcbieaa > m_Ncbieaa
Definition: Seq_data_.hpp:458
NCBI_NS_NCBI::CSerialObject * m_object
Definition: Seq_data_.hpp:461
NCBI_NS_NCBI::CUnionBuffer< TNcbi8na > m_Ncbi8na
Definition: Seq_data_.hpp:455
NCBI_NS_NCBI::CUnionBuffer< TNcbi8aa > m_Ncbi8aa
Definition: Seq_data_.hpp:457
NCBI_NS_NCBI::CUnionBuffer< TNcbi8aa > m_Ncbi8aa
Definition: Seq_data_.hpp:457
CNCBI8na TNcbi8na
Definition: Seq_data_.hpp:173
DECLARE_INTERNAL_TYPE_INFO()
const TNcbieaa & GetNcbieaa(void) const
Get the variant data.
Definition: Seq_data_.hpp:650
bool IsNcbipaa(void) const
Check if variant Ncbipaa is selected.
Definition: Seq_data_.hpp:664
NCBI_NS_NCBI::CUnionBuffer< TIupacna > m_Iupacna
Definition: Seq_data_.hpp:451
const TNcbistdaa & GetNcbistdaa(void) const
Get the variant data.
Definition: Seq_data_.hpp:690
TNcbi8na & SetNcbi8na(void)
Select the variant.
Definition: Seq_data_.hpp:597
NCBI_NS_NCBI::CUnionBuffer< TNcbi2na > m_Ncbi2na
Definition: Seq_data_.hpp:453
E_Choice m_choice
Definition: Seq_data_.hpp:444
NCBI_NS_NCBI::CUnionBuffer< TNcbi2na > m_Ncbi2na
Definition: Seq_data_.hpp:453
TNcbistdaa & SetNcbistdaa(void)
Select the variant.
Definition: Seq_data_.hpp:697
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
const TNcbi4na & GetNcbi4na(void) const
Get the variant data.
Definition: Seq_data_.hpp:570
CIUPACna TIupacna
Definition: Seq_data_.hpp:169
TNcbi2na & SetNcbi2na(void)
Select the variant.
Definition: Seq_data_.hpp:557
const TNcbi2na & GetNcbi2na(void) const
Get the variant data.
Definition: Seq_data_.hpp:550
NCBI_NS_NCBI::CUnionBuffer< TIupacaa > m_Iupacaa
Definition: Seq_data_.hpp:452
NCBI_NS_NCBI::CUnionBuffer< TNcbi4na > m_Ncbi4na
Definition: Seq_data_.hpp:454
CNCBIpaa TNcbipaa
Definition: Seq_data_.hpp:177
CNCBIpna TNcbipna
Definition: Seq_data_.hpp:174
bool IsGap(void) const
Check if variant Gap is selected.
Definition: Seq_data_.hpp:704
CIUPACaa TIupacaa
Definition: Seq_data_.hpp:170
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
Definition: Seq_data_.hpp:481
NCBI_NS_NCBI::CUnionBuffer< TNcbistdaa > m_Ncbistdaa
Definition: Seq_data_.hpp:460
NCBI_NS_NCBI::CUnionBuffer< TNcbipaa > m_Ncbipaa
Definition: Seq_data_.hpp:459
bool IsNcbi2na(void) const
Check if variant Ncbi2na is selected.
Definition: Seq_data_.hpp:544
TNcbi4na & SetNcbi4na(void)
Select the variant.
Definition: Seq_data_.hpp:577
const TNcbi8na & GetNcbi8na(void) const
Get the variant data.
Definition: Seq_data_.hpp:590
NCBI_NS_NCBI::CUnionBuffer< TIupacaa > m_Iupacaa
Definition: Seq_data_.hpp:452
TIupacaa & SetIupacaa(void)
Select the variant.
Definition: Seq_data_.hpp:537
NCBI_NS_NCBI::CUnionBuffer< TNcbieaa > m_Ncbieaa
Definition: Seq_data_.hpp:458
bool IsIupacna(void) const
Check if variant Iupacna is selected.
Definition: Seq_data_.hpp:504
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
Definition: Seq_data_.cpp:99
E_Choice Which(void) const
Which variant is currently selected.
Definition: Seq_data_.hpp:475
CNCBIeaa TNcbieaa
Definition: Seq_data_.hpp:176
@ e_not_set
No variant selected.
Definition: Seq_data_.hpp:103
@ e_Ncbipna
nucleic acid probabilities
Definition: Seq_data_.hpp:109
@ e_Gap
gap types
Definition: Seq_data_.hpp:114
@ e_Ncbieaa
extended ASCII 1 letter aa codes
Definition: Seq_data_.hpp:111
@ e_Ncbistdaa
consecutive codes for std aas
Definition: Seq_data_.hpp:113
@ e_Ncbi2na
2 bit nucleic acid code
Definition: Seq_data_.hpp:106
@ e_Iupacna
IUPAC 1 letter nuc acid code.
Definition: Seq_data_.hpp:104
@ e_Ncbipaa
amino acid probabilities
Definition: Seq_data_.hpp:112
@ e_Ncbi8na
8 bit extended nucleic acid code
Definition: Seq_data_.hpp:108
@ e_Ncbi4na
4 bit nucleic acid code
Definition: Seq_data_.hpp:107
@ e_Iupacaa
IUPAC 1 letter amino acid code.
Definition: Seq_data_.hpp:105
@ e_Ncbi8aa
8 bit extended amino acid codes
Definition: Seq_data_.hpp:110
@ e_not_set
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sat Apr 13 11:45:24 2024 by modify_doxy.py rev. 669887