NCBI C++ ToolKit
Mlongdiv_.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 Mlongdiv_.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/objtools/eutils/efetch/pubmed_mathml3.xsd">pubmed_mathml3.xsd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/eutils/efetch/pubmed_mathml3.def">pubmed_mathml3.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 OBJTOOLS_EUTILS_EFETCH_MLONGDIV_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_MLONGDIV_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #include <string>
50 
52 
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
56 #endif
57 BEGIN_objects_SCOPE // namespace ncbi::objects::
58 
59 
60 // forward declarations
61 class CMstackExpression;
62 
63 
64 // generated classes
65 
66 
67 /** @addtogroup dataspec_pubmed_mathml3
68  *
69  * @{
70  */
71 
72 /////////////////////////////////////////////////////////////////////////////
73 ///
74 /// CMlongdiv_Base --
75 ///
76 
78 {
80 public:
81  // constructor
82  CMlongdiv_Base(void);
83  // destructor
84  virtual ~CMlongdiv_Base(void);
85 
86  // type info
88 
89  /////////////////////////////////////////////////////////////////////////////
90  ///
91  /// C_Attlist --
92  ///
93 
94  class C_Attlist : public CSerialObject
95  {
97  public:
98  // constructor
99  C_Attlist(void);
100  // destructor
101  ~C_Attlist(void);
102 
103  // type info
105 
106  // types
107  typedef string TId;
108  typedef string TXref;
109  typedef string TClass;
110  typedef string TStyle;
111  typedef string THref;
112  typedef string TMathcolor;
113  typedef string TMathbackground;
114  typedef string TPosition;
115  typedef string TShift;
116  typedef string TLongdivstyle;
117 
118  // member index
119  enum class E_memberIndex {
120  e__allMandatory = 0,
121  e_id,
122  e_xref,
123  e_class,
124  e_style,
125  e_href,
126  e_mathcolor,
128  e_position,
129  e_shift,
131  };
133 
134  // getters
135  // setters
136 
137  /// Check if a value has been assigned to Id data member.
138  ///
139  /// Data member Id is optional;
140  /// its type is defined as 'typedef string TId'
141  /// @return
142  /// - true, if a value has been assigned.
143  /// - false, otherwise.
144  bool IsSetId(void) const;
145 
146  /// Check if it is safe to call GetId method.
147  ///
148  /// @return
149  /// - true, if the data member is getatable.
150  /// - false, otherwise.
151  bool CanGetId(void) const;
152 
153  /// Reset Id data member.
154  void ResetId(void);
155 
156  /// Get the Id member data.
157  ///
158  /// @return
159  /// Reference to the member data.
160  const TId& GetId(void) const;
161 
162  /// Assign a value to Id data member.
163  ///
164  /// @param value
165  /// Value to assign
166  void SetId(const TId& value);
167  void SetId(TId&& value);
168 
169  /// Assign a value to Id data member.
170  ///
171  /// @return
172  /// Reference to the data value.
173  TId& SetId(void);
174 
175  /// Check if a value has been assigned to Xref data member.
176  ///
177  /// Data member Xref is optional;
178  /// its type is defined as 'typedef string TXref'
179  /// @return
180  /// - true, if a value has been assigned.
181  /// - false, otherwise.
182  bool IsSetXref(void) const;
183 
184  /// Check if it is safe to call GetXref method.
185  ///
186  /// @return
187  /// - true, if the data member is getatable.
188  /// - false, otherwise.
189  bool CanGetXref(void) const;
190 
191  /// Reset Xref data member.
192  void ResetXref(void);
193 
194  /// Get the Xref member data.
195  ///
196  /// @return
197  /// Reference to the member data.
198  const TXref& GetXref(void) const;
199 
200  /// Assign a value to Xref data member.
201  ///
202  /// @param value
203  /// Value to assign
204  void SetXref(const TXref& value);
205  void SetXref(TXref&& value);
206 
207  /// Assign a value to Xref data member.
208  ///
209  /// @return
210  /// Reference to the data value.
211  TXref& SetXref(void);
212 
213  /// Check if a value has been assigned to Class data member.
214  ///
215  /// Data member Class is optional;
216  /// its type is defined as 'typedef string TClass'
217  /// @return
218  /// - true, if a value has been assigned.
219  /// - false, otherwise.
220  bool IsSetClass(void) const;
221 
222  /// Check if it is safe to call GetClass method.
223  ///
224  /// @return
225  /// - true, if the data member is getatable.
226  /// - false, otherwise.
227  bool CanGetClass(void) const;
228 
229  /// Reset Class data member.
230  void ResetClass(void);
231 
232  /// Get the Class member data.
233  ///
234  /// @return
235  /// Reference to the member data.
236  const TClass& GetClass(void) const;
237 
238  /// Assign a value to Class data member.
239  ///
240  /// @param value
241  /// Value to assign
242  void SetClass(const TClass& value);
243  void SetClass(TClass&& value);
244 
245  /// Assign a value to Class data member.
246  ///
247  /// @return
248  /// Reference to the data value.
249  TClass& SetClass(void);
250 
251  /// Check if a value has been assigned to Style data member.
252  ///
253  /// Data member Style is optional;
254  /// its type is defined as 'typedef string TStyle'
255  /// @return
256  /// - true, if a value has been assigned.
257  /// - false, otherwise.
258  bool IsSetStyle(void) const;
259 
260  /// Check if it is safe to call GetStyle method.
261  ///
262  /// @return
263  /// - true, if the data member is getatable.
264  /// - false, otherwise.
265  bool CanGetStyle(void) const;
266 
267  /// Reset Style data member.
268  void ResetStyle(void);
269 
270  /// Get the Style member data.
271  ///
272  /// @return
273  /// Reference to the member data.
274  const TStyle& GetStyle(void) const;
275 
276  /// Assign a value to Style data member.
277  ///
278  /// @param value
279  /// Value to assign
280  void SetStyle(const TStyle& value);
281  void SetStyle(TStyle&& value);
282 
283  /// Assign a value to Style data member.
284  ///
285  /// @return
286  /// Reference to the data value.
287  TStyle& SetStyle(void);
288 
289  /// Check if a value has been assigned to Href data member.
290  ///
291  /// Data member Href is optional;
292  /// its type is defined as 'typedef string THref'
293  /// @return
294  /// - true, if a value has been assigned.
295  /// - false, otherwise.
296  bool IsSetHref(void) const;
297 
298  /// Check if it is safe to call GetHref method.
299  ///
300  /// @return
301  /// - true, if the data member is getatable.
302  /// - false, otherwise.
303  bool CanGetHref(void) const;
304 
305  /// Reset Href data member.
306  void ResetHref(void);
307 
308  /// Get the Href member data.
309  ///
310  /// @return
311  /// Reference to the member data.
312  const THref& GetHref(void) const;
313 
314  /// Assign a value to Href data member.
315  ///
316  /// @param value
317  /// Value to assign
318  void SetHref(const THref& value);
319  void SetHref(THref&& value);
320 
321  /// Assign a value to Href data member.
322  ///
323  /// @return
324  /// Reference to the data value.
325  THref& SetHref(void);
326 
327  /// Check if a value has been assigned to Mathcolor data member.
328  ///
329  /// Data member Mathcolor is optional;
330  /// its type is defined as 'typedef string TMathcolor'
331  /// @return
332  /// - true, if a value has been assigned.
333  /// - false, otherwise.
334  bool IsSetMathcolor(void) const;
335 
336  /// Check if it is safe to call GetMathcolor method.
337  ///
338  /// @return
339  /// - true, if the data member is getatable.
340  /// - false, otherwise.
341  bool CanGetMathcolor(void) const;
342 
343  /// Reset Mathcolor data member.
344  void ResetMathcolor(void);
345 
346  /// Get the Mathcolor member data.
347  ///
348  /// @return
349  /// Reference to the member data.
350  const TMathcolor& GetMathcolor(void) const;
351 
352  /// Assign a value to Mathcolor data member.
353  ///
354  /// @param value
355  /// Value to assign
356  void SetMathcolor(const TMathcolor& value);
357  void SetMathcolor(TMathcolor&& value);
358 
359  /// Assign a value to Mathcolor data member.
360  ///
361  /// @return
362  /// Reference to the data value.
363  TMathcolor& SetMathcolor(void);
364 
365  /// Check if a value has been assigned to Mathbackground data member.
366  ///
367  /// Data member Mathbackground is optional;
368  /// its type is defined as 'typedef string TMathbackground'
369  /// @return
370  /// - true, if a value has been assigned.
371  /// - false, otherwise.
372  bool IsSetMathbackground(void) const;
373 
374  /// Check if it is safe to call GetMathbackground method.
375  ///
376  /// @return
377  /// - true, if the data member is getatable.
378  /// - false, otherwise.
379  bool CanGetMathbackground(void) const;
380 
381  /// Reset Mathbackground data member.
382  void ResetMathbackground(void);
383 
384  /// Get the Mathbackground member data.
385  ///
386  /// @return
387  /// Reference to the member data.
388  const TMathbackground& GetMathbackground(void) const;
389 
390  /// Assign a value to Mathbackground data member.
391  ///
392  /// @param value
393  /// Value to assign
396 
397  /// Assign a value to Mathbackground data member.
398  ///
399  /// @return
400  /// Reference to the data value.
402 
403  /// Check if a value has been assigned to Position data member.
404  ///
405  /// Data member Position is optional;
406  /// its type is defined as 'typedef string TPosition'
407  /// @return
408  /// - true, if a value has been assigned.
409  /// - false, otherwise.
410  bool IsSetPosition(void) const;
411 
412  /// Check if it is safe to call GetPosition method.
413  ///
414  /// @return
415  /// - true, if the data member is getatable.
416  /// - false, otherwise.
417  bool CanGetPosition(void) const;
418 
419  /// Reset Position data member.
420  void ResetPosition(void);
421 
422  /// Get the Position member data.
423  ///
424  /// @return
425  /// Reference to the member data.
426  const TPosition& GetPosition(void) const;
427 
428  /// Assign a value to Position data member.
429  ///
430  /// @param value
431  /// Value to assign
432  void SetPosition(const TPosition& value);
433  void SetPosition(TPosition&& value);
434 
435  /// Assign a value to Position data member.
436  ///
437  /// @return
438  /// Reference to the data value.
439  TPosition& SetPosition(void);
440 
441  /// Check if a value has been assigned to Shift data member.
442  ///
443  /// Data member Shift is optional;
444  /// its type is defined as 'typedef string TShift'
445  /// @return
446  /// - true, if a value has been assigned.
447  /// - false, otherwise.
448  bool IsSetShift(void) const;
449 
450  /// Check if it is safe to call GetShift method.
451  ///
452  /// @return
453  /// - true, if the data member is getatable.
454  /// - false, otherwise.
455  bool CanGetShift(void) const;
456 
457  /// Reset Shift data member.
458  void ResetShift(void);
459 
460  /// Get the Shift member data.
461  ///
462  /// @return
463  /// Reference to the member data.
464  const TShift& GetShift(void) const;
465 
466  /// Assign a value to Shift data member.
467  ///
468  /// @param value
469  /// Value to assign
470  void SetShift(const TShift& value);
471  void SetShift(TShift&& value);
472 
473  /// Assign a value to Shift data member.
474  ///
475  /// @return
476  /// Reference to the data value.
477  TShift& SetShift(void);
478 
479  /// Check if a value has been assigned to Longdivstyle data member.
480  ///
481  /// Data member Longdivstyle is optional;
482  /// its type is defined as 'typedef string TLongdivstyle'
483  /// @return
484  /// - true, if a value has been assigned.
485  /// - false, otherwise.
486  bool IsSetLongdivstyle(void) const;
487 
488  /// Check if it is safe to call GetLongdivstyle method.
489  ///
490  /// @return
491  /// - true, if the data member is getatable.
492  /// - false, otherwise.
493  bool CanGetLongdivstyle(void) const;
494 
495  /// Reset Longdivstyle data member.
496  void ResetLongdivstyle(void);
497 
498  /// Get the Longdivstyle member data.
499  ///
500  /// @return
501  /// Reference to the member data.
502  const TLongdivstyle& GetLongdivstyle(void) const;
503 
504  /// Assign a value to Longdivstyle data member.
505  ///
506  /// @param value
507  /// Value to assign
508  void SetLongdivstyle(const TLongdivstyle& value);
510 
511  /// Assign a value to Longdivstyle data member.
512  ///
513  /// @return
514  /// Reference to the data value.
516 
517  /// Reset the whole object
518  void Reset(void);
519 
520 
521  private:
522  // Prohibit copy constructor and assignment operator
525 
526  // data
528  string m_Id;
529  string m_Xref;
530  string m_Class;
531  string m_Style;
532  string m_Href;
533  string m_Mathcolor;
535  string m_Position;
536  string m_Shift;
538  };
539  /////////////////////////////////////////////////////////////////////////////
540  ///
541  /// C_MstackExpression --
542  ///
543 
545  {
547  public:
548  // constructor
549  C_MstackExpression(void);
550  // destructor
551  ~C_MstackExpression(void);
552 
553  // type info
555 
556  // types
558  typedef list< CRef< CMstackExpression > > TMstackExpression;
559 
560  // member index
561  enum class E_memberIndex {
562  e__allMandatory = 0,
564  };
566 
567  // getters
568  // setters
569 
570  /// Check if a value has been assigned to MstackExpression data member.
571  ///
572  /// Data member MstackExpression is mandatory;
573  /// its type is defined as 'typedef list< CRef< CMstackExpression > > TMstackExpression'
574  /// @return
575  /// - true, if a value has been assigned.
576  /// - false, otherwise.
577  bool IsSetMstackExpression(void) const;
578 
579  /// Check if it is safe to call GetMstackExpression method.
580  ///
581  /// @return
582  /// - true, if the data member is getatable.
583  /// - false, otherwise.
584  bool CanGetMstackExpression(void) const;
585 
586  /// Reset MstackExpression data member.
587  void ResetMstackExpression(void);
588 
589  /// Get the MstackExpression member data.
590  ///
591  /// @return
592  /// Reference to the member data.
593  const TMstackExpression& GetMstackExpression(void) const;
594 
595  /// Assign a value to MstackExpression data member.
596  ///
597  /// @return
598  /// Reference to the data value.
600 
601  /// Reset the whole object
602  void Reset(void);
603 
604 
605  private:
606  // Prohibit copy constructor and assignment operator
609 
610  // data
612  list< CRef< CMstackExpression > > m_MstackExpression;
613  };
614  // types
617 
618  // member index
619  enum class E_memberIndex {
620  e__allMandatory = 0,
621  e_Attlist,
623  };
625 
626  // getters
627  // setters
628 
629  /// Check if a value has been assigned to Attlist data member.
630  ///
631  /// Data member Attlist is mandatory;
632  /// its type is defined as 'typedef C_Attlist TAttlist'
633  /// @return
634  /// - true, if a value has been assigned.
635  /// - false, otherwise.
636  bool IsSetAttlist(void) const;
637 
638  /// Check if it is safe to call GetAttlist method.
639  ///
640  /// @return
641  /// - true, if the data member is getatable.
642  /// - false, otherwise.
643  bool CanGetAttlist(void) const;
644 
645  /// Reset Attlist data member.
646  void ResetAttlist(void);
647 
648  /// Get the Attlist member data.
649  ///
650  /// @return
651  /// Reference to the member data.
652  const TAttlist& GetAttlist(void) const;
653 
654  /// Assign a value to Attlist data member.
655  ///
656  /// @param value
657  /// Reference to value.
658  void SetAttlist(TAttlist& value);
659 
660  /// Assign a value to Attlist data member.
661  ///
662  /// @return
663  /// Reference to the data value.
664  TAttlist& SetAttlist(void);
665 
666  /// Check if a value has been assigned to MstackExpression data member.
667  ///
668  /// Data member MstackExpression is mandatory;
669  /// its type is defined as 'typedef C_MstackExpression TMstackExpression'
670  /// @return
671  /// - true, if a value has been assigned.
672  /// - false, otherwise.
673  bool IsSetMstackExpression(void) const;
674 
675  /// Check if it is safe to call GetMstackExpression method.
676  ///
677  /// @return
678  /// - true, if the data member is getatable.
679  /// - false, otherwise.
680  bool CanGetMstackExpression(void) const;
681 
682  /// Reset MstackExpression data member.
683  void ResetMstackExpression(void);
684 
685  /// Get the MstackExpression member data.
686  ///
687  /// @return
688  /// Reference to the member data.
689  const TMstackExpression& GetMstackExpression(void) const;
690 
691  /// Assign a value to MstackExpression data member.
692  ///
693  /// @param value
694  /// Reference to value.
696 
697  /// Assign a value to MstackExpression data member.
698  ///
699  /// @return
700  /// Reference to the data value.
702 
703  /// Reset the whole object
704  virtual void Reset(void);
705 
706 
707 private:
708  // Prohibit copy constructor and assignment operator
711 
712  // data
716 };
717 
718 /* @} */
719 
720 
721 
722 
723 
724 ///////////////////////////////////////////////////////////
725 ///////////////////// inline methods //////////////////////
726 ///////////////////////////////////////////////////////////
727 inline
729 {
730  return ((m_set_State[0] & 0x3) != 0);
731 }
732 
733 inline
735 {
736  return IsSetId();
737 }
738 
739 inline
741 {
742  if (!CanGetId()) {
743  ThrowUnassigned(0);
744  }
745  return m_Id;
746 }
747 
748 inline
750 {
751  m_Id = value;
752  m_set_State[0] |= 0x3;
753 }
754 
755 inline
757 {
758  m_Id = std::forward<CMlongdiv_Base::C_Attlist::TId>(value);
759  m_set_State[0] |= 0x3;
760 }
761 
762 inline
764 {
765 #ifdef _DEBUG
766  if (!IsSetId()) {
767  m_Id = UnassignedString();
768  }
769 #endif
770  m_set_State[0] |= 0x1;
771  return m_Id;
772 }
773 
774 inline
776 {
777  return ((m_set_State[0] & 0xc) != 0);
778 }
779 
780 inline
782 {
783  return IsSetXref();
784 }
785 
786 inline
788 {
789  if (!CanGetXref()) {
790  ThrowUnassigned(1);
791  }
792  return m_Xref;
793 }
794 
795 inline
797 {
798  m_Xref = value;
799  m_set_State[0] |= 0xc;
800 }
801 
802 inline
804 {
805  m_Xref = std::forward<CMlongdiv_Base::C_Attlist::TXref>(value);
806  m_set_State[0] |= 0xc;
807 }
808 
809 inline
811 {
812 #ifdef _DEBUG
813  if (!IsSetXref()) {
814  m_Xref = UnassignedString();
815  }
816 #endif
817  m_set_State[0] |= 0x4;
818  return m_Xref;
819 }
820 
821 inline
823 {
824  return ((m_set_State[0] & 0x30) != 0);
825 }
826 
827 inline
829 {
830  return IsSetClass();
831 }
832 
833 inline
835 {
836  if (!CanGetClass()) {
837  ThrowUnassigned(2);
838  }
839  return m_Class;
840 }
841 
842 inline
844 {
845  m_Class = value;
846  m_set_State[0] |= 0x30;
847 }
848 
849 inline
851 {
852  m_Class = std::forward<CMlongdiv_Base::C_Attlist::TClass>(value);
853  m_set_State[0] |= 0x30;
854 }
855 
856 inline
858 {
859 #ifdef _DEBUG
860  if (!IsSetClass()) {
861  m_Class = UnassignedString();
862  }
863 #endif
864  m_set_State[0] |= 0x10;
865  return m_Class;
866 }
867 
868 inline
870 {
871  return ((m_set_State[0] & 0xc0) != 0);
872 }
873 
874 inline
876 {
877  return IsSetStyle();
878 }
879 
880 inline
882 {
883  if (!CanGetStyle()) {
884  ThrowUnassigned(3);
885  }
886  return m_Style;
887 }
888 
889 inline
891 {
892  m_Style = value;
893  m_set_State[0] |= 0xc0;
894 }
895 
896 inline
898 {
899  m_Style = std::forward<CMlongdiv_Base::C_Attlist::TStyle>(value);
900  m_set_State[0] |= 0xc0;
901 }
902 
903 inline
905 {
906 #ifdef _DEBUG
907  if (!IsSetStyle()) {
908  m_Style = UnassignedString();
909  }
910 #endif
911  m_set_State[0] |= 0x40;
912  return m_Style;
913 }
914 
915 inline
917 {
918  return ((m_set_State[0] & 0x300) != 0);
919 }
920 
921 inline
923 {
924  return IsSetHref();
925 }
926 
927 inline
929 {
930  if (!CanGetHref()) {
931  ThrowUnassigned(4);
932  }
933  return m_Href;
934 }
935 
936 inline
938 {
939  m_Href = value;
940  m_set_State[0] |= 0x300;
941 }
942 
943 inline
945 {
946  m_Href = std::forward<CMlongdiv_Base::C_Attlist::THref>(value);
947  m_set_State[0] |= 0x300;
948 }
949 
950 inline
952 {
953 #ifdef _DEBUG
954  if (!IsSetHref()) {
955  m_Href = UnassignedString();
956  }
957 #endif
958  m_set_State[0] |= 0x100;
959  return m_Href;
960 }
961 
962 inline
964 {
965  return ((m_set_State[0] & 0xc00) != 0);
966 }
967 
968 inline
970 {
971  return IsSetMathcolor();
972 }
973 
974 inline
976 {
977  if (!CanGetMathcolor()) {
978  ThrowUnassigned(5);
979  }
980  return m_Mathcolor;
981 }
982 
983 inline
985 {
986  m_Mathcolor = value;
987  m_set_State[0] |= 0xc00;
988 }
989 
990 inline
992 {
993  m_Mathcolor = std::forward<CMlongdiv_Base::C_Attlist::TMathcolor>(value);
994  m_set_State[0] |= 0xc00;
995 }
996 
997 inline
999 {
1000 #ifdef _DEBUG
1001  if (!IsSetMathcolor()) {
1002  m_Mathcolor = UnassignedString();
1003  }
1004 #endif
1005  m_set_State[0] |= 0x400;
1006  return m_Mathcolor;
1007 }
1008 
1009 inline
1011 {
1012  return ((m_set_State[0] & 0x3000) != 0);
1013 }
1014 
1015 inline
1017 {
1018  return IsSetMathbackground();
1019 }
1020 
1021 inline
1023 {
1024  if (!CanGetMathbackground()) {
1025  ThrowUnassigned(6);
1026  }
1027  return m_Mathbackground;
1028 }
1029 
1030 inline
1032 {
1033  m_Mathbackground = value;
1034  m_set_State[0] |= 0x3000;
1035 }
1036 
1037 inline
1039 {
1040  m_Mathbackground = std::forward<CMlongdiv_Base::C_Attlist::TMathbackground>(value);
1041  m_set_State[0] |= 0x3000;
1042 }
1043 
1044 inline
1046 {
1047 #ifdef _DEBUG
1048  if (!IsSetMathbackground()) {
1049  m_Mathbackground = UnassignedString();
1050  }
1051 #endif
1052  m_set_State[0] |= 0x1000;
1053  return m_Mathbackground;
1054 }
1055 
1056 inline
1058 {
1059  return ((m_set_State[0] & 0xc000) != 0);
1060 }
1061 
1062 inline
1064 {
1065  return IsSetPosition();
1066 }
1067 
1068 inline
1070 {
1071  if (!CanGetPosition()) {
1072  ThrowUnassigned(7);
1073  }
1074  return m_Position;
1075 }
1076 
1077 inline
1079 {
1080  m_Position = value;
1081  m_set_State[0] |= 0xc000;
1082 }
1083 
1084 inline
1086 {
1087  m_Position = std::forward<CMlongdiv_Base::C_Attlist::TPosition>(value);
1088  m_set_State[0] |= 0xc000;
1089 }
1090 
1091 inline
1093 {
1094 #ifdef _DEBUG
1095  if (!IsSetPosition()) {
1096  m_Position = UnassignedString();
1097  }
1098 #endif
1099  m_set_State[0] |= 0x4000;
1100  return m_Position;
1101 }
1102 
1103 inline
1105 {
1106  return ((m_set_State[0] & 0x30000) != 0);
1107 }
1108 
1109 inline
1111 {
1112  return IsSetShift();
1113 }
1114 
1115 inline
1117 {
1118  if (!CanGetShift()) {
1119  ThrowUnassigned(8);
1120  }
1121  return m_Shift;
1122 }
1123 
1124 inline
1126 {
1127  m_Shift = value;
1128  m_set_State[0] |= 0x30000;
1129 }
1130 
1131 inline
1133 {
1134  m_Shift = std::forward<CMlongdiv_Base::C_Attlist::TShift>(value);
1135  m_set_State[0] |= 0x30000;
1136 }
1137 
1138 inline
1140 {
1141 #ifdef _DEBUG
1142  if (!IsSetShift()) {
1143  m_Shift = UnassignedString();
1144  }
1145 #endif
1146  m_set_State[0] |= 0x10000;
1147  return m_Shift;
1148 }
1149 
1150 inline
1152 {
1153  return ((m_set_State[0] & 0xc0000) != 0);
1154 }
1155 
1156 inline
1158 {
1159  return IsSetLongdivstyle();
1160 }
1161 
1162 inline
1164 {
1165  if (!CanGetLongdivstyle()) {
1166  ThrowUnassigned(9);
1167  }
1168  return m_Longdivstyle;
1169 }
1170 
1171 inline
1173 {
1174  m_Longdivstyle = value;
1175  m_set_State[0] |= 0xc0000;
1176 }
1177 
1178 inline
1180 {
1181  m_Longdivstyle = std::forward<CMlongdiv_Base::C_Attlist::TLongdivstyle>(value);
1182  m_set_State[0] |= 0xc0000;
1183 }
1184 
1185 inline
1187 {
1188 #ifdef _DEBUG
1189  if (!IsSetLongdivstyle()) {
1190  m_Longdivstyle = UnassignedString();
1191  }
1192 #endif
1193  m_set_State[0] |= 0x40000;
1194  return m_Longdivstyle;
1195 }
1196 
1197 inline
1199 {
1200  return ((m_set_State[0] & 0x3) != 0);
1201 }
1202 
1203 inline
1205 {
1206  return true;
1207 }
1208 
1209 inline
1211 {
1212  return m_MstackExpression;
1213 }
1214 
1215 inline
1217 {
1218  m_set_State[0] |= 0x1;
1219  return m_MstackExpression;
1220 }
1221 
1222 inline
1224 {
1225  return m_Attlist.NotEmpty();
1226 }
1227 
1228 inline
1230 {
1231  return true;
1232 }
1233 
1234 inline
1236 {
1237  if ( !m_Attlist ) {
1238  const_cast<CMlongdiv_Base*>(this)->ResetAttlist();
1239  }
1240  return (*m_Attlist);
1241 }
1242 
1243 inline
1245 {
1246  if ( !m_Attlist ) {
1247  ResetAttlist();
1248  }
1249  return (*m_Attlist);
1250 }
1251 
1252 inline
1254 {
1255  return m_MstackExpression.NotEmpty();
1256 }
1257 
1258 inline
1260 {
1261  return true;
1262 }
1263 
1264 inline
1266 {
1267  if ( !m_MstackExpression ) {
1268  const_cast<CMlongdiv_Base*>(this)->ResetMstackExpression();
1269  }
1270  return (*m_MstackExpression);
1271 }
1272 
1273 inline
1275 {
1276  if ( !m_MstackExpression ) {
1278  }
1279  return (*m_MstackExpression);
1280 }
1281 
1282 ///////////////////////////////////////////////////////////
1283 ////////////////// end of inline methods //////////////////
1284 ///////////////////////////////////////////////////////////
1285 
1286 
1287 
1288 
1289 
1290 END_objects_SCOPE // namespace ncbi::objects::
1291 
1293 
1294 
1295 #endif // OBJTOOLS_EUTILS_EFETCH_MLONGDIV_BASE_HPP
C_MstackExpression –.
Definition: Mlongdiv_.hpp:545
CMlongdiv_Base –.
Definition: Mlongdiv_.hpp:78
CMstackExpression –.
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
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
void ResetClass(void)
Reset Class data member.
Definition: Mlongdiv_.cpp:63
TStyle & SetStyle(void)
Assign a value to Style data member.
Definition: Mlongdiv_.hpp:904
C_MstackExpression(const C_MstackExpression &)
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
Definition: Mlongdiv_.hpp:781
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
Definition: Mlongdiv_.hpp:922
bool CanGetMstackExpression(void) const
Check if it is safe to call GetMstackExpression method.
Definition: Mlongdiv_.hpp:1204
bool CanGetShift(void) const
Check if it is safe to call GetShift method.
Definition: Mlongdiv_.hpp:1110
const TShift & GetShift(void) const
Get the Shift member data.
Definition: Mlongdiv_.hpp:1116
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
Definition: Mlongdiv_.hpp:822
TId & SetId(void)
Assign a value to Id data member.
Definition: Mlongdiv_.hpp:763
CMlongdiv_Base(void)
Definition: Mlongdiv_.cpp:238
bool IsSetPosition(void) const
Check if a value has been assigned to Position data member.
Definition: Mlongdiv_.hpp:1057
list< CRef< CMstackExpression > > TMstackExpression
Definition: Mlongdiv_.hpp:558
void ResetShift(void)
Reset Shift data member.
Definition: Mlongdiv_.cpp:99
TClass & SetClass(void)
Assign a value to Class data member.
Definition: Mlongdiv_.hpp:857
void ResetLongdivstyle(void)
Reset Longdivstyle data member.
Definition: Mlongdiv_.cpp:105
bool CanGetMstackExpression(void) const
Check if it is safe to call GetMstackExpression method.
Definition: Mlongdiv_.hpp:1259
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
Definition: Mlongdiv_.hpp:869
const THref & GetHref(void) const
Get the Href member data.
Definition: Mlongdiv_.hpp:928
const TPosition & GetPosition(void) const
Get the Position member data.
Definition: Mlongdiv_.hpp:1069
Tparent::CMemberIndex< E_memberIndex, 11 > TmemberIndex
Definition: Mlongdiv_.hpp:132
const TMstackExpression & GetMstackExpression(void) const
Get the MstackExpression member data.
Definition: Mlongdiv_.hpp:1265
bool CanGetLongdivstyle(void) const
Check if it is safe to call GetLongdivstyle method.
Definition: Mlongdiv_.hpp:1157
Tparent::CMemberIndex< E_memberIndex, 2 > TmemberIndex
Definition: Mlongdiv_.hpp:565
const TClass & GetClass(void) const
Get the Class member data.
Definition: Mlongdiv_.hpp:834
virtual void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:219
const TStyle & GetStyle(void) const
Get the Style member data.
Definition: Mlongdiv_.hpp:881
const TXref & GetXref(void) const
Get the Xref member data.
Definition: Mlongdiv_.hpp:787
const TMathcolor & GetMathcolor(void) const
Get the Mathcolor member data.
Definition: Mlongdiv_.hpp:975
Uint4 m_set_State[1]
Definition: Mlongdiv_.hpp:713
void ResetMstackExpression(void)
Reset MstackExpression data member.
Definition: Mlongdiv_.cpp:157
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
Definition: Mlongdiv_.hpp:624
bool IsSetMathbackground(void) const
Check if a value has been assigned to Mathbackground data member.
Definition: Mlongdiv_.hpp:1010
bool CanGetMathcolor(void) const
Check if it is safe to call GetMathcolor method.
Definition: Mlongdiv_.hpp:969
void ResetMstackExpression(void)
Reset MstackExpression data member.
Definition: Mlongdiv_.cpp:205
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
Definition: Mlongdiv_.hpp:728
TMathbackground & SetMathbackground(void)
Assign a value to Mathbackground data member.
Definition: Mlongdiv_.hpp:1045
void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:163
void ResetStyle(void)
Reset Style data member.
Definition: Mlongdiv_.cpp:69
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Definition: Mlongdiv_.hpp:1223
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Definition: Mlongdiv_.hpp:828
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetPosition(void) const
Check if it is safe to call GetPosition method.
Definition: Mlongdiv_.hpp:1063
void ResetXref(void)
Reset Xref data member.
Definition: Mlongdiv_.cpp:57
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
Definition: Mlongdiv_.hpp:775
TPosition & SetPosition(void)
Assign a value to Position data member.
Definition: Mlongdiv_.hpp:1092
TMathcolor & SetMathcolor(void)
Assign a value to Mathcolor data member.
Definition: Mlongdiv_.hpp:998
THref & SetHref(void)
Assign a value to Href data member.
Definition: Mlongdiv_.hpp:951
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mlongdiv_.hpp:1244
TMstackExpression & SetMstackExpression(void)
Assign a value to MstackExpression data member.
Definition: Mlongdiv_.hpp:1216
bool IsSetMstackExpression(void) const
Check if a value has been assigned to MstackExpression data member.
Definition: Mlongdiv_.hpp:1198
TLongdivstyle & SetLongdivstyle(void)
Assign a value to Longdivstyle data member.
Definition: Mlongdiv_.hpp:1186
C_Attlist(const C_Attlist &)
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
Definition: Mlongdiv_.hpp:875
const TMathbackground & GetMathbackground(void) const
Get the Mathbackground member data.
Definition: Mlongdiv_.hpp:1022
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mlongdiv_.cpp:191
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
Definition: Mlongdiv_.hpp:916
C_MstackExpression TMstackExpression
Definition: Mlongdiv_.hpp:616
C_Attlist & operator=(const C_Attlist &)
TShift & SetShift(void)
Assign a value to Shift data member.
Definition: Mlongdiv_.hpp:1139
void ResetId(void)
Reset Id data member.
Definition: Mlongdiv_.cpp:51
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
Definition: Mlongdiv_.hpp:1229
bool IsSetShift(void) const
Check if a value has been assigned to Shift data member.
Definition: Mlongdiv_.hpp:1104
const TLongdivstyle & GetLongdivstyle(void) const
Get the Longdivstyle member data.
Definition: Mlongdiv_.hpp:1163
void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:111
virtual ~CMlongdiv_Base(void)
Definition: Mlongdiv_.cpp:248
bool CanGetMathbackground(void) const
Check if it is safe to call GetMathbackground method.
Definition: Mlongdiv_.hpp:1016
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mlongdiv_.cpp:87
bool CanGetId(void) const
Check if it is safe to call GetId method.
Definition: Mlongdiv_.hpp:734
CMlongdiv_Base(const CMlongdiv_Base &)
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
Definition: Mlongdiv_.hpp:1235
bool IsSetLongdivstyle(void) const
Check if a value has been assigned to Longdivstyle data member.
Definition: Mlongdiv_.hpp:1151
C_Attlist TAttlist
Definition: Mlongdiv_.hpp:615
CMlongdiv_Base & operator=(const CMlongdiv_Base &)
CRef< TAttlist > m_Attlist
Definition: Mlongdiv_.hpp:714
CSerialObject Tparent
Definition: Mlongdiv_.hpp:79
C_MstackExpression & operator=(const C_MstackExpression &)
TMstackExpression & SetMstackExpression(void)
Assign a value to MstackExpression data member.
Definition: Mlongdiv_.hpp:1274
void ResetHref(void)
Reset Href data member.
Definition: Mlongdiv_.cpp:75
TXref & SetXref(void)
Assign a value to Xref data member.
Definition: Mlongdiv_.hpp:810
const TId & GetId(void) const
Get the Id member data.
Definition: Mlongdiv_.hpp:740
void ResetPosition(void)
Reset Position data member.
Definition: Mlongdiv_.cpp:93
const TMstackExpression & GetMstackExpression(void) const
Get the MstackExpression member data.
Definition: Mlongdiv_.hpp:1210
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mlongdiv_.cpp:81
CRef< TMstackExpression > m_MstackExpression
Definition: Mlongdiv_.hpp:715
list< CRef< CMstackExpression > > m_MstackExpression
Definition: Mlongdiv_.hpp:612
bool IsSetMstackExpression(void) const
Check if a value has been assigned to MstackExpression data member.
Definition: Mlongdiv_.hpp:1253
bool IsSetMathcolor(void) const
Check if a value has been assigned to Mathcolor data member.
Definition: Mlongdiv_.hpp:963
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:33 2024 by modify_doxy.py rev. 669887