NCBI C++ ToolKit
Xpressratio_result_.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 Xpressratio_result_.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/algo/ms/formats/pepxml/pepXML.xsd">pepXML.xsd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/algo/ms/formats/pepxml/pepXML.def">pepXML.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 ALGO_MS_FORMATS_PEPXML_XPRESSRATIO_RESULT_BASE_HPP
42 #define ALGO_MS_FORMATS_PEPXML_XPRESSRATIO_RESULT_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <string>
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_pepXML
63  *
64  * @{
65  */
66 
67 /////////////////////////////////////////////////////////////////////////////
68 ///Quantitation
69 ///
70 /// CXpressratio_result_Base --
71 ///
72 
74 {
76 public:
77  // constructor
79  // destructor
80  virtual ~CXpressratio_result_Base(void);
81 
82  // type info
84 
85  /////////////////////////////////////////////////////////////////////////////
86  ///
87  /// C_Attlist --
88  ///
89 
91  {
93  public:
94  // constructor
95  C_Attlist(void);
96  // destructor
97  ~C_Attlist(void);
98 
99  // type info
101 
102  // types
103  typedef int TLight_firstscan;
104  typedef int TLight_lastscan;
105  typedef double TLight_mass;
106  typedef int THeavy_firstscan;
107  typedef int THeavy_lastscan;
108  typedef double THeavy_mass;
109  typedef double TMass_tol;
110  typedef string TRatio;
111  typedef string THeavy2light_ratio;
112  typedef double TLight_area;
113  typedef double THeavy_area;
114  typedef double TDecimal_ratio;
115 
116  // member index
117  enum class E_memberIndex {
118  e__allMandatory = 0,
119  e_light_firstscan,
120  e_light_lastscan,
121  e_light_mass,
122  e_heavy_firstscan,
123  e_heavy_lastscan,
124  e_heavy_mass,
125  e_mass_tol,
126  e_ratio,
127  e_heavy2light_ratio,
128  e_light_area,
129  e_heavy_area,
130  e_decimal_ratio
131  };
133 
134  // getters
135  // setters
136 
137  /// Check if a value has been assigned to Light_firstscan data member.
138  ///
139  /// Data member Light_firstscan is mandatory;
140  /// its type is defined as 'typedef int TLight_firstscan'
141  /// @return
142  /// - true, if a value has been assigned.
143  /// - false, otherwise.
144  bool IsSetLight_firstscan(void) const;
145 
146  /// Check if it is safe to call GetLight_firstscan method.
147  ///
148  /// @return
149  /// - true, if the data member is getatable.
150  /// - false, otherwise.
151  bool CanGetLight_firstscan(void) const;
152 
153  /// Reset Light_firstscan data member.
154  void ResetLight_firstscan(void);
155 
156  /// Get the Light_firstscan member data.
157  ///
158  /// @return
159  /// Copy of the member data.
160  TLight_firstscan GetLight_firstscan(void) const;
161 
162  /// Assign a value to Light_firstscan data member.
163  ///
164  /// @param value
165  /// Value to assign
166  void SetLight_firstscan(TLight_firstscan value);
167 
168  /// Assign a value to Light_firstscan data member.
169  ///
170  /// @return
171  /// Reference to the data value.
172  TLight_firstscan& SetLight_firstscan(void);
173 
174  /// Check if a value has been assigned to Light_lastscan data member.
175  ///
176  /// Data member Light_lastscan is mandatory;
177  /// its type is defined as 'typedef int TLight_lastscan'
178  /// @return
179  /// - true, if a value has been assigned.
180  /// - false, otherwise.
181  bool IsSetLight_lastscan(void) const;
182 
183  /// Check if it is safe to call GetLight_lastscan method.
184  ///
185  /// @return
186  /// - true, if the data member is getatable.
187  /// - false, otherwise.
188  bool CanGetLight_lastscan(void) const;
189 
190  /// Reset Light_lastscan data member.
191  void ResetLight_lastscan(void);
192 
193  /// Get the Light_lastscan member data.
194  ///
195  /// @return
196  /// Copy of the member data.
197  TLight_lastscan GetLight_lastscan(void) const;
198 
199  /// Assign a value to Light_lastscan data member.
200  ///
201  /// @param value
202  /// Value to assign
203  void SetLight_lastscan(TLight_lastscan value);
204 
205  /// Assign a value to Light_lastscan data member.
206  ///
207  /// @return
208  /// Reference to the data value.
209  TLight_lastscan& SetLight_lastscan(void);
210 
211  /// Check if a value has been assigned to Light_mass data member.
212  ///
213  /// Data member Light_mass is mandatory;
214  /// its type is defined as 'typedef double TLight_mass'
215  /// @return
216  /// - true, if a value has been assigned.
217  /// - false, otherwise.
218  bool IsSetLight_mass(void) const;
219 
220  /// Check if it is safe to call GetLight_mass method.
221  ///
222  /// @return
223  /// - true, if the data member is getatable.
224  /// - false, otherwise.
225  bool CanGetLight_mass(void) const;
226 
227  /// Reset Light_mass data member.
228  void ResetLight_mass(void);
229 
230  /// Get the Light_mass member data.
231  ///
232  /// @return
233  /// Copy of the member data.
234  TLight_mass GetLight_mass(void) const;
235 
236  /// Assign a value to Light_mass data member.
237  ///
238  /// @param value
239  /// Value to assign
240  void SetLight_mass(TLight_mass value);
241 
242  /// Assign a value to Light_mass data member.
243  ///
244  /// @return
245  /// Reference to the data value.
246  TLight_mass& SetLight_mass(void);
247 
248  /// Check if a value has been assigned to Heavy_firstscan data member.
249  ///
250  /// Data member Heavy_firstscan is mandatory;
251  /// its type is defined as 'typedef int THeavy_firstscan'
252  /// @return
253  /// - true, if a value has been assigned.
254  /// - false, otherwise.
255  bool IsSetHeavy_firstscan(void) const;
256 
257  /// Check if it is safe to call GetHeavy_firstscan method.
258  ///
259  /// @return
260  /// - true, if the data member is getatable.
261  /// - false, otherwise.
262  bool CanGetHeavy_firstscan(void) const;
263 
264  /// Reset Heavy_firstscan data member.
265  void ResetHeavy_firstscan(void);
266 
267  /// Get the Heavy_firstscan member data.
268  ///
269  /// @return
270  /// Copy of the member data.
271  THeavy_firstscan GetHeavy_firstscan(void) const;
272 
273  /// Assign a value to Heavy_firstscan data member.
274  ///
275  /// @param value
276  /// Value to assign
277  void SetHeavy_firstscan(THeavy_firstscan value);
278 
279  /// Assign a value to Heavy_firstscan data member.
280  ///
281  /// @return
282  /// Reference to the data value.
283  THeavy_firstscan& SetHeavy_firstscan(void);
284 
285  /// Check if a value has been assigned to Heavy_lastscan data member.
286  ///
287  /// Data member Heavy_lastscan is mandatory;
288  /// its type is defined as 'typedef int THeavy_lastscan'
289  /// @return
290  /// - true, if a value has been assigned.
291  /// - false, otherwise.
292  bool IsSetHeavy_lastscan(void) const;
293 
294  /// Check if it is safe to call GetHeavy_lastscan method.
295  ///
296  /// @return
297  /// - true, if the data member is getatable.
298  /// - false, otherwise.
299  bool CanGetHeavy_lastscan(void) const;
300 
301  /// Reset Heavy_lastscan data member.
302  void ResetHeavy_lastscan(void);
303 
304  /// Get the Heavy_lastscan member data.
305  ///
306  /// @return
307  /// Copy of the member data.
308  THeavy_lastscan GetHeavy_lastscan(void) const;
309 
310  /// Assign a value to Heavy_lastscan data member.
311  ///
312  /// @param value
313  /// Value to assign
314  void SetHeavy_lastscan(THeavy_lastscan value);
315 
316  /// Assign a value to Heavy_lastscan data member.
317  ///
318  /// @return
319  /// Reference to the data value.
320  THeavy_lastscan& SetHeavy_lastscan(void);
321 
322  /// Check if a value has been assigned to Heavy_mass data member.
323  ///
324  /// Data member Heavy_mass is mandatory;
325  /// its type is defined as 'typedef double THeavy_mass'
326  /// @return
327  /// - true, if a value has been assigned.
328  /// - false, otherwise.
329  bool IsSetHeavy_mass(void) const;
330 
331  /// Check if it is safe to call GetHeavy_mass method.
332  ///
333  /// @return
334  /// - true, if the data member is getatable.
335  /// - false, otherwise.
336  bool CanGetHeavy_mass(void) const;
337 
338  /// Reset Heavy_mass data member.
339  void ResetHeavy_mass(void);
340 
341  /// Get the Heavy_mass member data.
342  ///
343  /// @return
344  /// Copy of the member data.
345  THeavy_mass GetHeavy_mass(void) const;
346 
347  /// Assign a value to Heavy_mass data member.
348  ///
349  /// @param value
350  /// Value to assign
351  void SetHeavy_mass(THeavy_mass value);
352 
353  /// Assign a value to Heavy_mass data member.
354  ///
355  /// @return
356  /// Reference to the data value.
357  THeavy_mass& SetHeavy_mass(void);
358 
359  /// Check if a value has been assigned to Mass_tol data member.
360  ///
361  /// Data member Mass_tol is mandatory;
362  /// its type is defined as 'typedef double TMass_tol'
363  /// @return
364  /// - true, if a value has been assigned.
365  /// - false, otherwise.
366  bool IsSetMass_tol(void) const;
367 
368  /// Check if it is safe to call GetMass_tol method.
369  ///
370  /// @return
371  /// - true, if the data member is getatable.
372  /// - false, otherwise.
373  bool CanGetMass_tol(void) const;
374 
375  /// Reset Mass_tol data member.
376  void ResetMass_tol(void);
377 
378  /// Get the Mass_tol member data.
379  ///
380  /// @return
381  /// Copy of the member data.
382  TMass_tol GetMass_tol(void) const;
383 
384  /// Assign a value to Mass_tol data member.
385  ///
386  /// @param value
387  /// Value to assign
388  void SetMass_tol(TMass_tol value);
389 
390  /// Assign a value to Mass_tol data member.
391  ///
392  /// @return
393  /// Reference to the data value.
394  TMass_tol& SetMass_tol(void);
395 
396  /// Check if a value has been assigned to Ratio data member.
397  ///
398  /// Data member Ratio is mandatory;
399  /// its type is defined as 'typedef string TRatio'
400  /// @return
401  /// - true, if a value has been assigned.
402  /// - false, otherwise.
403  bool IsSetRatio(void) const;
404 
405  /// Check if it is safe to call GetRatio method.
406  ///
407  /// @return
408  /// - true, if the data member is getatable.
409  /// - false, otherwise.
410  bool CanGetRatio(void) const;
411 
412  /// Reset Ratio data member.
413  void ResetRatio(void);
414 
415  /// Get the Ratio member data.
416  ///
417  /// @return
418  /// Reference to the member data.
419  const TRatio& GetRatio(void) const;
420 
421  /// Assign a value to Ratio data member.
422  ///
423  /// @param value
424  /// Value to assign
425  void SetRatio(const TRatio& value);
426  void SetRatio(TRatio&& value);
427 
428  /// Assign a value to Ratio data member.
429  ///
430  /// @return
431  /// Reference to the data value.
432  TRatio& SetRatio(void);
433 
434  /// Check if a value has been assigned to Heavy2light_ratio data member.
435  ///
436  /// Data member Heavy2light_ratio is mandatory;
437  /// its type is defined as 'typedef string THeavy2light_ratio'
438  /// @return
439  /// - true, if a value has been assigned.
440  /// - false, otherwise.
441  bool IsSetHeavy2light_ratio(void) const;
442 
443  /// Check if it is safe to call GetHeavy2light_ratio method.
444  ///
445  /// @return
446  /// - true, if the data member is getatable.
447  /// - false, otherwise.
448  bool CanGetHeavy2light_ratio(void) const;
449 
450  /// Reset Heavy2light_ratio data member.
451  void ResetHeavy2light_ratio(void);
452 
453  /// Get the Heavy2light_ratio member data.
454  ///
455  /// @return
456  /// Reference to the member data.
457  const THeavy2light_ratio& GetHeavy2light_ratio(void) const;
458 
459  /// Assign a value to Heavy2light_ratio data member.
460  ///
461  /// @param value
462  /// Value to assign
463  void SetHeavy2light_ratio(const THeavy2light_ratio& value);
464  void SetHeavy2light_ratio(THeavy2light_ratio&& value);
465 
466  /// Assign a value to Heavy2light_ratio data member.
467  ///
468  /// @return
469  /// Reference to the data value.
470  THeavy2light_ratio& SetHeavy2light_ratio(void);
471 
472  /// Check if a value has been assigned to Light_area data member.
473  ///
474  /// Data member Light_area is mandatory;
475  /// its type is defined as 'typedef double TLight_area'
476  /// @return
477  /// - true, if a value has been assigned.
478  /// - false, otherwise.
479  bool IsSetLight_area(void) const;
480 
481  /// Check if it is safe to call GetLight_area method.
482  ///
483  /// @return
484  /// - true, if the data member is getatable.
485  /// - false, otherwise.
486  bool CanGetLight_area(void) const;
487 
488  /// Reset Light_area data member.
489  void ResetLight_area(void);
490 
491  /// Get the Light_area member data.
492  ///
493  /// @return
494  /// Copy of the member data.
495  TLight_area GetLight_area(void) const;
496 
497  /// Assign a value to Light_area data member.
498  ///
499  /// @param value
500  /// Value to assign
501  void SetLight_area(TLight_area value);
502 
503  /// Assign a value to Light_area data member.
504  ///
505  /// @return
506  /// Reference to the data value.
507  TLight_area& SetLight_area(void);
508 
509  /// Check if a value has been assigned to Heavy_area data member.
510  ///
511  /// Data member Heavy_area is mandatory;
512  /// its type is defined as 'typedef double THeavy_area'
513  /// @return
514  /// - true, if a value has been assigned.
515  /// - false, otherwise.
516  bool IsSetHeavy_area(void) const;
517 
518  /// Check if it is safe to call GetHeavy_area method.
519  ///
520  /// @return
521  /// - true, if the data member is getatable.
522  /// - false, otherwise.
523  bool CanGetHeavy_area(void) const;
524 
525  /// Reset Heavy_area data member.
526  void ResetHeavy_area(void);
527 
528  /// Get the Heavy_area member data.
529  ///
530  /// @return
531  /// Copy of the member data.
532  THeavy_area GetHeavy_area(void) const;
533 
534  /// Assign a value to Heavy_area data member.
535  ///
536  /// @param value
537  /// Value to assign
538  void SetHeavy_area(THeavy_area value);
539 
540  /// Assign a value to Heavy_area data member.
541  ///
542  /// @return
543  /// Reference to the data value.
544  THeavy_area& SetHeavy_area(void);
545 
546  /// Check if a value has been assigned to Decimal_ratio data member.
547  ///
548  /// Data member Decimal_ratio is mandatory;
549  /// its type is defined as 'typedef double TDecimal_ratio'
550  /// @return
551  /// - true, if a value has been assigned.
552  /// - false, otherwise.
553  bool IsSetDecimal_ratio(void) const;
554 
555  /// Check if it is safe to call GetDecimal_ratio method.
556  ///
557  /// @return
558  /// - true, if the data member is getatable.
559  /// - false, otherwise.
560  bool CanGetDecimal_ratio(void) const;
561 
562  /// Reset Decimal_ratio data member.
563  void ResetDecimal_ratio(void);
564 
565  /// Get the Decimal_ratio member data.
566  ///
567  /// @return
568  /// Copy of the member data.
569  TDecimal_ratio GetDecimal_ratio(void) const;
570 
571  /// Assign a value to Decimal_ratio data member.
572  ///
573  /// @param value
574  /// Value to assign
575  void SetDecimal_ratio(TDecimal_ratio value);
576 
577  /// Assign a value to Decimal_ratio data member.
578  ///
579  /// @return
580  /// Reference to the data value.
581  TDecimal_ratio& SetDecimal_ratio(void);
582 
583  /// Reset the whole object
584  void Reset(void);
585 
586 
587  private:
588  // Prohibit copy constructor and assignment operator
591 
592  // data
593  Uint4 m_set_State[1];
596  double m_Light_mass;
599  double m_Heavy_mass;
600  double m_Mass_tol;
601  string m_Ratio;
603  double m_Light_area;
604  double m_Heavy_area;
606  };
607  // types
609 
610  // member index
611  enum class E_memberIndex {
612  e__allMandatory = 0,
613  e_Attlist,
614  e_xpressratio_result
615  };
617 
618  // getters
619  // setters
620 
621  /// Check if a value has been assigned to Attlist data member.
622  ///
623  /// Data member Attlist is mandatory;
624  /// its type is defined as 'typedef C_Attlist TAttlist'
625  /// @return
626  /// - true, if a value has been assigned.
627  /// - false, otherwise.
628  bool IsSetAttlist(void) const;
629 
630  /// Check if it is safe to call GetAttlist method.
631  ///
632  /// @return
633  /// - true, if the data member is getatable.
634  /// - false, otherwise.
635  bool CanGetAttlist(void) const;
636 
637  /// Reset Attlist data member.
638  void ResetAttlist(void);
639 
640  /// Get the Attlist member data.
641  ///
642  /// @return
643  /// Reference to the member data.
644  const TAttlist& GetAttlist(void) const;
645 
646  /// Assign a value to Attlist data member.
647  ///
648  /// @param value
649  /// Reference to value.
650  void SetAttlist(TAttlist& value);
651 
652  /// Assign a value to Attlist data member.
653  ///
654  /// @return
655  /// Reference to the data value.
656  TAttlist& SetAttlist(void);
657 
658  /// Check if a value has been assigned to Xpressratio_result data member.
659  ///
660  /// Data member Xpressratio_result is mandatory
661  /// @return
662  /// - true, if a value has been assigned.
663  /// - false, otherwise.
664  bool IsSetXpressratio_result(void) const;
665 
666  /// Check if value of Xpressratio_result member is getatable.
667  ///
668  /// @return
669  /// - false; the data member of type 'NULL' has no value.
670  bool CanGetXpressratio_result(void) const;
671 
672  /// Reset Xpressratio_result data member.
673  void ResetXpressratio_result(void);
674 
675  /// Set NULL data member (assign 'NULL' value to Xpressratio_result data member).
676  void SetXpressratio_result(void);
677 
678  /// Reset the whole object
679  virtual void Reset(void);
680 
681 
682 private:
683  // Prohibit copy constructor and assignment operator
686 
687  // data
688  Uint4 m_set_State[1];
690 };
691 
692 /* @} */
693 
694 
695 
696 
697 
698 ///////////////////////////////////////////////////////////
699 ///////////////////// inline methods //////////////////////
700 ///////////////////////////////////////////////////////////
701 inline
703 {
704  return ((m_set_State[0] & 0x3) != 0);
705 }
706 
707 inline
709 {
710  return IsSetLight_firstscan();
711 }
712 
713 inline
715 {
716  m_Light_firstscan = 0;
717  m_set_State[0] &= ~0x3;
718 }
719 
720 inline
722 {
723  if (!CanGetLight_firstscan()) {
724  ThrowUnassigned(0);
725  }
726  return m_Light_firstscan;
727 }
728 
729 inline
731 {
732  m_Light_firstscan = value;
733  m_set_State[0] |= 0x3;
734 }
735 
736 inline
738 {
739 #ifdef _DEBUG
740  if (!IsSetLight_firstscan()) {
741  memset(&m_Light_firstscan,UnassignedByte(),sizeof(m_Light_firstscan));
742  }
743 #endif
744  m_set_State[0] |= 0x1;
745  return m_Light_firstscan;
746 }
747 
748 inline
750 {
751  return ((m_set_State[0] & 0xc) != 0);
752 }
753 
754 inline
756 {
757  return IsSetLight_lastscan();
758 }
759 
760 inline
762 {
763  m_Light_lastscan = 0;
764  m_set_State[0] &= ~0xc;
765 }
766 
767 inline
769 {
770  if (!CanGetLight_lastscan()) {
771  ThrowUnassigned(1);
772  }
773  return m_Light_lastscan;
774 }
775 
776 inline
778 {
779  m_Light_lastscan = value;
780  m_set_State[0] |= 0xc;
781 }
782 
783 inline
785 {
786 #ifdef _DEBUG
787  if (!IsSetLight_lastscan()) {
788  memset(&m_Light_lastscan,UnassignedByte(),sizeof(m_Light_lastscan));
789  }
790 #endif
791  m_set_State[0] |= 0x4;
792  return m_Light_lastscan;
793 }
794 
795 inline
797 {
798  return ((m_set_State[0] & 0x30) != 0);
799 }
800 
801 inline
803 {
804  return IsSetLight_mass();
805 }
806 
807 inline
809 {
810  m_Light_mass = 0;
811  m_set_State[0] &= ~0x30;
812 }
813 
814 inline
816 {
817  if (!CanGetLight_mass()) {
818  ThrowUnassigned(2);
819  }
820  return m_Light_mass;
821 }
822 
823 inline
825 {
826  m_Light_mass = value;
827  m_set_State[0] |= 0x30;
828 }
829 
830 inline
832 {
833 #ifdef _DEBUG
834  if (!IsSetLight_mass()) {
835  memset(&m_Light_mass,UnassignedByte(),sizeof(m_Light_mass));
836  }
837 #endif
838  m_set_State[0] |= 0x10;
839  return m_Light_mass;
840 }
841 
842 inline
844 {
845  return ((m_set_State[0] & 0xc0) != 0);
846 }
847 
848 inline
850 {
851  return IsSetHeavy_firstscan();
852 }
853 
854 inline
856 {
857  m_Heavy_firstscan = 0;
858  m_set_State[0] &= ~0xc0;
859 }
860 
861 inline
863 {
864  if (!CanGetHeavy_firstscan()) {
865  ThrowUnassigned(3);
866  }
867  return m_Heavy_firstscan;
868 }
869 
870 inline
872 {
873  m_Heavy_firstscan = value;
874  m_set_State[0] |= 0xc0;
875 }
876 
877 inline
879 {
880 #ifdef _DEBUG
881  if (!IsSetHeavy_firstscan()) {
882  memset(&m_Heavy_firstscan,UnassignedByte(),sizeof(m_Heavy_firstscan));
883  }
884 #endif
885  m_set_State[0] |= 0x40;
886  return m_Heavy_firstscan;
887 }
888 
889 inline
891 {
892  return ((m_set_State[0] & 0x300) != 0);
893 }
894 
895 inline
897 {
898  return IsSetHeavy_lastscan();
899 }
900 
901 inline
903 {
904  m_Heavy_lastscan = 0;
905  m_set_State[0] &= ~0x300;
906 }
907 
908 inline
910 {
911  if (!CanGetHeavy_lastscan()) {
912  ThrowUnassigned(4);
913  }
914  return m_Heavy_lastscan;
915 }
916 
917 inline
919 {
920  m_Heavy_lastscan = value;
921  m_set_State[0] |= 0x300;
922 }
923 
924 inline
926 {
927 #ifdef _DEBUG
928  if (!IsSetHeavy_lastscan()) {
929  memset(&m_Heavy_lastscan,UnassignedByte(),sizeof(m_Heavy_lastscan));
930  }
931 #endif
932  m_set_State[0] |= 0x100;
933  return m_Heavy_lastscan;
934 }
935 
936 inline
938 {
939  return ((m_set_State[0] & 0xc00) != 0);
940 }
941 
942 inline
944 {
945  return IsSetHeavy_mass();
946 }
947 
948 inline
950 {
951  m_Heavy_mass = 0;
952  m_set_State[0] &= ~0xc00;
953 }
954 
955 inline
957 {
958  if (!CanGetHeavy_mass()) {
959  ThrowUnassigned(5);
960  }
961  return m_Heavy_mass;
962 }
963 
964 inline
966 {
967  m_Heavy_mass = value;
968  m_set_State[0] |= 0xc00;
969 }
970 
971 inline
973 {
974 #ifdef _DEBUG
975  if (!IsSetHeavy_mass()) {
976  memset(&m_Heavy_mass,UnassignedByte(),sizeof(m_Heavy_mass));
977  }
978 #endif
979  m_set_State[0] |= 0x400;
980  return m_Heavy_mass;
981 }
982 
983 inline
985 {
986  return ((m_set_State[0] & 0x3000) != 0);
987 }
988 
989 inline
991 {
992  return IsSetMass_tol();
993 }
994 
995 inline
997 {
998  m_Mass_tol = 0;
999  m_set_State[0] &= ~0x3000;
1000 }
1001 
1002 inline
1004 {
1005  if (!CanGetMass_tol()) {
1006  ThrowUnassigned(6);
1007  }
1008  return m_Mass_tol;
1009 }
1010 
1011 inline
1013 {
1014  m_Mass_tol = value;
1015  m_set_State[0] |= 0x3000;
1016 }
1017 
1018 inline
1020 {
1021 #ifdef _DEBUG
1022  if (!IsSetMass_tol()) {
1023  memset(&m_Mass_tol,UnassignedByte(),sizeof(m_Mass_tol));
1024  }
1025 #endif
1026  m_set_State[0] |= 0x1000;
1027  return m_Mass_tol;
1028 }
1029 
1030 inline
1032 {
1033  return ((m_set_State[0] & 0xc000) != 0);
1034 }
1035 
1036 inline
1038 {
1039  return IsSetRatio();
1040 }
1041 
1042 inline
1044 {
1045  if (!CanGetRatio()) {
1046  ThrowUnassigned(7);
1047  }
1048  return m_Ratio;
1049 }
1050 
1051 inline
1053 {
1054  m_Ratio = value;
1055  m_set_State[0] |= 0xc000;
1056 }
1057 
1058 inline
1060 {
1061  m_Ratio = std::forward<CXpressratio_result_Base::C_Attlist::TRatio>(value);
1062  m_set_State[0] |= 0xc000;
1063 }
1064 
1065 inline
1067 {
1068 #ifdef _DEBUG
1069  if (!IsSetRatio()) {
1070  m_Ratio = UnassignedString();
1071  }
1072 #endif
1073  m_set_State[0] |= 0x4000;
1074  return m_Ratio;
1075 }
1076 
1077 inline
1079 {
1080  return ((m_set_State[0] & 0x30000) != 0);
1081 }
1082 
1083 inline
1085 {
1086  return IsSetHeavy2light_ratio();
1087 }
1088 
1089 inline
1091 {
1092  if (!CanGetHeavy2light_ratio()) {
1093  ThrowUnassigned(8);
1094  }
1095  return m_Heavy2light_ratio;
1096 }
1097 
1098 inline
1100 {
1101  m_Heavy2light_ratio = value;
1102  m_set_State[0] |= 0x30000;
1103 }
1104 
1105 inline
1107 {
1108  m_Heavy2light_ratio = std::forward<CXpressratio_result_Base::C_Attlist::THeavy2light_ratio>(value);
1109  m_set_State[0] |= 0x30000;
1110 }
1111 
1112 inline
1114 {
1115 #ifdef _DEBUG
1116  if (!IsSetHeavy2light_ratio()) {
1117  m_Heavy2light_ratio = UnassignedString();
1118  }
1119 #endif
1120  m_set_State[0] |= 0x10000;
1121  return m_Heavy2light_ratio;
1122 }
1123 
1124 inline
1126 {
1127  return ((m_set_State[0] & 0xc0000) != 0);
1128 }
1129 
1130 inline
1132 {
1133  return IsSetLight_area();
1134 }
1135 
1136 inline
1138 {
1139  m_Light_area = 0;
1140  m_set_State[0] &= ~0xc0000;
1141 }
1142 
1143 inline
1145 {
1146  if (!CanGetLight_area()) {
1147  ThrowUnassigned(9);
1148  }
1149  return m_Light_area;
1150 }
1151 
1152 inline
1154 {
1155  m_Light_area = value;
1156  m_set_State[0] |= 0xc0000;
1157 }
1158 
1159 inline
1161 {
1162 #ifdef _DEBUG
1163  if (!IsSetLight_area()) {
1164  memset(&m_Light_area,UnassignedByte(),sizeof(m_Light_area));
1165  }
1166 #endif
1167  m_set_State[0] |= 0x40000;
1168  return m_Light_area;
1169 }
1170 
1171 inline
1173 {
1174  return ((m_set_State[0] & 0x300000) != 0);
1175 }
1176 
1177 inline
1179 {
1180  return IsSetHeavy_area();
1181 }
1182 
1183 inline
1185 {
1186  m_Heavy_area = 0;
1187  m_set_State[0] &= ~0x300000;
1188 }
1189 
1190 inline
1192 {
1193  if (!CanGetHeavy_area()) {
1194  ThrowUnassigned(10);
1195  }
1196  return m_Heavy_area;
1197 }
1198 
1199 inline
1201 {
1202  m_Heavy_area = value;
1203  m_set_State[0] |= 0x300000;
1204 }
1205 
1206 inline
1208 {
1209 #ifdef _DEBUG
1210  if (!IsSetHeavy_area()) {
1211  memset(&m_Heavy_area,UnassignedByte(),sizeof(m_Heavy_area));
1212  }
1213 #endif
1214  m_set_State[0] |= 0x100000;
1215  return m_Heavy_area;
1216 }
1217 
1218 inline
1220 {
1221  return ((m_set_State[0] & 0xc00000) != 0);
1222 }
1223 
1224 inline
1226 {
1227  return IsSetDecimal_ratio();
1228 }
1229 
1230 inline
1232 {
1233  m_Decimal_ratio = 0;
1234  m_set_State[0] &= ~0xc00000;
1235 }
1236 
1237 inline
1239 {
1240  if (!CanGetDecimal_ratio()) {
1241  ThrowUnassigned(11);
1242  }
1243  return m_Decimal_ratio;
1244 }
1245 
1246 inline
1248 {
1249  m_Decimal_ratio = value;
1250  m_set_State[0] |= 0xc00000;
1251 }
1252 
1253 inline
1255 {
1256 #ifdef _DEBUG
1257  if (!IsSetDecimal_ratio()) {
1258  memset(&m_Decimal_ratio,UnassignedByte(),sizeof(m_Decimal_ratio));
1259  }
1260 #endif
1261  m_set_State[0] |= 0x400000;
1262  return m_Decimal_ratio;
1263 }
1264 
1265 inline
1267 {
1268  return m_Attlist.NotEmpty();
1269 }
1270 
1271 inline
1273 {
1274  return true;
1275 }
1276 
1277 inline
1279 {
1280  if ( !m_Attlist ) {
1281  const_cast<CXpressratio_result_Base*>(this)->ResetAttlist();
1282  }
1283  return (*m_Attlist);
1284 }
1285 
1286 inline
1288 {
1289  if ( !m_Attlist ) {
1290  ResetAttlist();
1291  }
1293  return (*m_Attlist);
1294 }
1295 
1296 inline
1298 {
1299  return ((m_set_State[0] & 0xc) != 0);
1300 }
1301 
1302 inline
1304 {
1305  return false;
1306 }
1307 
1308 inline
1310 {
1311  m_set_State[0] &= ~0xc;
1312 }
1313 
1314 inline
1316 {
1317  m_set_State[0] |= 0xc;
1318 }
1319 
1320 ///////////////////////////////////////////////////////////
1321 ////////////////// end of inline methods //////////////////
1322 ///////////////////////////////////////////////////////////
1323 
1324 
1325 
1326 
1327 
1328 END_objects_SCOPE // namespace ncbi::objects::
1329 
1331 
1332 
1333 #endif // ALGO_MS_FORMATS_PEPXML_XPRESSRATIO_RESULT_BASE_HPP
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
Definition: serialbase.hpp:175
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_PEPXML_EXPORT
Definition: ncbi_export.h:696
bool CanGetLight_area(void) const
Check if it is safe to call GetLight_area method.
THeavy2light_ratio & SetHeavy2light_ratio(void)
Assign a value to Heavy2light_ratio data member.
bool IsSetLight_area(void) const
Check if a value has been assigned to Light_area data member.
TLight_mass & SetLight_mass(void)
Assign a value to Light_mass data member.
THeavy_firstscan GetHeavy_firstscan(void) const
Get the Heavy_firstscan member data.
CXpressratio_result_Base & operator=(const CXpressratio_result_Base &)
bool CanGetLight_lastscan(void) const
Check if it is safe to call GetLight_lastscan method.
const THeavy2light_ratio & GetHeavy2light_ratio(void) const
Get the Heavy2light_ratio member data.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
void ResetLight_area(void)
Reset Light_area data member.
bool CanGetHeavy_mass(void) const
Check if it is safe to call GetHeavy_mass method.
TLight_firstscan & SetLight_firstscan(void)
Assign a value to Light_firstscan data member.
THeavy_firstscan & SetHeavy_firstscan(void)
Assign a value to Heavy_firstscan data member.
bool IsSetDecimal_ratio(void) const
Check if a value has been assigned to Decimal_ratio data member.
void ResetLight_lastscan(void)
Reset Light_lastscan data member.
THeavy_mass GetHeavy_mass(void) const
Get the Heavy_mass member data.
TLight_area & SetLight_area(void)
Assign a value to Light_area data member.
bool IsSetLight_lastscan(void) const
Check if a value has been assigned to Light_lastscan data member.
bool CanGetHeavy_firstscan(void) const
Check if it is safe to call GetHeavy_firstscan method.
void ResetMass_tol(void)
Reset Mass_tol data member.
void ResetHeavy_lastscan(void)
Reset Heavy_lastscan data member.
THeavy_lastscan GetHeavy_lastscan(void) const
Get the Heavy_lastscan member data.
bool CanGetHeavy2light_ratio(void) const
Check if it is safe to call GetHeavy2light_ratio method.
bool IsSetHeavy2light_ratio(void) const
Check if a value has been assigned to Heavy2light_ratio data member.
THeavy_lastscan & SetHeavy_lastscan(void)
Assign a value to Heavy_lastscan data member.
TLight_firstscan GetLight_firstscan(void) const
Get the Light_firstscan member data.
bool IsSetHeavy_firstscan(void) const
Check if a value has been assigned to Heavy_firstscan data member.
TDecimal_ratio & SetDecimal_ratio(void)
Assign a value to Decimal_ratio data member.
C_Attlist & operator=(const C_Attlist &)
TLight_area GetLight_area(void) const
Get the Light_area member data.
const TRatio & GetRatio(void) const
Get the Ratio member data.
THeavy_area & SetHeavy_area(void)
Assign a value to Heavy_area data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
void ResetHeavy_area(void)
Reset Heavy_area data member.
void SetXpressratio_result(void)
Set NULL data member (assign 'NULL' value to Xpressratio_result data member).
TRatio & SetRatio(void)
Assign a value to Ratio data member.
void ResetXpressratio_result(void)
Reset Xpressratio_result data member.
TLight_mass GetLight_mass(void) const
Get the Light_mass member data.
void ResetDecimal_ratio(void)
Reset Decimal_ratio data member.
bool CanGetLight_firstscan(void) const
Check if it is safe to call GetLight_firstscan method.
bool IsSetHeavy_lastscan(void) const
Check if a value has been assigned to Heavy_lastscan data member.
bool IsSetMass_tol(void) const
Check if a value has been assigned to Mass_tol data member.
void ResetHeavy_firstscan(void)
Reset Heavy_firstscan data member.
TMass_tol & SetMass_tol(void)
Assign a value to Mass_tol data member.
void ResetLight_mass(void)
Reset Light_mass data member.
bool CanGetHeavy_area(void) const
Check if it is safe to call GetHeavy_area method.
bool CanGetMass_tol(void) const
Check if it is safe to call GetMass_tol method.
bool IsSetHeavy_area(void) const
Check if a value has been assigned to Heavy_area data member.
bool IsSetXpressratio_result(void) const
Check if a value has been assigned to Xpressratio_result data member.
bool CanGetXpressratio_result(void) const
Check if value of Xpressratio_result member is getatable.
bool CanGetRatio(void) const
Check if it is safe to call GetRatio method.
Tparent::CMemberIndex< E_memberIndex, 13 > TmemberIndex
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
TLight_lastscan GetLight_lastscan(void) const
Get the Light_lastscan member data.
TDecimal_ratio GetDecimal_ratio(void) const
Get the Decimal_ratio member data.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
bool IsSetLight_mass(void) const
Check if a value has been assigned to Light_mass data member.
TLight_lastscan & SetLight_lastscan(void)
Assign a value to Light_lastscan data member.
CXpressratio_result_Base(const CXpressratio_result_Base &)
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
void ResetLight_firstscan(void)
Reset Light_firstscan data member.
bool CanGetLight_mass(void) const
Check if it is safe to call GetLight_mass method.
void ResetAttlist(void)
Reset Attlist data member.
THeavy_area GetHeavy_area(void) const
Get the Heavy_area member data.
bool IsSetRatio(void) const
Check if a value has been assigned to Ratio data member.
THeavy_mass & SetHeavy_mass(void)
Assign a value to Heavy_mass data member.
bool CanGetDecimal_ratio(void) const
Check if it is safe to call GetDecimal_ratio method.
void ResetHeavy_mass(void)
Reset Heavy_mass data member.
bool CanGetHeavy_lastscan(void) const
Check if it is safe to call GetHeavy_lastscan method.
bool IsSetLight_firstscan(void) const
Check if a value has been assigned to Light_firstscan data member.
TMass_tol GetMass_tol(void) const
Get the Mass_tol member data.
bool IsSetHeavy_mass(void) const
Check if a value has been assigned to Heavy_mass data member.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:34 2024 by modify_doxy.py rev. 669887