NCBI C++ ToolKit
Cn3d_GL_matrix_.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 Cn3d_GL_matrix_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/cn3d/cn3d.asn">cn3d.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/cn3d/cn3d.def">cn3d.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_CN3D_CN3D_GL_MATRIX_BASE_HPP
42 #define OBJECTS_CN3D_CN3D_GL_MATRIX_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_NCBI_Cn3d
59  *
60  * @{
61  */
62 
63 /////////////////////////////////////////////////////////////////////////////
64 /// a GL-ordered transformation matrix
65 ///
66 /// CCn3d_GL_matrix_Base --
67 ///
68 
70 {
72 public:
73  // constructor
75  // destructor
76  virtual ~CCn3d_GL_matrix_Base(void);
77 
78  // type info
80 
81  // types
82  typedef double TM0;
83  typedef double TM1;
84  typedef double TM2;
85  typedef double TM3;
86  typedef double TM4;
87  typedef double TM5;
88  typedef double TM6;
89  typedef double TM7;
90  typedef double TM8;
91  typedef double TM9;
92  typedef double TM10;
93  typedef double TM11;
94  typedef double TM12;
95  typedef double TM13;
96  typedef double TM14;
97  typedef double TM15;
98 
99  // member index
100  enum class E_memberIndex {
101  e__allMandatory = 0,
102  e_m0,
103  e_m1,
104  e_m2,
105  e_m3,
106  e_m4,
107  e_m5,
108  e_m6,
109  e_m7,
110  e_m8,
111  e_m9,
112  e_m10,
113  e_m11,
114  e_m12,
115  e_m13,
116  e_m14,
117  e_m15
118  };
120 
121  // getters
122  // setters
123 
124  /// Check if a value has been assigned to M0 data member.
125  ///
126  /// Data member M0 is mandatory;
127  /// its type is defined as 'typedef double TM0'
128  /// @return
129  /// - true, if a value has been assigned.
130  /// - false, otherwise.
131  bool IsSetM0(void) const;
132 
133  /// Check if it is safe to call GetM0 method.
134  ///
135  /// @return
136  /// - true, if the data member is getatable.
137  /// - false, otherwise.
138  bool CanGetM0(void) const;
139 
140  /// Reset M0 data member.
141  void ResetM0(void);
142 
143  /// Get the M0 member data.
144  ///
145  /// @return
146  /// Copy of the member data.
147  TM0 GetM0(void) const;
148 
149  /// Assign a value to M0 data member.
150  ///
151  /// @param value
152  /// Value to assign
153  void SetM0(TM0 value);
154 
155  /// Assign a value to M0 data member.
156  ///
157  /// @return
158  /// Reference to the data value.
159  TM0& SetM0(void);
160 
161  /// Check if a value has been assigned to M1 data member.
162  ///
163  /// Data member M1 is mandatory;
164  /// its type is defined as 'typedef double TM1'
165  /// @return
166  /// - true, if a value has been assigned.
167  /// - false, otherwise.
168  bool IsSetM1(void) const;
169 
170  /// Check if it is safe to call GetM1 method.
171  ///
172  /// @return
173  /// - true, if the data member is getatable.
174  /// - false, otherwise.
175  bool CanGetM1(void) const;
176 
177  /// Reset M1 data member.
178  void ResetM1(void);
179 
180  /// Get the M1 member data.
181  ///
182  /// @return
183  /// Copy of the member data.
184  TM1 GetM1(void) const;
185 
186  /// Assign a value to M1 data member.
187  ///
188  /// @param value
189  /// Value to assign
190  void SetM1(TM1 value);
191 
192  /// Assign a value to M1 data member.
193  ///
194  /// @return
195  /// Reference to the data value.
196  TM1& SetM1(void);
197 
198  /// Check if a value has been assigned to M2 data member.
199  ///
200  /// Data member M2 is mandatory;
201  /// its type is defined as 'typedef double TM2'
202  /// @return
203  /// - true, if a value has been assigned.
204  /// - false, otherwise.
205  bool IsSetM2(void) const;
206 
207  /// Check if it is safe to call GetM2 method.
208  ///
209  /// @return
210  /// - true, if the data member is getatable.
211  /// - false, otherwise.
212  bool CanGetM2(void) const;
213 
214  /// Reset M2 data member.
215  void ResetM2(void);
216 
217  /// Get the M2 member data.
218  ///
219  /// @return
220  /// Copy of the member data.
221  TM2 GetM2(void) const;
222 
223  /// Assign a value to M2 data member.
224  ///
225  /// @param value
226  /// Value to assign
227  void SetM2(TM2 value);
228 
229  /// Assign a value to M2 data member.
230  ///
231  /// @return
232  /// Reference to the data value.
233  TM2& SetM2(void);
234 
235  /// Check if a value has been assigned to M3 data member.
236  ///
237  /// Data member M3 is mandatory;
238  /// its type is defined as 'typedef double TM3'
239  /// @return
240  /// - true, if a value has been assigned.
241  /// - false, otherwise.
242  bool IsSetM3(void) const;
243 
244  /// Check if it is safe to call GetM3 method.
245  ///
246  /// @return
247  /// - true, if the data member is getatable.
248  /// - false, otherwise.
249  bool CanGetM3(void) const;
250 
251  /// Reset M3 data member.
252  void ResetM3(void);
253 
254  /// Get the M3 member data.
255  ///
256  /// @return
257  /// Copy of the member data.
258  TM3 GetM3(void) const;
259 
260  /// Assign a value to M3 data member.
261  ///
262  /// @param value
263  /// Value to assign
264  void SetM3(TM3 value);
265 
266  /// Assign a value to M3 data member.
267  ///
268  /// @return
269  /// Reference to the data value.
270  TM3& SetM3(void);
271 
272  /// Check if a value has been assigned to M4 data member.
273  ///
274  /// Data member M4 is mandatory;
275  /// its type is defined as 'typedef double TM4'
276  /// @return
277  /// - true, if a value has been assigned.
278  /// - false, otherwise.
279  bool IsSetM4(void) const;
280 
281  /// Check if it is safe to call GetM4 method.
282  ///
283  /// @return
284  /// - true, if the data member is getatable.
285  /// - false, otherwise.
286  bool CanGetM4(void) const;
287 
288  /// Reset M4 data member.
289  void ResetM4(void);
290 
291  /// Get the M4 member data.
292  ///
293  /// @return
294  /// Copy of the member data.
295  TM4 GetM4(void) const;
296 
297  /// Assign a value to M4 data member.
298  ///
299  /// @param value
300  /// Value to assign
301  void SetM4(TM4 value);
302 
303  /// Assign a value to M4 data member.
304  ///
305  /// @return
306  /// Reference to the data value.
307  TM4& SetM4(void);
308 
309  /// Check if a value has been assigned to M5 data member.
310  ///
311  /// Data member M5 is mandatory;
312  /// its type is defined as 'typedef double TM5'
313  /// @return
314  /// - true, if a value has been assigned.
315  /// - false, otherwise.
316  bool IsSetM5(void) const;
317 
318  /// Check if it is safe to call GetM5 method.
319  ///
320  /// @return
321  /// - true, if the data member is getatable.
322  /// - false, otherwise.
323  bool CanGetM5(void) const;
324 
325  /// Reset M5 data member.
326  void ResetM5(void);
327 
328  /// Get the M5 member data.
329  ///
330  /// @return
331  /// Copy of the member data.
332  TM5 GetM5(void) const;
333 
334  /// Assign a value to M5 data member.
335  ///
336  /// @param value
337  /// Value to assign
338  void SetM5(TM5 value);
339 
340  /// Assign a value to M5 data member.
341  ///
342  /// @return
343  /// Reference to the data value.
344  TM5& SetM5(void);
345 
346  /// Check if a value has been assigned to M6 data member.
347  ///
348  /// Data member M6 is mandatory;
349  /// its type is defined as 'typedef double TM6'
350  /// @return
351  /// - true, if a value has been assigned.
352  /// - false, otherwise.
353  bool IsSetM6(void) const;
354 
355  /// Check if it is safe to call GetM6 method.
356  ///
357  /// @return
358  /// - true, if the data member is getatable.
359  /// - false, otherwise.
360  bool CanGetM6(void) const;
361 
362  /// Reset M6 data member.
363  void ResetM6(void);
364 
365  /// Get the M6 member data.
366  ///
367  /// @return
368  /// Copy of the member data.
369  TM6 GetM6(void) const;
370 
371  /// Assign a value to M6 data member.
372  ///
373  /// @param value
374  /// Value to assign
375  void SetM6(TM6 value);
376 
377  /// Assign a value to M6 data member.
378  ///
379  /// @return
380  /// Reference to the data value.
381  TM6& SetM6(void);
382 
383  /// Check if a value has been assigned to M7 data member.
384  ///
385  /// Data member M7 is mandatory;
386  /// its type is defined as 'typedef double TM7'
387  /// @return
388  /// - true, if a value has been assigned.
389  /// - false, otherwise.
390  bool IsSetM7(void) const;
391 
392  /// Check if it is safe to call GetM7 method.
393  ///
394  /// @return
395  /// - true, if the data member is getatable.
396  /// - false, otherwise.
397  bool CanGetM7(void) const;
398 
399  /// Reset M7 data member.
400  void ResetM7(void);
401 
402  /// Get the M7 member data.
403  ///
404  /// @return
405  /// Copy of the member data.
406  TM7 GetM7(void) const;
407 
408  /// Assign a value to M7 data member.
409  ///
410  /// @param value
411  /// Value to assign
412  void SetM7(TM7 value);
413 
414  /// Assign a value to M7 data member.
415  ///
416  /// @return
417  /// Reference to the data value.
418  TM7& SetM7(void);
419 
420  /// Check if a value has been assigned to M8 data member.
421  ///
422  /// Data member M8 is mandatory;
423  /// its type is defined as 'typedef double TM8'
424  /// @return
425  /// - true, if a value has been assigned.
426  /// - false, otherwise.
427  bool IsSetM8(void) const;
428 
429  /// Check if it is safe to call GetM8 method.
430  ///
431  /// @return
432  /// - true, if the data member is getatable.
433  /// - false, otherwise.
434  bool CanGetM8(void) const;
435 
436  /// Reset M8 data member.
437  void ResetM8(void);
438 
439  /// Get the M8 member data.
440  ///
441  /// @return
442  /// Copy of the member data.
443  TM8 GetM8(void) const;
444 
445  /// Assign a value to M8 data member.
446  ///
447  /// @param value
448  /// Value to assign
449  void SetM8(TM8 value);
450 
451  /// Assign a value to M8 data member.
452  ///
453  /// @return
454  /// Reference to the data value.
455  TM8& SetM8(void);
456 
457  /// Check if a value has been assigned to M9 data member.
458  ///
459  /// Data member M9 is mandatory;
460  /// its type is defined as 'typedef double TM9'
461  /// @return
462  /// - true, if a value has been assigned.
463  /// - false, otherwise.
464  bool IsSetM9(void) const;
465 
466  /// Check if it is safe to call GetM9 method.
467  ///
468  /// @return
469  /// - true, if the data member is getatable.
470  /// - false, otherwise.
471  bool CanGetM9(void) const;
472 
473  /// Reset M9 data member.
474  void ResetM9(void);
475 
476  /// Get the M9 member data.
477  ///
478  /// @return
479  /// Copy of the member data.
480  TM9 GetM9(void) const;
481 
482  /// Assign a value to M9 data member.
483  ///
484  /// @param value
485  /// Value to assign
486  void SetM9(TM9 value);
487 
488  /// Assign a value to M9 data member.
489  ///
490  /// @return
491  /// Reference to the data value.
492  TM9& SetM9(void);
493 
494  /// Check if a value has been assigned to M10 data member.
495  ///
496  /// Data member M10 is mandatory;
497  /// its type is defined as 'typedef double TM10'
498  /// @return
499  /// - true, if a value has been assigned.
500  /// - false, otherwise.
501  bool IsSetM10(void) const;
502 
503  /// Check if it is safe to call GetM10 method.
504  ///
505  /// @return
506  /// - true, if the data member is getatable.
507  /// - false, otherwise.
508  bool CanGetM10(void) const;
509 
510  /// Reset M10 data member.
511  void ResetM10(void);
512 
513  /// Get the M10 member data.
514  ///
515  /// @return
516  /// Copy of the member data.
517  TM10 GetM10(void) const;
518 
519  /// Assign a value to M10 data member.
520  ///
521  /// @param value
522  /// Value to assign
523  void SetM10(TM10 value);
524 
525  /// Assign a value to M10 data member.
526  ///
527  /// @return
528  /// Reference to the data value.
529  TM10& SetM10(void);
530 
531  /// Check if a value has been assigned to M11 data member.
532  ///
533  /// Data member M11 is mandatory;
534  /// its type is defined as 'typedef double TM11'
535  /// @return
536  /// - true, if a value has been assigned.
537  /// - false, otherwise.
538  bool IsSetM11(void) const;
539 
540  /// Check if it is safe to call GetM11 method.
541  ///
542  /// @return
543  /// - true, if the data member is getatable.
544  /// - false, otherwise.
545  bool CanGetM11(void) const;
546 
547  /// Reset M11 data member.
548  void ResetM11(void);
549 
550  /// Get the M11 member data.
551  ///
552  /// @return
553  /// Copy of the member data.
554  TM11 GetM11(void) const;
555 
556  /// Assign a value to M11 data member.
557  ///
558  /// @param value
559  /// Value to assign
560  void SetM11(TM11 value);
561 
562  /// Assign a value to M11 data member.
563  ///
564  /// @return
565  /// Reference to the data value.
566  TM11& SetM11(void);
567 
568  /// Check if a value has been assigned to M12 data member.
569  ///
570  /// Data member M12 is mandatory;
571  /// its type is defined as 'typedef double TM12'
572  /// @return
573  /// - true, if a value has been assigned.
574  /// - false, otherwise.
575  bool IsSetM12(void) const;
576 
577  /// Check if it is safe to call GetM12 method.
578  ///
579  /// @return
580  /// - true, if the data member is getatable.
581  /// - false, otherwise.
582  bool CanGetM12(void) const;
583 
584  /// Reset M12 data member.
585  void ResetM12(void);
586 
587  /// Get the M12 member data.
588  ///
589  /// @return
590  /// Copy of the member data.
591  TM12 GetM12(void) const;
592 
593  /// Assign a value to M12 data member.
594  ///
595  /// @param value
596  /// Value to assign
597  void SetM12(TM12 value);
598 
599  /// Assign a value to M12 data member.
600  ///
601  /// @return
602  /// Reference to the data value.
603  TM12& SetM12(void);
604 
605  /// Check if a value has been assigned to M13 data member.
606  ///
607  /// Data member M13 is mandatory;
608  /// its type is defined as 'typedef double TM13'
609  /// @return
610  /// - true, if a value has been assigned.
611  /// - false, otherwise.
612  bool IsSetM13(void) const;
613 
614  /// Check if it is safe to call GetM13 method.
615  ///
616  /// @return
617  /// - true, if the data member is getatable.
618  /// - false, otherwise.
619  bool CanGetM13(void) const;
620 
621  /// Reset M13 data member.
622  void ResetM13(void);
623 
624  /// Get the M13 member data.
625  ///
626  /// @return
627  /// Copy of the member data.
628  TM13 GetM13(void) const;
629 
630  /// Assign a value to M13 data member.
631  ///
632  /// @param value
633  /// Value to assign
634  void SetM13(TM13 value);
635 
636  /// Assign a value to M13 data member.
637  ///
638  /// @return
639  /// Reference to the data value.
640  TM13& SetM13(void);
641 
642  /// Check if a value has been assigned to M14 data member.
643  ///
644  /// Data member M14 is mandatory;
645  /// its type is defined as 'typedef double TM14'
646  /// @return
647  /// - true, if a value has been assigned.
648  /// - false, otherwise.
649  bool IsSetM14(void) const;
650 
651  /// Check if it is safe to call GetM14 method.
652  ///
653  /// @return
654  /// - true, if the data member is getatable.
655  /// - false, otherwise.
656  bool CanGetM14(void) const;
657 
658  /// Reset M14 data member.
659  void ResetM14(void);
660 
661  /// Get the M14 member data.
662  ///
663  /// @return
664  /// Copy of the member data.
665  TM14 GetM14(void) const;
666 
667  /// Assign a value to M14 data member.
668  ///
669  /// @param value
670  /// Value to assign
671  void SetM14(TM14 value);
672 
673  /// Assign a value to M14 data member.
674  ///
675  /// @return
676  /// Reference to the data value.
677  TM14& SetM14(void);
678 
679  /// Check if a value has been assigned to M15 data member.
680  ///
681  /// Data member M15 is mandatory;
682  /// its type is defined as 'typedef double TM15'
683  /// @return
684  /// - true, if a value has been assigned.
685  /// - false, otherwise.
686  bool IsSetM15(void) const;
687 
688  /// Check if it is safe to call GetM15 method.
689  ///
690  /// @return
691  /// - true, if the data member is getatable.
692  /// - false, otherwise.
693  bool CanGetM15(void) const;
694 
695  /// Reset M15 data member.
696  void ResetM15(void);
697 
698  /// Get the M15 member data.
699  ///
700  /// @return
701  /// Copy of the member data.
702  TM15 GetM15(void) const;
703 
704  /// Assign a value to M15 data member.
705  ///
706  /// @param value
707  /// Value to assign
708  void SetM15(TM15 value);
709 
710  /// Assign a value to M15 data member.
711  ///
712  /// @return
713  /// Reference to the data value.
714  TM15& SetM15(void);
715 
716  /// Reset the whole object
717  virtual void Reset(void);
718 
719 
720 private:
721  // Prohibit copy constructor and assignment operator
724 
725  // data
726  Uint4 m_set_State[1];
727  double m_M0;
728  double m_M1;
729  double m_M2;
730  double m_M3;
731  double m_M4;
732  double m_M5;
733  double m_M6;
734  double m_M7;
735  double m_M8;
736  double m_M9;
737  double m_M10;
738  double m_M11;
739  double m_M12;
740  double m_M13;
741  double m_M14;
742  double m_M15;
743 };
744 
745 /* @} */
746 
747 
748 
749 
750 
751 ///////////////////////////////////////////////////////////
752 ///////////////////// inline methods //////////////////////
753 ///////////////////////////////////////////////////////////
754 inline
756 {
757  return ((m_set_State[0] & 0x3) != 0);
758 }
759 
760 inline
762 {
763  return IsSetM0();
764 }
765 
766 inline
768 {
769  m_M0 = 0;
770  m_set_State[0] &= ~0x3;
771 }
772 
773 inline
775 {
776  if (!CanGetM0()) {
777  ThrowUnassigned(0);
778  }
779  return m_M0;
780 }
781 
782 inline
784 {
785  m_M0 = value;
786  m_set_State[0] |= 0x3;
787 }
788 
789 inline
791 {
792 #ifdef _DEBUG
793  if (!IsSetM0()) {
794  memset(&m_M0,UnassignedByte(),sizeof(m_M0));
795  }
796 #endif
797  m_set_State[0] |= 0x1;
798  return m_M0;
799 }
800 
801 inline
803 {
804  return ((m_set_State[0] & 0xc) != 0);
805 }
806 
807 inline
809 {
810  return IsSetM1();
811 }
812 
813 inline
815 {
816  m_M1 = 0;
817  m_set_State[0] &= ~0xc;
818 }
819 
820 inline
822 {
823  if (!CanGetM1()) {
824  ThrowUnassigned(1);
825  }
826  return m_M1;
827 }
828 
829 inline
831 {
832  m_M1 = value;
833  m_set_State[0] |= 0xc;
834 }
835 
836 inline
838 {
839 #ifdef _DEBUG
840  if (!IsSetM1()) {
841  memset(&m_M1,UnassignedByte(),sizeof(m_M1));
842  }
843 #endif
844  m_set_State[0] |= 0x4;
845  return m_M1;
846 }
847 
848 inline
850 {
851  return ((m_set_State[0] & 0x30) != 0);
852 }
853 
854 inline
856 {
857  return IsSetM2();
858 }
859 
860 inline
862 {
863  m_M2 = 0;
864  m_set_State[0] &= ~0x30;
865 }
866 
867 inline
869 {
870  if (!CanGetM2()) {
871  ThrowUnassigned(2);
872  }
873  return m_M2;
874 }
875 
876 inline
878 {
879  m_M2 = value;
880  m_set_State[0] |= 0x30;
881 }
882 
883 inline
885 {
886 #ifdef _DEBUG
887  if (!IsSetM2()) {
888  memset(&m_M2,UnassignedByte(),sizeof(m_M2));
889  }
890 #endif
891  m_set_State[0] |= 0x10;
892  return m_M2;
893 }
894 
895 inline
897 {
898  return ((m_set_State[0] & 0xc0) != 0);
899 }
900 
901 inline
903 {
904  return IsSetM3();
905 }
906 
907 inline
909 {
910  m_M3 = 0;
911  m_set_State[0] &= ~0xc0;
912 }
913 
914 inline
916 {
917  if (!CanGetM3()) {
918  ThrowUnassigned(3);
919  }
920  return m_M3;
921 }
922 
923 inline
925 {
926  m_M3 = value;
927  m_set_State[0] |= 0xc0;
928 }
929 
930 inline
932 {
933 #ifdef _DEBUG
934  if (!IsSetM3()) {
935  memset(&m_M3,UnassignedByte(),sizeof(m_M3));
936  }
937 #endif
938  m_set_State[0] |= 0x40;
939  return m_M3;
940 }
941 
942 inline
944 {
945  return ((m_set_State[0] & 0x300) != 0);
946 }
947 
948 inline
950 {
951  return IsSetM4();
952 }
953 
954 inline
956 {
957  m_M4 = 0;
958  m_set_State[0] &= ~0x300;
959 }
960 
961 inline
963 {
964  if (!CanGetM4()) {
965  ThrowUnassigned(4);
966  }
967  return m_M4;
968 }
969 
970 inline
972 {
973  m_M4 = value;
974  m_set_State[0] |= 0x300;
975 }
976 
977 inline
979 {
980 #ifdef _DEBUG
981  if (!IsSetM4()) {
982  memset(&m_M4,UnassignedByte(),sizeof(m_M4));
983  }
984 #endif
985  m_set_State[0] |= 0x100;
986  return m_M4;
987 }
988 
989 inline
991 {
992  return ((m_set_State[0] & 0xc00) != 0);
993 }
994 
995 inline
997 {
998  return IsSetM5();
999 }
1000 
1001 inline
1003 {
1004  m_M5 = 0;
1005  m_set_State[0] &= ~0xc00;
1006 }
1007 
1008 inline
1010 {
1011  if (!CanGetM5()) {
1012  ThrowUnassigned(5);
1013  }
1014  return m_M5;
1015 }
1016 
1017 inline
1019 {
1020  m_M5 = value;
1021  m_set_State[0] |= 0xc00;
1022 }
1023 
1024 inline
1026 {
1027 #ifdef _DEBUG
1028  if (!IsSetM5()) {
1029  memset(&m_M5,UnassignedByte(),sizeof(m_M5));
1030  }
1031 #endif
1032  m_set_State[0] |= 0x400;
1033  return m_M5;
1034 }
1035 
1036 inline
1038 {
1039  return ((m_set_State[0] & 0x3000) != 0);
1040 }
1041 
1042 inline
1044 {
1045  return IsSetM6();
1046 }
1047 
1048 inline
1050 {
1051  m_M6 = 0;
1052  m_set_State[0] &= ~0x3000;
1053 }
1054 
1055 inline
1057 {
1058  if (!CanGetM6()) {
1059  ThrowUnassigned(6);
1060  }
1061  return m_M6;
1062 }
1063 
1064 inline
1066 {
1067  m_M6 = value;
1068  m_set_State[0] |= 0x3000;
1069 }
1070 
1071 inline
1073 {
1074 #ifdef _DEBUG
1075  if (!IsSetM6()) {
1076  memset(&m_M6,UnassignedByte(),sizeof(m_M6));
1077  }
1078 #endif
1079  m_set_State[0] |= 0x1000;
1080  return m_M6;
1081 }
1082 
1083 inline
1085 {
1086  return ((m_set_State[0] & 0xc000) != 0);
1087 }
1088 
1089 inline
1091 {
1092  return IsSetM7();
1093 }
1094 
1095 inline
1097 {
1098  m_M7 = 0;
1099  m_set_State[0] &= ~0xc000;
1100 }
1101 
1102 inline
1104 {
1105  if (!CanGetM7()) {
1106  ThrowUnassigned(7);
1107  }
1108  return m_M7;
1109 }
1110 
1111 inline
1113 {
1114  m_M7 = value;
1115  m_set_State[0] |= 0xc000;
1116 }
1117 
1118 inline
1120 {
1121 #ifdef _DEBUG
1122  if (!IsSetM7()) {
1123  memset(&m_M7,UnassignedByte(),sizeof(m_M7));
1124  }
1125 #endif
1126  m_set_State[0] |= 0x4000;
1127  return m_M7;
1128 }
1129 
1130 inline
1132 {
1133  return ((m_set_State[0] & 0x30000) != 0);
1134 }
1135 
1136 inline
1138 {
1139  return IsSetM8();
1140 }
1141 
1142 inline
1144 {
1145  m_M8 = 0;
1146  m_set_State[0] &= ~0x30000;
1147 }
1148 
1149 inline
1151 {
1152  if (!CanGetM8()) {
1153  ThrowUnassigned(8);
1154  }
1155  return m_M8;
1156 }
1157 
1158 inline
1160 {
1161  m_M8 = value;
1162  m_set_State[0] |= 0x30000;
1163 }
1164 
1165 inline
1167 {
1168 #ifdef _DEBUG
1169  if (!IsSetM8()) {
1170  memset(&m_M8,UnassignedByte(),sizeof(m_M8));
1171  }
1172 #endif
1173  m_set_State[0] |= 0x10000;
1174  return m_M8;
1175 }
1176 
1177 inline
1179 {
1180  return ((m_set_State[0] & 0xc0000) != 0);
1181 }
1182 
1183 inline
1185 {
1186  return IsSetM9();
1187 }
1188 
1189 inline
1191 {
1192  m_M9 = 0;
1193  m_set_State[0] &= ~0xc0000;
1194 }
1195 
1196 inline
1198 {
1199  if (!CanGetM9()) {
1200  ThrowUnassigned(9);
1201  }
1202  return m_M9;
1203 }
1204 
1205 inline
1207 {
1208  m_M9 = value;
1209  m_set_State[0] |= 0xc0000;
1210 }
1211 
1212 inline
1214 {
1215 #ifdef _DEBUG
1216  if (!IsSetM9()) {
1217  memset(&m_M9,UnassignedByte(),sizeof(m_M9));
1218  }
1219 #endif
1220  m_set_State[0] |= 0x40000;
1221  return m_M9;
1222 }
1223 
1224 inline
1226 {
1227  return ((m_set_State[0] & 0x300000) != 0);
1228 }
1229 
1230 inline
1232 {
1233  return IsSetM10();
1234 }
1235 
1236 inline
1238 {
1239  m_M10 = 0;
1240  m_set_State[0] &= ~0x300000;
1241 }
1242 
1243 inline
1245 {
1246  if (!CanGetM10()) {
1247  ThrowUnassigned(10);
1248  }
1249  return m_M10;
1250 }
1251 
1252 inline
1254 {
1255  m_M10 = value;
1256  m_set_State[0] |= 0x300000;
1257 }
1258 
1259 inline
1261 {
1262 #ifdef _DEBUG
1263  if (!IsSetM10()) {
1264  memset(&m_M10,UnassignedByte(),sizeof(m_M10));
1265  }
1266 #endif
1267  m_set_State[0] |= 0x100000;
1268  return m_M10;
1269 }
1270 
1271 inline
1273 {
1274  return ((m_set_State[0] & 0xc00000) != 0);
1275 }
1276 
1277 inline
1279 {
1280  return IsSetM11();
1281 }
1282 
1283 inline
1285 {
1286  m_M11 = 0;
1287  m_set_State[0] &= ~0xc00000;
1288 }
1289 
1290 inline
1292 {
1293  if (!CanGetM11()) {
1294  ThrowUnassigned(11);
1295  }
1296  return m_M11;
1297 }
1298 
1299 inline
1301 {
1302  m_M11 = value;
1303  m_set_State[0] |= 0xc00000;
1304 }
1305 
1306 inline
1308 {
1309 #ifdef _DEBUG
1310  if (!IsSetM11()) {
1311  memset(&m_M11,UnassignedByte(),sizeof(m_M11));
1312  }
1313 #endif
1314  m_set_State[0] |= 0x400000;
1315  return m_M11;
1316 }
1317 
1318 inline
1320 {
1321  return ((m_set_State[0] & 0x3000000) != 0);
1322 }
1323 
1324 inline
1326 {
1327  return IsSetM12();
1328 }
1329 
1330 inline
1332 {
1333  m_M12 = 0;
1334  m_set_State[0] &= ~0x3000000;
1335 }
1336 
1337 inline
1339 {
1340  if (!CanGetM12()) {
1341  ThrowUnassigned(12);
1342  }
1343  return m_M12;
1344 }
1345 
1346 inline
1348 {
1349  m_M12 = value;
1350  m_set_State[0] |= 0x3000000;
1351 }
1352 
1353 inline
1355 {
1356 #ifdef _DEBUG
1357  if (!IsSetM12()) {
1358  memset(&m_M12,UnassignedByte(),sizeof(m_M12));
1359  }
1360 #endif
1361  m_set_State[0] |= 0x1000000;
1362  return m_M12;
1363 }
1364 
1365 inline
1367 {
1368  return ((m_set_State[0] & 0xc000000) != 0);
1369 }
1370 
1371 inline
1373 {
1374  return IsSetM13();
1375 }
1376 
1377 inline
1379 {
1380  m_M13 = 0;
1381  m_set_State[0] &= ~0xc000000;
1382 }
1383 
1384 inline
1386 {
1387  if (!CanGetM13()) {
1388  ThrowUnassigned(13);
1389  }
1390  return m_M13;
1391 }
1392 
1393 inline
1395 {
1396  m_M13 = value;
1397  m_set_State[0] |= 0xc000000;
1398 }
1399 
1400 inline
1402 {
1403 #ifdef _DEBUG
1404  if (!IsSetM13()) {
1405  memset(&m_M13,UnassignedByte(),sizeof(m_M13));
1406  }
1407 #endif
1408  m_set_State[0] |= 0x4000000;
1409  return m_M13;
1410 }
1411 
1412 inline
1414 {
1415  return ((m_set_State[0] & 0x30000000) != 0);
1416 }
1417 
1418 inline
1420 {
1421  return IsSetM14();
1422 }
1423 
1424 inline
1426 {
1427  m_M14 = 0;
1428  m_set_State[0] &= ~0x30000000;
1429 }
1430 
1431 inline
1433 {
1434  if (!CanGetM14()) {
1435  ThrowUnassigned(14);
1436  }
1437  return m_M14;
1438 }
1439 
1440 inline
1442 {
1443  m_M14 = value;
1444  m_set_State[0] |= 0x30000000;
1445 }
1446 
1447 inline
1449 {
1450 #ifdef _DEBUG
1451  if (!IsSetM14()) {
1452  memset(&m_M14,UnassignedByte(),sizeof(m_M14));
1453  }
1454 #endif
1455  m_set_State[0] |= 0x10000000;
1456  return m_M14;
1457 }
1458 
1459 inline
1461 {
1462  return ((m_set_State[0] & 0xc0000000) != 0);
1463 }
1464 
1465 inline
1467 {
1468  return IsSetM15();
1469 }
1470 
1471 inline
1473 {
1474  m_M15 = 0;
1475  m_set_State[0] &= ~0xc0000000;
1476 }
1477 
1478 inline
1480 {
1481  if (!CanGetM15()) {
1482  ThrowUnassigned(15);
1483  }
1484  return m_M15;
1485 }
1486 
1487 inline
1489 {
1490  m_M15 = value;
1491  m_set_State[0] |= 0xc0000000;
1492 }
1493 
1494 inline
1496 {
1497 #ifdef _DEBUG
1498  if (!IsSetM15()) {
1499  memset(&m_M15,UnassignedByte(),sizeof(m_M15));
1500  }
1501 #endif
1502  m_set_State[0] |= 0x40000000;
1503  return m_M15;
1504 }
1505 
1506 ///////////////////////////////////////////////////////////
1507 ////////////////// end of inline methods //////////////////
1508 ///////////////////////////////////////////////////////////
1509 
1510 
1511 
1512 
1513 
1514 END_objects_SCOPE // namespace ncbi::objects::
1515 
1517 
1518 
1519 #endif // OBJECTS_CN3D_CN3D_GL_MATRIX_BASE_HPP
a GL-ordered transformation matrix
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_CN3D_EXPORT
Definition: ncbi_export.h:384
bool IsSetM0(void) const
Check if a value has been assigned to M0 data member.
bool IsSetM15(void) const
Check if a value has been assigned to M15 data member.
TM14 GetM14(void) const
Get the M14 member data.
TM13 & SetM13(void)
Assign a value to M13 data member.
TM10 & SetM10(void)
Assign a value to M10 data member.
bool IsSetM9(void) const
Check if a value has been assigned to M9 data member.
TM3 & SetM3(void)
Assign a value to M3 data member.
TM13 GetM13(void) const
Get the M13 member data.
TM15 & SetM15(void)
Assign a value to M15 data member.
TM4 & SetM4(void)
Assign a value to M4 data member.
TM5 GetM5(void) const
Get the M5 member data.
bool IsSetM8(void) const
Check if a value has been assigned to M8 data member.
bool IsSetM10(void) const
Check if a value has been assigned to M10 data member.
TM8 GetM8(void) const
Get the M8 member data.
TM11 & SetM11(void)
Assign a value to M11 data member.
TM5 & SetM5(void)
Assign a value to M5 data member.
bool CanGetM2(void) const
Check if it is safe to call GetM2 method.
bool CanGetM7(void) const
Check if it is safe to call GetM7 method.
TM2 GetM2(void) const
Get the M2 member data.
bool CanGetM6(void) const
Check if it is safe to call GetM6 method.
TM8 & SetM8(void)
Assign a value to M8 data member.
bool IsSetM4(void) const
Check if a value has been assigned to M4 data member.
TM4 GetM4(void) const
Get the M4 member data.
void ResetM9(void)
Reset M9 data member.
TM6 GetM6(void) const
Get the M6 member data.
bool CanGetM13(void) const
Check if it is safe to call GetM13 method.
TM0 GetM0(void) const
Get the M0 member data.
bool CanGetM11(void) const
Check if it is safe to call GetM11 method.
bool CanGetM3(void) const
Check if it is safe to call GetM3 method.
bool CanGetM5(void) const
Check if it is safe to call GetM5 method.
bool CanGetM0(void) const
Check if it is safe to call GetM0 method.
bool IsSetM5(void) const
Check if a value has been assigned to M5 data member.
bool CanGetM1(void) const
Check if it is safe to call GetM1 method.
CCn3d_GL_matrix_Base & operator=(const CCn3d_GL_matrix_Base &)
void ResetM14(void)
Reset M14 data member.
void ResetM3(void)
Reset M3 data member.
bool CanGetM15(void) const
Check if it is safe to call GetM15 method.
bool IsSetM7(void) const
Check if a value has been assigned to M7 data member.
void ResetM8(void)
Reset M8 data member.
bool CanGetM8(void) const
Check if it is safe to call GetM8 method.
Tparent::CMemberIndex< E_memberIndex, 17 > TmemberIndex
TM14 & SetM14(void)
Assign a value to M14 data member.
TM12 GetM12(void) const
Get the M12 member data.
TM1 & SetM1(void)
Assign a value to M1 data member.
bool IsSetM2(void) const
Check if a value has been assigned to M2 data member.
bool IsSetM13(void) const
Check if a value has been assigned to M13 data member.
void ResetM13(void)
Reset M13 data member.
void ResetM7(void)
Reset M7 data member.
bool CanGetM12(void) const
Check if it is safe to call GetM12 method.
void ResetM6(void)
Reset M6 data member.
TM1 GetM1(void) const
Get the M1 member data.
TM7 GetM7(void) const
Get the M7 member data.
bool IsSetM3(void) const
Check if a value has been assigned to M3 data member.
TM10 GetM10(void) const
Get the M10 member data.
void ResetM4(void)
Reset M4 data member.
TM3 GetM3(void) const
Get the M3 member data.
void ResetM12(void)
Reset M12 data member.
void ResetM2(void)
Reset M2 data member.
void ResetM0(void)
Reset M0 data member.
TM6 & SetM6(void)
Assign a value to M6 data member.
TM15 GetM15(void) const
Get the M15 member data.
TM0 & SetM0(void)
Assign a value to M0 data member.
TM2 & SetM2(void)
Assign a value to M2 data member.
void ResetM15(void)
Reset M15 data member.
bool IsSetM1(void) const
Check if a value has been assigned to M1 data member.
bool IsSetM11(void) const
Check if a value has been assigned to M11 data member.
TM12 & SetM12(void)
Assign a value to M12 data member.
void ResetM10(void)
Reset M10 data member.
bool IsSetM14(void) const
Check if a value has been assigned to M14 data member.
TM9 GetM9(void) const
Get the M9 member data.
void ResetM1(void)
Reset M1 data member.
void ResetM5(void)
Reset M5 data member.
TM7 & SetM7(void)
Assign a value to M7 data member.
bool CanGetM14(void) const
Check if it is safe to call GetM14 method.
TM9 & SetM9(void)
Assign a value to M9 data member.
bool IsSetM6(void) const
Check if a value has been assigned to M6 data member.
void ResetM11(void)
Reset M11 data member.
bool CanGetM10(void) const
Check if it is safe to call GetM10 method.
bool IsSetM12(void) const
Check if a value has been assigned to M12 data member.
TM11 GetM11(void) const
Get the M11 member data.
bool CanGetM9(void) const
Check if it is safe to call GetM9 method.
CCn3d_GL_matrix_Base(const CCn3d_GL_matrix_Base &)
bool CanGetM4(void) const
Check if it is safe to call GetM4 method.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:58:20 2024 by modify_doxy.py rev. 669887