GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ctkPimpl.h
Go to the documentation of this file.
1 
50 #ifndef __ctkPimpl_h
51 #define __ctkPimpl_h
52 
53 // Qt includes
54 #include <QtGlobal>
55 
61 #define CTK_CONSTRUCTOR_NO_ARG_CPP(PUB) \
62  PUB::PUB(): d_ptr(new PUB##Private) \
63  { \
64  }
65 
71 #define CTK_CONSTRUCTOR_1_ARG_CPP(PUB, _ARG1) \
72  PUB::PUB(_ARG1 _parent) \
73  : Superclass( _parent ) \
74  , d_ptr(new PUB##Private) \
75  { \
76  }
77 
85 #define CTK_SET_CPP(PUB, _TYPE, _NAME, _VARNAME) \
86  void PUB::_NAME(_TYPE var) \
87  { \
88  Q_D(PUB); \
89  d->_VARNAME = var; \
90  }
91 
99 #define CTK_GET_CPP(PUB, _TYPE, _NAME, _VARNAME) \
100  _TYPE PUB::_NAME()const \
101  { \
102  Q_D(const PUB); \
103  return d->_VARNAME; \
104  }
105 
106 #endif