NCBI C++ ToolKit
Distribution_point_.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 Distribution_point_.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_DISTRIBUTION_POINT_BASE_HPP
42 #define ALGO_MS_FORMATS_PEPXML_DISTRIBUTION_POINT_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
47 
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
51 #endif
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 
55 // generated classes
56 
57 
58 /** @addtogroup dataspec_pepXML
59  *
60  * @{
61  */
62 
63 /////////////////////////////////////////////////////////////////////////////
64 ///
65 /// CDistribution_point_Base --
66 ///
67 
69 {
71 public:
72  // constructor
74  // destructor
75  virtual ~CDistribution_point_Base(void);
76 
77  // type info
79 
80  /////////////////////////////////////////////////////////////////////////////
81  ///
82  /// C_Attlist --
83  ///
84 
86  {
88  public:
89  // constructor
90  C_Attlist(void);
91  // destructor
92  ~C_Attlist(void);
93 
94  // type info
96 
97  // types
98  typedef double TFvalue;
99  typedef int TObs_1_distr;
100  typedef double TModel_1_pos_distr;
101  typedef double TModel_1_neg_distr;
102  typedef int TObs_2_distr;
103  typedef double TModel_2_pos_distr;
104  typedef double TModel_2_neg_distr;
105  typedef int TObs_3_distr;
106  typedef double TModel_3_pos_distr;
107  typedef double TModel_3_neg_distr;
108 
109  // member index
110  enum class E_memberIndex {
111  e__allMandatory = 0,
112  e_fvalue,
113  e_obs_1_distr,
114  e_model_1_pos_distr,
115  e_model_1_neg_distr,
116  e_obs_2_distr,
117  e_model_2_pos_distr,
118  e_model_2_neg_distr,
119  e_obs_3_distr,
120  e_model_3_pos_distr,
121  e_model_3_neg_distr
122  };
124 
125  // getters
126  // setters
127 
128  /// Check if a value has been assigned to Fvalue data member.
129  ///
130  /// Data member Fvalue is mandatory;
131  /// its type is defined as 'typedef double TFvalue'
132  /// @return
133  /// - true, if a value has been assigned.
134  /// - false, otherwise.
135  bool IsSetFvalue(void) const;
136 
137  /// Check if it is safe to call GetFvalue method.
138  ///
139  /// @return
140  /// - true, if the data member is getatable.
141  /// - false, otherwise.
142  bool CanGetFvalue(void) const;
143 
144  /// Reset Fvalue data member.
145  void ResetFvalue(void);
146 
147  /// Get the Fvalue member data.
148  ///
149  /// @return
150  /// Copy of the member data.
151  TFvalue GetFvalue(void) const;
152 
153  /// Assign a value to Fvalue data member.
154  ///
155  /// @param value
156  /// Value to assign
157  void SetFvalue(TFvalue value);
158 
159  /// Assign a value to Fvalue data member.
160  ///
161  /// @return
162  /// Reference to the data value.
163  TFvalue& SetFvalue(void);
164 
165  /// Check if a value has been assigned to Obs_1_distr data member.
166  ///
167  /// Data member Obs_1_distr is mandatory;
168  /// its type is defined as 'typedef int TObs_1_distr'
169  /// @return
170  /// - true, if a value has been assigned.
171  /// - false, otherwise.
172  bool IsSetObs_1_distr(void) const;
173 
174  /// Check if it is safe to call GetObs_1_distr method.
175  ///
176  /// @return
177  /// - true, if the data member is getatable.
178  /// - false, otherwise.
179  bool CanGetObs_1_distr(void) const;
180 
181  /// Reset Obs_1_distr data member.
182  void ResetObs_1_distr(void);
183 
184  /// Get the Obs_1_distr member data.
185  ///
186  /// @return
187  /// Copy of the member data.
188  TObs_1_distr GetObs_1_distr(void) const;
189 
190  /// Assign a value to Obs_1_distr data member.
191  ///
192  /// @param value
193  /// Value to assign
194  void SetObs_1_distr(TObs_1_distr value);
195 
196  /// Assign a value to Obs_1_distr data member.
197  ///
198  /// @return
199  /// Reference to the data value.
200  TObs_1_distr& SetObs_1_distr(void);
201 
202  /// Check if a value has been assigned to Model_1_pos_distr data member.
203  ///
204  /// Data member Model_1_pos_distr is mandatory;
205  /// its type is defined as 'typedef double TModel_1_pos_distr'
206  /// @return
207  /// - true, if a value has been assigned.
208  /// - false, otherwise.
209  bool IsSetModel_1_pos_distr(void) const;
210 
211  /// Check if it is safe to call GetModel_1_pos_distr method.
212  ///
213  /// @return
214  /// - true, if the data member is getatable.
215  /// - false, otherwise.
216  bool CanGetModel_1_pos_distr(void) const;
217 
218  /// Reset Model_1_pos_distr data member.
219  void ResetModel_1_pos_distr(void);
220 
221  /// Get the Model_1_pos_distr member data.
222  ///
223  /// @return
224  /// Copy of the member data.
225  TModel_1_pos_distr GetModel_1_pos_distr(void) const;
226 
227  /// Assign a value to Model_1_pos_distr data member.
228  ///
229  /// @param value
230  /// Value to assign
231  void SetModel_1_pos_distr(TModel_1_pos_distr value);
232 
233  /// Assign a value to Model_1_pos_distr data member.
234  ///
235  /// @return
236  /// Reference to the data value.
237  TModel_1_pos_distr& SetModel_1_pos_distr(void);
238 
239  /// Check if a value has been assigned to Model_1_neg_distr data member.
240  ///
241  /// Data member Model_1_neg_distr is mandatory;
242  /// its type is defined as 'typedef double TModel_1_neg_distr'
243  /// @return
244  /// - true, if a value has been assigned.
245  /// - false, otherwise.
246  bool IsSetModel_1_neg_distr(void) const;
247 
248  /// Check if it is safe to call GetModel_1_neg_distr method.
249  ///
250  /// @return
251  /// - true, if the data member is getatable.
252  /// - false, otherwise.
253  bool CanGetModel_1_neg_distr(void) const;
254 
255  /// Reset Model_1_neg_distr data member.
256  void ResetModel_1_neg_distr(void);
257 
258  /// Get the Model_1_neg_distr member data.
259  ///
260  /// @return
261  /// Copy of the member data.
262  TModel_1_neg_distr GetModel_1_neg_distr(void) const;
263 
264  /// Assign a value to Model_1_neg_distr data member.
265  ///
266  /// @param value
267  /// Value to assign
268  void SetModel_1_neg_distr(TModel_1_neg_distr value);
269 
270  /// Assign a value to Model_1_neg_distr data member.
271  ///
272  /// @return
273  /// Reference to the data value.
274  TModel_1_neg_distr& SetModel_1_neg_distr(void);
275 
276  /// Check if a value has been assigned to Obs_2_distr data member.
277  ///
278  /// Data member Obs_2_distr is mandatory;
279  /// its type is defined as 'typedef int TObs_2_distr'
280  /// @return
281  /// - true, if a value has been assigned.
282  /// - false, otherwise.
283  bool IsSetObs_2_distr(void) const;
284 
285  /// Check if it is safe to call GetObs_2_distr method.
286  ///
287  /// @return
288  /// - true, if the data member is getatable.
289  /// - false, otherwise.
290  bool CanGetObs_2_distr(void) const;
291 
292  /// Reset Obs_2_distr data member.
293  void ResetObs_2_distr(void);
294 
295  /// Get the Obs_2_distr member data.
296  ///
297  /// @return
298  /// Copy of the member data.
299  TObs_2_distr GetObs_2_distr(void) const;
300 
301  /// Assign a value to Obs_2_distr data member.
302  ///
303  /// @param value
304  /// Value to assign
305  void SetObs_2_distr(TObs_2_distr value);
306 
307  /// Assign a value to Obs_2_distr data member.
308  ///
309  /// @return
310  /// Reference to the data value.
311  TObs_2_distr& SetObs_2_distr(void);
312 
313  /// Check if a value has been assigned to Model_2_pos_distr data member.
314  ///
315  /// Data member Model_2_pos_distr is mandatory;
316  /// its type is defined as 'typedef double TModel_2_pos_distr'
317  /// @return
318  /// - true, if a value has been assigned.
319  /// - false, otherwise.
320  bool IsSetModel_2_pos_distr(void) const;
321 
322  /// Check if it is safe to call GetModel_2_pos_distr method.
323  ///
324  /// @return
325  /// - true, if the data member is getatable.
326  /// - false, otherwise.
327  bool CanGetModel_2_pos_distr(void) const;
328 
329  /// Reset Model_2_pos_distr data member.
330  void ResetModel_2_pos_distr(void);
331 
332  /// Get the Model_2_pos_distr member data.
333  ///
334  /// @return
335  /// Copy of the member data.
336  TModel_2_pos_distr GetModel_2_pos_distr(void) const;
337 
338  /// Assign a value to Model_2_pos_distr data member.
339  ///
340  /// @param value
341  /// Value to assign
342  void SetModel_2_pos_distr(TModel_2_pos_distr value);
343 
344  /// Assign a value to Model_2_pos_distr data member.
345  ///
346  /// @return
347  /// Reference to the data value.
348  TModel_2_pos_distr& SetModel_2_pos_distr(void);
349 
350  /// Check if a value has been assigned to Model_2_neg_distr data member.
351  ///
352  /// Data member Model_2_neg_distr is mandatory;
353  /// its type is defined as 'typedef double TModel_2_neg_distr'
354  /// @return
355  /// - true, if a value has been assigned.
356  /// - false, otherwise.
357  bool IsSetModel_2_neg_distr(void) const;
358 
359  /// Check if it is safe to call GetModel_2_neg_distr method.
360  ///
361  /// @return
362  /// - true, if the data member is getatable.
363  /// - false, otherwise.
364  bool CanGetModel_2_neg_distr(void) const;
365 
366  /// Reset Model_2_neg_distr data member.
367  void ResetModel_2_neg_distr(void);
368 
369  /// Get the Model_2_neg_distr member data.
370  ///
371  /// @return
372  /// Copy of the member data.
373  TModel_2_neg_distr GetModel_2_neg_distr(void) const;
374 
375  /// Assign a value to Model_2_neg_distr data member.
376  ///
377  /// @param value
378  /// Value to assign
379  void SetModel_2_neg_distr(TModel_2_neg_distr value);
380 
381  /// Assign a value to Model_2_neg_distr data member.
382  ///
383  /// @return
384  /// Reference to the data value.
385  TModel_2_neg_distr& SetModel_2_neg_distr(void);
386 
387  /// Check if a value has been assigned to Obs_3_distr data member.
388  ///
389  /// Data member Obs_3_distr is mandatory;
390  /// its type is defined as 'typedef int TObs_3_distr'
391  /// @return
392  /// - true, if a value has been assigned.
393  /// - false, otherwise.
394  bool IsSetObs_3_distr(void) const;
395 
396  /// Check if it is safe to call GetObs_3_distr method.
397  ///
398  /// @return
399  /// - true, if the data member is getatable.
400  /// - false, otherwise.
401  bool CanGetObs_3_distr(void) const;
402 
403  /// Reset Obs_3_distr data member.
404  void ResetObs_3_distr(void);
405 
406  /// Get the Obs_3_distr member data.
407  ///
408  /// @return
409  /// Copy of the member data.
410  TObs_3_distr GetObs_3_distr(void) const;
411 
412  /// Assign a value to Obs_3_distr data member.
413  ///
414  /// @param value
415  /// Value to assign
416  void SetObs_3_distr(TObs_3_distr value);
417 
418  /// Assign a value to Obs_3_distr data member.
419  ///
420  /// @return
421  /// Reference to the data value.
422  TObs_3_distr& SetObs_3_distr(void);
423 
424  /// Check if a value has been assigned to Model_3_pos_distr data member.
425  ///
426  /// Data member Model_3_pos_distr is mandatory;
427  /// its type is defined as 'typedef double TModel_3_pos_distr'
428  /// @return
429  /// - true, if a value has been assigned.
430  /// - false, otherwise.
431  bool IsSetModel_3_pos_distr(void) const;
432 
433  /// Check if it is safe to call GetModel_3_pos_distr method.
434  ///
435  /// @return
436  /// - true, if the data member is getatable.
437  /// - false, otherwise.
438  bool CanGetModel_3_pos_distr(void) const;
439 
440  /// Reset Model_3_pos_distr data member.
441  void ResetModel_3_pos_distr(void);
442 
443  /// Get the Model_3_pos_distr member data.
444  ///
445  /// @return
446  /// Copy of the member data.
447  TModel_3_pos_distr GetModel_3_pos_distr(void) const;
448 
449  /// Assign a value to Model_3_pos_distr data member.
450  ///
451  /// @param value
452  /// Value to assign
453  void SetModel_3_pos_distr(TModel_3_pos_distr value);
454 
455  /// Assign a value to Model_3_pos_distr data member.
456  ///
457  /// @return
458  /// Reference to the data value.
459  TModel_3_pos_distr& SetModel_3_pos_distr(void);
460 
461  /// Check if a value has been assigned to Model_3_neg_distr data member.
462  ///
463  /// Data member Model_3_neg_distr is mandatory;
464  /// its type is defined as 'typedef double TModel_3_neg_distr'
465  /// @return
466  /// - true, if a value has been assigned.
467  /// - false, otherwise.
468  bool IsSetModel_3_neg_distr(void) const;
469 
470  /// Check if it is safe to call GetModel_3_neg_distr method.
471  ///
472  /// @return
473  /// - true, if the data member is getatable.
474  /// - false, otherwise.
475  bool CanGetModel_3_neg_distr(void) const;
476 
477  /// Reset Model_3_neg_distr data member.
478  void ResetModel_3_neg_distr(void);
479 
480  /// Get the Model_3_neg_distr member data.
481  ///
482  /// @return
483  /// Copy of the member data.
484  TModel_3_neg_distr GetModel_3_neg_distr(void) const;
485 
486  /// Assign a value to Model_3_neg_distr data member.
487  ///
488  /// @param value
489  /// Value to assign
490  void SetModel_3_neg_distr(TModel_3_neg_distr value);
491 
492  /// Assign a value to Model_3_neg_distr data member.
493  ///
494  /// @return
495  /// Reference to the data value.
496  TModel_3_neg_distr& SetModel_3_neg_distr(void);
497 
498  /// Reset the whole object
499  void Reset(void);
500 
501 
502  private:
503  // Prohibit copy constructor and assignment operator
506 
507  // data
508  Uint4 m_set_State[1];
509  double m_Fvalue;
519  };
520  // types
522 
523  // member index
524  enum class E_memberIndex {
525  e__allMandatory = 0,
526  e_Attlist,
527  e_distribution_point
528  };
530 
531  // getters
532  // setters
533 
534  /// Check if a value has been assigned to Attlist data member.
535  ///
536  /// Data member Attlist is mandatory;
537  /// its type is defined as 'typedef C_Attlist TAttlist'
538  /// @return
539  /// - true, if a value has been assigned.
540  /// - false, otherwise.
541  bool IsSetAttlist(void) const;
542 
543  /// Check if it is safe to call GetAttlist method.
544  ///
545  /// @return
546  /// - true, if the data member is getatable.
547  /// - false, otherwise.
548  bool CanGetAttlist(void) const;
549 
550  /// Reset Attlist data member.
551  void ResetAttlist(void);
552 
553  /// Get the Attlist member data.
554  ///
555  /// @return
556  /// Reference to the member data.
557  const TAttlist& GetAttlist(void) const;
558 
559  /// Assign a value to Attlist data member.
560  ///
561  /// @param value
562  /// Reference to value.
563  void SetAttlist(TAttlist& value);
564 
565  /// Assign a value to Attlist data member.
566  ///
567  /// @return
568  /// Reference to the data value.
569  TAttlist& SetAttlist(void);
570 
571  /// Check if a value has been assigned to Distribution_point data member.
572  ///
573  /// Data member Distribution_point is mandatory
574  /// @return
575  /// - true, if a value has been assigned.
576  /// - false, otherwise.
577  bool IsSetDistribution_point(void) const;
578 
579  /// Check if value of Distribution_point member is getatable.
580  ///
581  /// @return
582  /// - false; the data member of type 'NULL' has no value.
583  bool CanGetDistribution_point(void) const;
584 
585  /// Reset Distribution_point data member.
586  void ResetDistribution_point(void);
587 
588  /// Set NULL data member (assign 'NULL' value to Distribution_point data member).
589  void SetDistribution_point(void);
590 
591  /// Reset the whole object
592  virtual void Reset(void);
593 
594 
595 private:
596  // Prohibit copy constructor and assignment operator
599 
600  // data
601  Uint4 m_set_State[1];
603 };
604 
605 /* @} */
606 
607 
608 
609 
610 
611 ///////////////////////////////////////////////////////////
612 ///////////////////// inline methods //////////////////////
613 ///////////////////////////////////////////////////////////
614 inline
616 {
617  return ((m_set_State[0] & 0x3) != 0);
618 }
619 
620 inline
622 {
623  return IsSetFvalue();
624 }
625 
626 inline
628 {
629  m_Fvalue = 0;
630  m_set_State[0] &= ~0x3;
631 }
632 
633 inline
635 {
636  if (!CanGetFvalue()) {
637  ThrowUnassigned(0);
638  }
639  return m_Fvalue;
640 }
641 
642 inline
644 {
645  m_Fvalue = value;
646  m_set_State[0] |= 0x3;
647 }
648 
649 inline
651 {
652 #ifdef _DEBUG
653  if (!IsSetFvalue()) {
654  memset(&m_Fvalue,UnassignedByte(),sizeof(m_Fvalue));
655  }
656 #endif
657  m_set_State[0] |= 0x1;
658  return m_Fvalue;
659 }
660 
661 inline
663 {
664  return ((m_set_State[0] & 0xc) != 0);
665 }
666 
667 inline
669 {
670  return IsSetObs_1_distr();
671 }
672 
673 inline
675 {
676  m_Obs_1_distr = 0;
677  m_set_State[0] &= ~0xc;
678 }
679 
680 inline
682 {
683  if (!CanGetObs_1_distr()) {
684  ThrowUnassigned(1);
685  }
686  return m_Obs_1_distr;
687 }
688 
689 inline
691 {
692  m_Obs_1_distr = value;
693  m_set_State[0] |= 0xc;
694 }
695 
696 inline
698 {
699 #ifdef _DEBUG
700  if (!IsSetObs_1_distr()) {
701  memset(&m_Obs_1_distr,UnassignedByte(),sizeof(m_Obs_1_distr));
702  }
703 #endif
704  m_set_State[0] |= 0x4;
705  return m_Obs_1_distr;
706 }
707 
708 inline
710 {
711  return ((m_set_State[0] & 0x30) != 0);
712 }
713 
714 inline
716 {
717  return IsSetModel_1_pos_distr();
718 }
719 
720 inline
722 {
723  m_Model_1_pos_distr = 0;
724  m_set_State[0] &= ~0x30;
725 }
726 
727 inline
729 {
730  if (!CanGetModel_1_pos_distr()) {
731  ThrowUnassigned(2);
732  }
733  return m_Model_1_pos_distr;
734 }
735 
736 inline
738 {
739  m_Model_1_pos_distr = value;
740  m_set_State[0] |= 0x30;
741 }
742 
743 inline
745 {
746 #ifdef _DEBUG
747  if (!IsSetModel_1_pos_distr()) {
748  memset(&m_Model_1_pos_distr,UnassignedByte(),sizeof(m_Model_1_pos_distr));
749  }
750 #endif
751  m_set_State[0] |= 0x10;
752  return m_Model_1_pos_distr;
753 }
754 
755 inline
757 {
758  return ((m_set_State[0] & 0xc0) != 0);
759 }
760 
761 inline
763 {
764  return IsSetModel_1_neg_distr();
765 }
766 
767 inline
769 {
770  m_Model_1_neg_distr = 0;
771  m_set_State[0] &= ~0xc0;
772 }
773 
774 inline
776 {
777  if (!CanGetModel_1_neg_distr()) {
778  ThrowUnassigned(3);
779  }
780  return m_Model_1_neg_distr;
781 }
782 
783 inline
785 {
786  m_Model_1_neg_distr = value;
787  m_set_State[0] |= 0xc0;
788 }
789 
790 inline
792 {
793 #ifdef _DEBUG
794  if (!IsSetModel_1_neg_distr()) {
795  memset(&m_Model_1_neg_distr,UnassignedByte(),sizeof(m_Model_1_neg_distr));
796  }
797 #endif
798  m_set_State[0] |= 0x40;
799  return m_Model_1_neg_distr;
800 }
801 
802 inline
804 {
805  return ((m_set_State[0] & 0x300) != 0);
806 }
807 
808 inline
810 {
811  return IsSetObs_2_distr();
812 }
813 
814 inline
816 {
817  m_Obs_2_distr = 0;
818  m_set_State[0] &= ~0x300;
819 }
820 
821 inline
823 {
824  if (!CanGetObs_2_distr()) {
825  ThrowUnassigned(4);
826  }
827  return m_Obs_2_distr;
828 }
829 
830 inline
832 {
833  m_Obs_2_distr = value;
834  m_set_State[0] |= 0x300;
835 }
836 
837 inline
839 {
840 #ifdef _DEBUG
841  if (!IsSetObs_2_distr()) {
842  memset(&m_Obs_2_distr,UnassignedByte(),sizeof(m_Obs_2_distr));
843  }
844 #endif
845  m_set_State[0] |= 0x100;
846  return m_Obs_2_distr;
847 }
848 
849 inline
851 {
852  return ((m_set_State[0] & 0xc00) != 0);
853 }
854 
855 inline
857 {
858  return IsSetModel_2_pos_distr();
859 }
860 
861 inline
863 {
864  m_Model_2_pos_distr = 0;
865  m_set_State[0] &= ~0xc00;
866 }
867 
868 inline
870 {
871  if (!CanGetModel_2_pos_distr()) {
872  ThrowUnassigned(5);
873  }
874  return m_Model_2_pos_distr;
875 }
876 
877 inline
879 {
880  m_Model_2_pos_distr = value;
881  m_set_State[0] |= 0xc00;
882 }
883 
884 inline
886 {
887 #ifdef _DEBUG
888  if (!IsSetModel_2_pos_distr()) {
889  memset(&m_Model_2_pos_distr,UnassignedByte(),sizeof(m_Model_2_pos_distr));
890  }
891 #endif
892  m_set_State[0] |= 0x400;
893  return m_Model_2_pos_distr;
894 }
895 
896 inline
898 {
899  return ((m_set_State[0] & 0x3000) != 0);
900 }
901 
902 inline
904 {
905  return IsSetModel_2_neg_distr();
906 }
907 
908 inline
910 {
911  m_Model_2_neg_distr = 0;
912  m_set_State[0] &= ~0x3000;
913 }
914 
915 inline
917 {
918  if (!CanGetModel_2_neg_distr()) {
919  ThrowUnassigned(6);
920  }
921  return m_Model_2_neg_distr;
922 }
923 
924 inline
926 {
927  m_Model_2_neg_distr = value;
928  m_set_State[0] |= 0x3000;
929 }
930 
931 inline
933 {
934 #ifdef _DEBUG
935  if (!IsSetModel_2_neg_distr()) {
936  memset(&m_Model_2_neg_distr,UnassignedByte(),sizeof(m_Model_2_neg_distr));
937  }
938 #endif
939  m_set_State[0] |= 0x1000;
940  return m_Model_2_neg_distr;
941 }
942 
943 inline
945 {
946  return ((m_set_State[0] & 0xc000) != 0);
947 }
948 
949 inline
951 {
952  return IsSetObs_3_distr();
953 }
954 
955 inline
957 {
958  m_Obs_3_distr = 0;
959  m_set_State[0] &= ~0xc000;
960 }
961 
962 inline
964 {
965  if (!CanGetObs_3_distr()) {
966  ThrowUnassigned(7);
967  }
968  return m_Obs_3_distr;
969 }
970 
971 inline
973 {
974  m_Obs_3_distr = value;
975  m_set_State[0] |= 0xc000;
976 }
977 
978 inline
980 {
981 #ifdef _DEBUG
982  if (!IsSetObs_3_distr()) {
983  memset(&m_Obs_3_distr,UnassignedByte(),sizeof(m_Obs_3_distr));
984  }
985 #endif
986  m_set_State[0] |= 0x4000;
987  return m_Obs_3_distr;
988 }
989 
990 inline
992 {
993  return ((m_set_State[0] & 0x30000) != 0);
994 }
995 
996 inline
998 {
999  return IsSetModel_3_pos_distr();
1000 }
1001 
1002 inline
1004 {
1005  m_Model_3_pos_distr = 0;
1006  m_set_State[0] &= ~0x30000;
1007 }
1008 
1009 inline
1011 {
1012  if (!CanGetModel_3_pos_distr()) {
1013  ThrowUnassigned(8);
1014  }
1015  return m_Model_3_pos_distr;
1016 }
1017 
1018 inline
1020 {
1021  m_Model_3_pos_distr = value;
1022  m_set_State[0] |= 0x30000;
1023 }
1024 
1025 inline
1027 {
1028 #ifdef _DEBUG
1029  if (!IsSetModel_3_pos_distr()) {
1030  memset(&m_Model_3_pos_distr,UnassignedByte(),sizeof(m_Model_3_pos_distr));
1031  }
1032 #endif
1033  m_set_State[0] |= 0x10000;
1034  return m_Model_3_pos_distr;
1035 }
1036 
1037 inline
1039 {
1040  return ((m_set_State[0] & 0xc0000) != 0);
1041 }
1042 
1043 inline
1045 {
1046  return IsSetModel_3_neg_distr();
1047 }
1048 
1049 inline
1051 {
1052  m_Model_3_neg_distr = 0;
1053  m_set_State[0] &= ~0xc0000;
1054 }
1055 
1056 inline
1058 {
1059  if (!CanGetModel_3_neg_distr()) {
1060  ThrowUnassigned(9);
1061  }
1062  return m_Model_3_neg_distr;
1063 }
1064 
1065 inline
1067 {
1068  m_Model_3_neg_distr = value;
1069  m_set_State[0] |= 0xc0000;
1070 }
1071 
1072 inline
1074 {
1075 #ifdef _DEBUG
1076  if (!IsSetModel_3_neg_distr()) {
1077  memset(&m_Model_3_neg_distr,UnassignedByte(),sizeof(m_Model_3_neg_distr));
1078  }
1079 #endif
1080  m_set_State[0] |= 0x40000;
1081  return m_Model_3_neg_distr;
1082 }
1083 
1084 inline
1086 {
1087  return m_Attlist.NotEmpty();
1088 }
1089 
1090 inline
1092 {
1093  return true;
1094 }
1095 
1096 inline
1098 {
1099  if ( !m_Attlist ) {
1100  const_cast<CDistribution_point_Base*>(this)->ResetAttlist();
1101  }
1102  return (*m_Attlist);
1103 }
1104 
1105 inline
1107 {
1108  if ( !m_Attlist ) {
1109  ResetAttlist();
1110  }
1112  return (*m_Attlist);
1113 }
1114 
1115 inline
1117 {
1118  return ((m_set_State[0] & 0xc) != 0);
1119 }
1120 
1121 inline
1123 {
1124  return false;
1125 }
1126 
1127 inline
1129 {
1130  m_set_State[0] &= ~0xc;
1131 }
1132 
1133 inline
1135 {
1136  m_set_State[0] |= 0xc;
1137 }
1138 
1139 ///////////////////////////////////////////////////////////
1140 ////////////////// end of inline methods //////////////////
1141 ///////////////////////////////////////////////////////////
1142 
1143 
1144 
1145 
1146 
1147 END_objects_SCOPE // namespace ncbi::objects::
1148 
1150 
1151 
1152 #endif // ALGO_MS_FORMATS_PEPXML_DISTRIBUTION_POINT_BASE_HPP
CDistribution_point_Base –.
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
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
void ResetObs_3_distr(void)
Reset Obs_3_distr data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
bool IsSetModel_2_neg_distr(void) const
Check if a value has been assigned to Model_2_neg_distr data member.
bool CanGetModel_3_neg_distr(void) const
Check if it is safe to call GetModel_3_neg_distr method.
TModel_2_pos_distr GetModel_2_pos_distr(void) const
Get the Model_2_pos_distr member data.
bool CanGetFvalue(void) const
Check if it is safe to call GetFvalue method.
bool IsSetModel_1_pos_distr(void) const
Check if a value has been assigned to Model_1_pos_distr data member.
bool CanGetModel_1_pos_distr(void) const
Check if it is safe to call GetModel_1_pos_distr method.
TObs_1_distr GetObs_1_distr(void) const
Get the Obs_1_distr member data.
TModel_2_neg_distr & SetModel_2_neg_distr(void)
Assign a value to Model_2_neg_distr data member.
TFvalue GetFvalue(void) const
Get the Fvalue member data.
void ResetDistribution_point(void)
Reset Distribution_point data member.
TModel_2_pos_distr & SetModel_2_pos_distr(void)
Assign a value to Model_2_pos_distr data member.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
TObs_2_distr GetObs_2_distr(void) const
Get the Obs_2_distr member data.
bool IsSetModel_2_pos_distr(void) const
Check if a value has been assigned to Model_2_pos_distr data member.
void ResetModel_2_pos_distr(void)
Reset Model_2_pos_distr data member.
Tparent::CMemberIndex< E_memberIndex, 11 > TmemberIndex
void ResetModel_1_neg_distr(void)
Reset Model_1_neg_distr data member.
TModel_2_neg_distr GetModel_2_neg_distr(void) const
Get the Model_2_neg_distr member data.
void ResetModel_2_neg_distr(void)
Reset Model_2_neg_distr data member.
bool CanGetModel_2_neg_distr(void) const
Check if it is safe to call GetModel_2_neg_distr method.
TModel_3_neg_distr & SetModel_3_neg_distr(void)
Assign a value to Model_3_neg_distr data member.
void ResetObs_1_distr(void)
Reset Obs_1_distr data member.
C_Attlist & operator=(const C_Attlist &)
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
bool CanGetObs_2_distr(void) const
Check if it is safe to call GetObs_2_distr method.
bool CanGetObs_3_distr(void) const
Check if it is safe to call GetObs_3_distr method.
bool IsSetObs_3_distr(void) const
Check if a value has been assigned to Obs_3_distr data member.
bool IsSetModel_1_neg_distr(void) const
Check if a value has been assigned to Model_1_neg_distr data member.
bool IsSetFvalue(void) const
Check if a value has been assigned to Fvalue data member.
TModel_1_pos_distr GetModel_1_pos_distr(void) const
Get the Model_1_pos_distr member data.
TModel_1_neg_distr & SetModel_1_neg_distr(void)
Assign a value to Model_1_neg_distr data member.
TObs_3_distr GetObs_3_distr(void) const
Get the Obs_3_distr member data.
TModel_3_pos_distr GetModel_3_pos_distr(void) const
Get the Model_3_pos_distr member data.
void ResetModel_1_pos_distr(void)
Reset Model_1_pos_distr data member.
CDistribution_point_Base & operator=(const CDistribution_point_Base &)
bool IsSetObs_1_distr(void) const
Check if a value has been assigned to Obs_1_distr data member.
bool IsSetModel_3_neg_distr(void) const
Check if a value has been assigned to Model_3_neg_distr data member.
bool CanGetDistribution_point(void) const
Check if value of Distribution_point member is getatable.
CDistribution_point_Base(const CDistribution_point_Base &)
TModel_1_neg_distr GetModel_1_neg_distr(void) const
Get the Model_1_neg_distr member data.
TObs_1_distr & SetObs_1_distr(void)
Assign a value to Obs_1_distr data member.
void ResetModel_3_pos_distr(void)
Reset Model_3_pos_distr data member.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
void ResetModel_3_neg_distr(void)
Reset Model_3_neg_distr data member.
TModel_1_pos_distr & SetModel_1_pos_distr(void)
Assign a value to Model_1_pos_distr data member.
bool IsSetModel_3_pos_distr(void) const
Check if a value has been assigned to Model_3_pos_distr data member.
bool CanGetModel_1_neg_distr(void) const
Check if it is safe to call GetModel_1_neg_distr method.
bool CanGetModel_3_pos_distr(void) const
Check if it is safe to call GetModel_3_pos_distr method.
TFvalue & SetFvalue(void)
Assign a value to Fvalue data member.
TModel_3_neg_distr GetModel_3_neg_distr(void) const
Get the Model_3_neg_distr member data.
bool CanGetModel_2_pos_distr(void) const
Check if it is safe to call GetModel_2_pos_distr method.
void ResetAttlist(void)
Reset Attlist data member.
bool IsSetDistribution_point(void) const
Check if a value has been assigned to Distribution_point data member.
bool IsSetObs_2_distr(void) const
Check if a value has been assigned to Obs_2_distr data member.
TObs_3_distr & SetObs_3_distr(void)
Assign a value to Obs_3_distr data member.
TObs_2_distr & SetObs_2_distr(void)
Assign a value to Obs_2_distr data member.
TModel_3_pos_distr & SetModel_3_pos_distr(void)
Assign a value to Model_3_pos_distr data member.
void SetDistribution_point(void)
Set NULL data member (assign 'NULL' value to Distribution_point data member).
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
void ResetFvalue(void)
Reset Fvalue data member.
bool CanGetObs_1_distr(void) const
Check if it is safe to call GetObs_1_distr method.
void ResetObs_2_distr(void)
Reset Obs_2_distr data member.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:09 2024 by modify_doxy.py rev. 669887