NCBI C++ ToolKit
List_.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 List_.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_LIST_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_LIST_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #include <string>
53 
55 
56 #ifndef BEGIN_objects_SCOPE
57 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
58 # define END_objects_SCOPE END_SCOPE(objects)
59 #endif
60 BEGIN_objects_SCOPE // namespace ncbi::objects::
61 
62 
63 // generated classes
64 
65 
66 /** @addtogroup dataspec_pubmed_mathml3
67  *
68  * @{
69  */
70 
71 /////////////////////////////////////////////////////////////////////////////
72 ///
73 /// CList_Base --
74 ///
75 
76 class CList_Base : public CSerialObject
77 {
79 public:
80  // constructor
81  CList_Base(void);
82  // destructor
83  virtual ~CList_Base(void);
84 
85  // type info
87 
88  /////////////////////////////////////////////////////////////////////////////
89  ///
90  /// C_Attlist --
91  ///
92 
93  class C_Attlist : public CSerialObject
94  {
96  public:
97  // constructor
98  C_Attlist(void);
99  // destructor
100  ~C_Attlist(void);
101 
102  // type info
104 
108  };
109 
110  /// Access to EAttlist_order's attributes (values, names) as defined in spec
111  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_order)(void);
112 
113  // types
114  typedef string TId;
115  typedef string TXref;
116  typedef string TClass;
117  typedef string TStyle;
118  typedef string THref;
119  typedef string TEncoding;
120  typedef string TDefinitionURL;
122 
123  // member index
124  enum class E_memberIndex {
125  e__allMandatory = 0,
126  e_id,
127  e_xref,
128  e_class,
129  e_style,
130  e_href,
131  e_encoding,
133  e_order
134  };
136 
137  // getters
138  // setters
139 
140  /// Check if a value has been assigned to Id data member.
141  ///
142  /// Data member Id is optional;
143  /// its type is defined as 'typedef string TId'
144  /// @return
145  /// - true, if a value has been assigned.
146  /// - false, otherwise.
147  bool IsSetId(void) const;
148 
149  /// Check if it is safe to call GetId method.
150  ///
151  /// @return
152  /// - true, if the data member is getatable.
153  /// - false, otherwise.
154  bool CanGetId(void) const;
155 
156  /// Reset Id data member.
157  void ResetId(void);
158 
159  /// Get the Id member data.
160  ///
161  /// @return
162  /// Reference to the member data.
163  const TId& GetId(void) const;
164 
165  /// Assign a value to Id data member.
166  ///
167  /// @param value
168  /// Value to assign
169  void SetId(const TId& value);
170  void SetId(TId&& value);
171 
172  /// Assign a value to Id data member.
173  ///
174  /// @return
175  /// Reference to the data value.
176  TId& SetId(void);
177 
178  /// Check if a value has been assigned to Xref data member.
179  ///
180  /// Data member Xref is optional;
181  /// its type is defined as 'typedef string TXref'
182  /// @return
183  /// - true, if a value has been assigned.
184  /// - false, otherwise.
185  bool IsSetXref(void) const;
186 
187  /// Check if it is safe to call GetXref method.
188  ///
189  /// @return
190  /// - true, if the data member is getatable.
191  /// - false, otherwise.
192  bool CanGetXref(void) const;
193 
194  /// Reset Xref data member.
195  void ResetXref(void);
196 
197  /// Get the Xref member data.
198  ///
199  /// @return
200  /// Reference to the member data.
201  const TXref& GetXref(void) const;
202 
203  /// Assign a value to Xref data member.
204  ///
205  /// @param value
206  /// Value to assign
207  void SetXref(const TXref& value);
208  void SetXref(TXref&& value);
209 
210  /// Assign a value to Xref data member.
211  ///
212  /// @return
213  /// Reference to the data value.
214  TXref& SetXref(void);
215 
216  /// Check if a value has been assigned to Class data member.
217  ///
218  /// Data member Class is optional;
219  /// its type is defined as 'typedef string TClass'
220  /// @return
221  /// - true, if a value has been assigned.
222  /// - false, otherwise.
223  bool IsSetClass(void) const;
224 
225  /// Check if it is safe to call GetClass method.
226  ///
227  /// @return
228  /// - true, if the data member is getatable.
229  /// - false, otherwise.
230  bool CanGetClass(void) const;
231 
232  /// Reset Class data member.
233  void ResetClass(void);
234 
235  /// Get the Class member data.
236  ///
237  /// @return
238  /// Reference to the member data.
239  const TClass& GetClass(void) const;
240 
241  /// Assign a value to Class data member.
242  ///
243  /// @param value
244  /// Value to assign
245  void SetClass(const TClass& value);
246  void SetClass(TClass&& value);
247 
248  /// Assign a value to Class data member.
249  ///
250  /// @return
251  /// Reference to the data value.
252  TClass& SetClass(void);
253 
254  /// Check if a value has been assigned to Style data member.
255  ///
256  /// Data member Style is optional;
257  /// its type is defined as 'typedef string TStyle'
258  /// @return
259  /// - true, if a value has been assigned.
260  /// - false, otherwise.
261  bool IsSetStyle(void) const;
262 
263  /// Check if it is safe to call GetStyle method.
264  ///
265  /// @return
266  /// - true, if the data member is getatable.
267  /// - false, otherwise.
268  bool CanGetStyle(void) const;
269 
270  /// Reset Style data member.
271  void ResetStyle(void);
272 
273  /// Get the Style member data.
274  ///
275  /// @return
276  /// Reference to the member data.
277  const TStyle& GetStyle(void) const;
278 
279  /// Assign a value to Style data member.
280  ///
281  /// @param value
282  /// Value to assign
283  void SetStyle(const TStyle& value);
284  void SetStyle(TStyle&& value);
285 
286  /// Assign a value to Style data member.
287  ///
288  /// @return
289  /// Reference to the data value.
290  TStyle& SetStyle(void);
291 
292  /// Check if a value has been assigned to Href data member.
293  ///
294  /// Data member Href is optional;
295  /// its type is defined as 'typedef string THref'
296  /// @return
297  /// - true, if a value has been assigned.
298  /// - false, otherwise.
299  bool IsSetHref(void) const;
300 
301  /// Check if it is safe to call GetHref method.
302  ///
303  /// @return
304  /// - true, if the data member is getatable.
305  /// - false, otherwise.
306  bool CanGetHref(void) const;
307 
308  /// Reset Href data member.
309  void ResetHref(void);
310 
311  /// Get the Href member data.
312  ///
313  /// @return
314  /// Reference to the member data.
315  const THref& GetHref(void) const;
316 
317  /// Assign a value to Href data member.
318  ///
319  /// @param value
320  /// Value to assign
321  void SetHref(const THref& value);
322  void SetHref(THref&& value);
323 
324  /// Assign a value to Href data member.
325  ///
326  /// @return
327  /// Reference to the data value.
328  THref& SetHref(void);
329 
330  /// Check if a value has been assigned to Encoding data member.
331  ///
332  /// Data member Encoding is optional;
333  /// its type is defined as 'typedef string TEncoding'
334  /// @return
335  /// - true, if a value has been assigned.
336  /// - false, otherwise.
337  bool IsSetEncoding(void) const;
338 
339  /// Check if it is safe to call GetEncoding method.
340  ///
341  /// @return
342  /// - true, if the data member is getatable.
343  /// - false, otherwise.
344  bool CanGetEncoding(void) const;
345 
346  /// Reset Encoding data member.
347  void ResetEncoding(void);
348 
349  /// Get the Encoding member data.
350  ///
351  /// @return
352  /// Reference to the member data.
353  const TEncoding& GetEncoding(void) const;
354 
355  /// Assign a value to Encoding data member.
356  ///
357  /// @param value
358  /// Value to assign
359  void SetEncoding(const TEncoding& value);
360  void SetEncoding(TEncoding&& value);
361 
362  /// Assign a value to Encoding data member.
363  ///
364  /// @return
365  /// Reference to the data value.
366  TEncoding& SetEncoding(void);
367 
368  /// Check if a value has been assigned to DefinitionURL data member.
369  ///
370  /// Data member DefinitionURL is optional;
371  /// its type is defined as 'typedef string TDefinitionURL'
372  /// @return
373  /// - true, if a value has been assigned.
374  /// - false, otherwise.
375  bool IsSetDefinitionURL(void) const;
376 
377  /// Check if it is safe to call GetDefinitionURL method.
378  ///
379  /// @return
380  /// - true, if the data member is getatable.
381  /// - false, otherwise.
382  bool CanGetDefinitionURL(void) const;
383 
384  /// Reset DefinitionURL data member.
385  void ResetDefinitionURL(void);
386 
387  /// Get the DefinitionURL member data.
388  ///
389  /// @return
390  /// Reference to the member data.
391  const TDefinitionURL& GetDefinitionURL(void) const;
392 
393  /// Assign a value to DefinitionURL data member.
394  ///
395  /// @param value
396  /// Value to assign
399 
400  /// Assign a value to DefinitionURL data member.
401  ///
402  /// @return
403  /// Reference to the data value.
405 
406  /// Check if a value has been assigned to Order data member.
407  ///
408  /// Data member Order is optional;
409  /// its type is defined as 'typedef EAttlist_order TOrder'
410  /// @return
411  /// - true, if a value has been assigned.
412  /// - false, otherwise.
413  bool IsSetOrder(void) const;
414 
415  /// Check if it is safe to call GetOrder method.
416  ///
417  /// @return
418  /// - true, if the data member is getatable.
419  /// - false, otherwise.
420  bool CanGetOrder(void) const;
421 
422  /// Reset Order data member.
423  void ResetOrder(void);
424 
425  /// Get the Order member data.
426  ///
427  /// @return
428  /// Copy of the member data.
429  TOrder GetOrder(void) const;
430 
431  /// Assign a value to Order data member.
432  ///
433  /// @param value
434  /// Value to assign
435  void SetOrder(TOrder value);
436 
437  /// Assign a value to Order data member.
438  ///
439  /// @return
440  /// Reference to the data value.
441  TOrder& SetOrder(void);
442 
443  /// Reset the whole object
444  void Reset(void);
445 
446 
447  private:
448  // Prohibit copy constructor and assignment operator
451 
452  // data
454  string m_Id;
455  string m_Xref;
456  string m_Class;
457  string m_Style;
458  string m_Href;
459  string m_Encoding;
462  };
463  /////////////////////////////////////////////////////////////////////////////
464  ///
465  /// C_E_BvarQ --
466  ///
467 
468  class C_E_BvarQ : public CBvarQ
469  {
470  typedef CBvarQ Tparent;
471  public:
472  C_E_BvarQ(void);
473 
474  // type info
476 
477  };
478  /////////////////////////////////////////////////////////////////////////////
479  ///
480  /// C_E_DomainQ --
481  ///
482 
483  class C_E_DomainQ : public CDomainQ
484  {
485  typedef CDomainQ Tparent;
486  public:
487  C_E_DomainQ(void);
488 
489  // type info
491 
492  };
493  /////////////////////////////////////////////////////////////////////////////
494  ///
495  /// C_E_ContExp --
496  ///
497 
498  class C_E_ContExp : public CContExp
499  {
500  typedef CContExp Tparent;
501  public:
502  C_E_ContExp(void);
503 
504  // type info
506 
507  };
508  // types
510  typedef list< CRef< C_E_BvarQ > > TBvarQ;
511  typedef list< CRef< C_E_DomainQ > > TDomainQ;
512  typedef list< CRef< C_E_ContExp > > TContExp;
513 
514  // member index
515  enum class E_memberIndex {
516  e__allMandatory = 0,
517  e_Attlist,
518  e_BvarQ,
519  e_DomainQ,
520  e_ContExp
521  };
523 
524  // getters
525  // setters
526 
527  /// Check if a value has been assigned to Attlist data member.
528  ///
529  /// Data member Attlist is mandatory;
530  /// its type is defined as 'typedef C_Attlist TAttlist'
531  /// @return
532  /// - true, if a value has been assigned.
533  /// - false, otherwise.
534  bool IsSetAttlist(void) const;
535 
536  /// Check if it is safe to call GetAttlist method.
537  ///
538  /// @return
539  /// - true, if the data member is getatable.
540  /// - false, otherwise.
541  bool CanGetAttlist(void) const;
542 
543  /// Reset Attlist data member.
544  void ResetAttlist(void);
545 
546  /// Get the Attlist member data.
547  ///
548  /// @return
549  /// Reference to the member data.
550  const TAttlist& GetAttlist(void) const;
551 
552  /// Assign a value to Attlist data member.
553  ///
554  /// @param value
555  /// Reference to value.
556  void SetAttlist(TAttlist& value);
557 
558  /// Assign a value to Attlist data member.
559  ///
560  /// @return
561  /// Reference to the data value.
562  TAttlist& SetAttlist(void);
563 
564  /// Check if a value has been assigned to BvarQ data member.
565  ///
566  /// Data member BvarQ is optional;
567  /// its type is defined as 'typedef list< CRef< C_E_BvarQ > > TBvarQ'
568  /// @return
569  /// - true, if a value has been assigned.
570  /// - false, otherwise.
571  bool IsSetBvarQ(void) const;
572 
573  /// Check if it is safe to call GetBvarQ method.
574  ///
575  /// @return
576  /// - true, if the data member is getatable.
577  /// - false, otherwise.
578  bool CanGetBvarQ(void) const;
579 
580  /// Reset BvarQ data member.
581  void ResetBvarQ(void);
582 
583  /// Get the BvarQ member data.
584  ///
585  /// @return
586  /// Reference to the member data.
587  const TBvarQ& GetBvarQ(void) const;
588 
589  /// Assign a value to BvarQ data member.
590  ///
591  /// @return
592  /// Reference to the data value.
593  TBvarQ& SetBvarQ(void);
594 
595  /// Check if a value has been assigned to DomainQ data member.
596  ///
597  /// Data member DomainQ is optional;
598  /// its type is defined as 'typedef list< CRef< C_E_DomainQ > > TDomainQ'
599  /// @return
600  /// - true, if a value has been assigned.
601  /// - false, otherwise.
602  bool IsSetDomainQ(void) const;
603 
604  /// Check if it is safe to call GetDomainQ method.
605  ///
606  /// @return
607  /// - true, if the data member is getatable.
608  /// - false, otherwise.
609  bool CanGetDomainQ(void) const;
610 
611  /// Reset DomainQ data member.
612  void ResetDomainQ(void);
613 
614  /// Get the DomainQ member data.
615  ///
616  /// @return
617  /// Reference to the member data.
618  const TDomainQ& GetDomainQ(void) const;
619 
620  /// Assign a value to DomainQ data member.
621  ///
622  /// @return
623  /// Reference to the data value.
624  TDomainQ& SetDomainQ(void);
625 
626  /// Check if a value has been assigned to ContExp data member.
627  ///
628  /// Data member ContExp is optional;
629  /// its type is defined as 'typedef list< CRef< C_E_ContExp > > TContExp'
630  /// @return
631  /// - true, if a value has been assigned.
632  /// - false, otherwise.
633  bool IsSetContExp(void) const;
634 
635  /// Check if it is safe to call GetContExp method.
636  ///
637  /// @return
638  /// - true, if the data member is getatable.
639  /// - false, otherwise.
640  bool CanGetContExp(void) const;
641 
642  /// Reset ContExp data member.
643  void ResetContExp(void);
644 
645  /// Get the ContExp member data.
646  ///
647  /// @return
648  /// Reference to the member data.
649  const TContExp& GetContExp(void) const;
650 
651  /// Assign a value to ContExp data member.
652  ///
653  /// @return
654  /// Reference to the data value.
655  TContExp& SetContExp(void);
656 
657  /// Reset the whole object
658  virtual void Reset(void);
659 
660 
661 private:
662  // Prohibit copy constructor and assignment operator
665 
666  // data
669  list< CRef< C_E_BvarQ > > m_BvarQ;
670  list< CRef< C_E_DomainQ > > m_DomainQ;
671  list< CRef< C_E_ContExp > > m_ContExp;
672 };
673 
674 /* @} */
675 
676 
677 
678 
679 
680 ///////////////////////////////////////////////////////////
681 ///////////////////// inline methods //////////////////////
682 ///////////////////////////////////////////////////////////
683 inline
685 {
686  return ((m_set_State[0] & 0x3) != 0);
687 }
688 
689 inline
691 {
692  return IsSetId();
693 }
694 
695 inline
697 {
698  if (!CanGetId()) {
699  ThrowUnassigned(0);
700  }
701  return m_Id;
702 }
703 
704 inline
706 {
707  m_Id = value;
708  m_set_State[0] |= 0x3;
709 }
710 
711 inline
713 {
714  m_Id = std::forward<CList_Base::C_Attlist::TId>(value);
715  m_set_State[0] |= 0x3;
716 }
717 
718 inline
720 {
721 #ifdef _DEBUG
722  if (!IsSetId()) {
723  m_Id = UnassignedString();
724  }
725 #endif
726  m_set_State[0] |= 0x1;
727  return m_Id;
728 }
729 
730 inline
732 {
733  return ((m_set_State[0] & 0xc) != 0);
734 }
735 
736 inline
738 {
739  return IsSetXref();
740 }
741 
742 inline
744 {
745  if (!CanGetXref()) {
746  ThrowUnassigned(1);
747  }
748  return m_Xref;
749 }
750 
751 inline
753 {
754  m_Xref = value;
755  m_set_State[0] |= 0xc;
756 }
757 
758 inline
760 {
761  m_Xref = std::forward<CList_Base::C_Attlist::TXref>(value);
762  m_set_State[0] |= 0xc;
763 }
764 
765 inline
767 {
768 #ifdef _DEBUG
769  if (!IsSetXref()) {
770  m_Xref = UnassignedString();
771  }
772 #endif
773  m_set_State[0] |= 0x4;
774  return m_Xref;
775 }
776 
777 inline
779 {
780  return ((m_set_State[0] & 0x30) != 0);
781 }
782 
783 inline
785 {
786  return IsSetClass();
787 }
788 
789 inline
791 {
792  if (!CanGetClass()) {
793  ThrowUnassigned(2);
794  }
795  return m_Class;
796 }
797 
798 inline
800 {
801  m_Class = value;
802  m_set_State[0] |= 0x30;
803 }
804 
805 inline
807 {
808  m_Class = std::forward<CList_Base::C_Attlist::TClass>(value);
809  m_set_State[0] |= 0x30;
810 }
811 
812 inline
814 {
815 #ifdef _DEBUG
816  if (!IsSetClass()) {
817  m_Class = UnassignedString();
818  }
819 #endif
820  m_set_State[0] |= 0x10;
821  return m_Class;
822 }
823 
824 inline
826 {
827  return ((m_set_State[0] & 0xc0) != 0);
828 }
829 
830 inline
832 {
833  return IsSetStyle();
834 }
835 
836 inline
838 {
839  if (!CanGetStyle()) {
840  ThrowUnassigned(3);
841  }
842  return m_Style;
843 }
844 
845 inline
847 {
848  m_Style = value;
849  m_set_State[0] |= 0xc0;
850 }
851 
852 inline
854 {
855  m_Style = std::forward<CList_Base::C_Attlist::TStyle>(value);
856  m_set_State[0] |= 0xc0;
857 }
858 
859 inline
861 {
862 #ifdef _DEBUG
863  if (!IsSetStyle()) {
864  m_Style = UnassignedString();
865  }
866 #endif
867  m_set_State[0] |= 0x40;
868  return m_Style;
869 }
870 
871 inline
873 {
874  return ((m_set_State[0] & 0x300) != 0);
875 }
876 
877 inline
879 {
880  return IsSetHref();
881 }
882 
883 inline
885 {
886  if (!CanGetHref()) {
887  ThrowUnassigned(4);
888  }
889  return m_Href;
890 }
891 
892 inline
894 {
895  m_Href = value;
896  m_set_State[0] |= 0x300;
897 }
898 
899 inline
901 {
902  m_Href = std::forward<CList_Base::C_Attlist::THref>(value);
903  m_set_State[0] |= 0x300;
904 }
905 
906 inline
908 {
909 #ifdef _DEBUG
910  if (!IsSetHref()) {
911  m_Href = UnassignedString();
912  }
913 #endif
914  m_set_State[0] |= 0x100;
915  return m_Href;
916 }
917 
918 inline
920 {
921  return ((m_set_State[0] & 0xc00) != 0);
922 }
923 
924 inline
926 {
927  return IsSetEncoding();
928 }
929 
930 inline
932 {
933  if (!CanGetEncoding()) {
934  ThrowUnassigned(5);
935  }
936  return m_Encoding;
937 }
938 
939 inline
941 {
942  m_Encoding = value;
943  m_set_State[0] |= 0xc00;
944 }
945 
946 inline
948 {
949  m_Encoding = std::forward<CList_Base::C_Attlist::TEncoding>(value);
950  m_set_State[0] |= 0xc00;
951 }
952 
953 inline
955 {
956 #ifdef _DEBUG
957  if (!IsSetEncoding()) {
958  m_Encoding = UnassignedString();
959  }
960 #endif
961  m_set_State[0] |= 0x400;
962  return m_Encoding;
963 }
964 
965 inline
967 {
968  return ((m_set_State[0] & 0x3000) != 0);
969 }
970 
971 inline
973 {
974  return IsSetDefinitionURL();
975 }
976 
977 inline
979 {
980  if (!CanGetDefinitionURL()) {
981  ThrowUnassigned(6);
982  }
983  return m_DefinitionURL;
984 }
985 
986 inline
988 {
989  m_DefinitionURL = value;
990  m_set_State[0] |= 0x3000;
991 }
992 
993 inline
995 {
996  m_DefinitionURL = std::forward<CList_Base::C_Attlist::TDefinitionURL>(value);
997  m_set_State[0] |= 0x3000;
998 }
999 
1000 inline
1002 {
1003 #ifdef _DEBUG
1004  if (!IsSetDefinitionURL()) {
1005  m_DefinitionURL = UnassignedString();
1006  }
1007 #endif
1008  m_set_State[0] |= 0x1000;
1009  return m_DefinitionURL;
1010 }
1011 
1012 inline
1014 {
1015  return ((m_set_State[0] & 0xc000) != 0);
1016 }
1017 
1018 inline
1020 {
1021  return IsSetOrder();
1022 }
1023 
1024 inline
1026 {
1027  m_Order = (EAttlist_order)(0);
1028  m_set_State[0] &= ~0xc000;
1029 }
1030 
1031 inline
1033 {
1034  if (!CanGetOrder()) {
1035  ThrowUnassigned(7);
1036  }
1037  return m_Order;
1038 }
1039 
1040 inline
1042 {
1043  m_Order = value;
1044  m_set_State[0] |= 0xc000;
1045 }
1046 
1047 inline
1049 {
1050 #ifdef _DEBUG
1051  if (!IsSetOrder()) {
1052  memset(&m_Order,UnassignedByte(),sizeof(m_Order));
1053  }
1054 #endif
1055  m_set_State[0] |= 0x4000;
1056  return m_Order;
1057 }
1058 
1059 inline
1061 {
1062 }
1063 
1064 inline
1066 {
1067 }
1068 
1069 inline
1071 {
1072 }
1073 
1074 inline
1076 {
1077  return m_Attlist.NotEmpty();
1078 }
1079 
1080 inline
1082 {
1083  return true;
1084 }
1085 
1086 inline
1088 {
1089  if ( !m_Attlist ) {
1090  const_cast<CList_Base*>(this)->ResetAttlist();
1091  }
1092  return (*m_Attlist);
1093 }
1094 
1095 inline
1097 {
1098  if ( !m_Attlist ) {
1099  ResetAttlist();
1100  }
1101  return (*m_Attlist);
1102 }
1103 
1104 inline
1105 bool CList_Base::IsSetBvarQ(void) const
1106 {
1107  return ((m_set_State[0] & 0xc) != 0);
1108 }
1109 
1110 inline
1111 bool CList_Base::CanGetBvarQ(void) const
1112 {
1113  return true;
1114 }
1115 
1116 inline
1118 {
1119  return m_BvarQ;
1120 }
1121 
1122 inline
1124 {
1125  m_set_State[0] |= 0x4;
1126  return m_BvarQ;
1127 }
1128 
1129 inline
1131 {
1132  return ((m_set_State[0] & 0x30) != 0);
1133 }
1134 
1135 inline
1137 {
1138  return true;
1139 }
1140 
1141 inline
1143 {
1144  return m_DomainQ;
1145 }
1146 
1147 inline
1149 {
1150  m_set_State[0] |= 0x10;
1151  return m_DomainQ;
1152 }
1153 
1154 inline
1156 {
1157  return ((m_set_State[0] & 0xc0) != 0);
1158 }
1159 
1160 inline
1162 {
1163  return true;
1164 }
1165 
1166 inline
1168 {
1169  return m_ContExp;
1170 }
1171 
1172 inline
1174 {
1175  m_set_State[0] |= 0x40;
1176  return m_ContExp;
1177 }
1178 
1179 ///////////////////////////////////////////////////////////
1180 ////////////////// end of inline methods //////////////////
1181 ///////////////////////////////////////////////////////////
1182 
1183 
1184 
1185 
1186 
1187 END_objects_SCOPE // namespace ncbi::objects::
1188 
1190 
1191 
1192 #endif // OBJTOOLS_EUTILS_EFETCH_LIST_BASE_HPP
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CBvarQ –.
Definition: BvarQ.hpp:66
CContExp –.
Definition: ContExp.hpp:66
CDomainQ –.
Definition: DomainQ.hpp:66
C_Attlist –.
Definition: List_.hpp:94
C_E_BvarQ –.
Definition: List_.hpp:469
C_E_ContExp –.
Definition: List_.hpp:499
C_E_DomainQ –.
Definition: List_.hpp:484
CList_Base –.
Definition: List_.hpp:77
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
#define ENUM_METHOD_NAME(EnumName)
Definition: serialbase.hpp:994
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
TOrder & SetOrder(void)
Assign a value to Order data member.
Definition: List_.hpp:1048
TDomainQ & SetDomainQ(void)
Assign a value to DomainQ data member.
Definition: List_.hpp:1148
bool CanGetDefinitionURL(void) const
Check if it is safe to call GetDefinitionURL method.
Definition: List_.hpp:972
void ResetContExp(void)
Reset ContExp data member.
Definition: List_.cpp:200
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
Definition: List_.hpp:778
TId & SetId(void)
Assign a value to Id data member.
Definition: List_.hpp:719
TXref & SetXref(void)
Assign a value to Xref data member.
Definition: List_.hpp:766
virtual void Reset(void)
Reset the whole object.
Definition: List_.cpp:206
string m_DefinitionURL
Definition: List_.hpp:460
EAttlist_order m_Order
Definition: List_.hpp:461
const TContExp & GetContExp(void) const
Get the ContExp member data.
Definition: List_.hpp:1167
TStyle & SetStyle(void)
Assign a value to Style data member.
Definition: List_.hpp:860
bool IsSetBvarQ(void) const
Check if a value has been assigned to BvarQ data member.
Definition: List_.hpp:1105
CList_Base(const CList_Base &)
const TId & GetId(void) const
Get the Id member data.
Definition: List_.hpp:696
bool CanGetDomainQ(void) const
Check if it is safe to call GetDomainQ method.
Definition: List_.hpp:1136
TClass & SetClass(void)
Assign a value to Class data member.
Definition: List_.hpp:813
THref & SetHref(void)
Assign a value to Href data member.
Definition: List_.hpp:907
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: List_.hpp:1096
list< CRef< C_E_DomainQ > > m_DomainQ
Definition: List_.hpp:670
void ResetStyle(void)
Reset Style data member.
Definition: List_.cpp:77
void ResetBvarQ(void)
Reset BvarQ data member.
Definition: List_.cpp:188
CList_Base(void)
Definition: List_.cpp:229
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
Definition: List_.hpp:831
const TDomainQ & GetDomainQ(void) const
Get the DomainQ member data.
Definition: List_.hpp:1142
void ResetEncoding(void)
Reset Encoding data member.
Definition: List_.cpp:89
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
Definition: List_.hpp:878
bool IsSetEncoding(void) const
Check if a value has been assigned to Encoding data member.
Definition: List_.hpp:919
const TStyle & GetStyle(void) const
Get the Style member data.
Definition: List_.hpp:837
void ResetOrder(void)
Reset Order data member.
Definition: List_.hpp:1025
C_Attlist & operator=(const C_Attlist &)
TDefinitionURL & SetDefinitionURL(void)
Assign a value to DefinitionURL data member.
Definition: List_.hpp:1001
void Reset(void)
Reset the whole object.
Definition: List_.cpp:101
bool CanGetEncoding(void) const
Check if it is safe to call GetEncoding method.
Definition: List_.hpp:925
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
Definition: List_.hpp:825
C_Attlist TAttlist
Definition: List_.hpp:509
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
Definition: List_.hpp:135
const THref & GetHref(void) const
Get the Href member data.
Definition: List_.hpp:884
TContExp & SetContExp(void)
Assign a value to ContExp data member.
Definition: List_.hpp:1173
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Definition: List_.hpp:784
virtual ~CList_Base(void)
Definition: List_.cpp:238
Tparent::CMemberIndex< E_memberIndex, 5 > TmemberIndex
Definition: List_.hpp:522
void ResetClass(void)
Reset Class data member.
Definition: List_.cpp:71
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
Definition: List_.hpp:1087
void ResetHref(void)
Reset Href data member.
Definition: List_.cpp:83
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
Definition: List_.hpp:1081
const TDefinitionURL & GetDefinitionURL(void) const
Get the DefinitionURL member data.
Definition: List_.hpp:978
void ResetId(void)
Reset Id data member.
Definition: List_.cpp:59
bool IsSetDefinitionURL(void) const
Check if a value has been assigned to DefinitionURL data member.
Definition: List_.hpp:966
EAttlist_order TOrder
Definition: List_.hpp:121
const TBvarQ & GetBvarQ(void) const
Get the BvarQ member data.
Definition: List_.hpp:1117
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
Definition: List_.hpp:872
const TClass & GetClass(void) const
Get the Class member data.
Definition: List_.hpp:790
CList_Base & operator=(const CList_Base &)
TOrder GetOrder(void) const
Get the Order member data.
Definition: List_.hpp:1032
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
Definition: List_.hpp:737
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Definition: List_.hpp:1075
void ResetDefinitionURL(void)
Reset DefinitionURL data member.
Definition: List_.cpp:95
bool CanGetOrder(void) const
Check if it is safe to call GetOrder method.
Definition: List_.hpp:1019
TBvarQ & SetBvarQ(void)
Assign a value to BvarQ data member.
Definition: List_.hpp:1123
list< CRef< C_E_DomainQ > > TDomainQ
Definition: List_.hpp:511
CSerialObject Tparent
Definition: List_.hpp:78
list< CRef< C_E_BvarQ > > m_BvarQ
Definition: List_.hpp:669
Uint4 m_set_State[1]
Definition: List_.hpp:453
bool IsSetOrder(void) const
Check if a value has been assigned to Order data member.
Definition: List_.hpp:1013
list< CRef< C_E_BvarQ > > TBvarQ
Definition: List_.hpp:510
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
Definition: List_.hpp:684
void ResetDomainQ(void)
Reset DomainQ data member.
Definition: List_.cpp:194
bool CanGetBvarQ(void) const
Check if it is safe to call GetBvarQ method.
Definition: List_.hpp:1111
list< CRef< C_E_ContExp > > TContExp
Definition: List_.hpp:512
void ResetAttlist(void)
Reset Attlist data member.
Definition: List_.cpp:174
TEncoding & SetEncoding(void)
Assign a value to Encoding data member.
Definition: List_.hpp:954
bool IsSetDomainQ(void) const
Check if a value has been assigned to DomainQ data member.
Definition: List_.hpp:1130
DECLARE_INTERNAL_TYPE_INFO()
list< CRef< C_E_ContExp > > m_ContExp
Definition: List_.hpp:671
Uint4 m_set_State[1]
Definition: List_.hpp:667
bool IsSetContExp(void) const
Check if a value has been assigned to ContExp data member.
Definition: List_.hpp:1155
const TEncoding & GetEncoding(void) const
Get the Encoding member data.
Definition: List_.hpp:931
bool CanGetContExp(void) const
Check if it is safe to call GetContExp method.
Definition: List_.hpp:1161
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
Definition: List_.hpp:731
bool CanGetId(void) const
Check if it is safe to call GetId method.
Definition: List_.hpp:690
const TXref & GetXref(void) const
Get the Xref member data.
Definition: List_.hpp:743
C_Attlist(const C_Attlist &)
CSerialObject Tparent
Definition: List_.hpp:95
void ResetXref(void)
Reset Xref data member.
Definition: List_.cpp:65
CRef< TAttlist > m_Attlist
Definition: List_.hpp:668
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Sep 04 15:01:32 2024 by modify_doxy.py rev. 669887