Go to the source code of this file.
|
#define | CreateHLIBase(T, LT) |
| Creates the framework for creating Params Widgets that use the Params Database high level interface.
|
|
#define | CreateInferredTemplateConstructor(className, T, constModifier) template<class P> className##HLI<P> *new_##className##HLI(const std::string &label, T (P::*getter)() constModifier, void (P::*setter)(T)) { return new className##HLI<P>(label, getter, setter); } |
|
#define | CreateHLI(className, T) |
|
◆ CreateHLI
#define CreateHLI |
( |
|
className, |
|
|
|
T |
|
) |
| |
Value: template<
class P>
class className##HLI final :
public className,
public PWidgetHLIBase<P, T> { \
public: \
{ \
} \
}; \
CreateInferredTemplateConstructor(className, T, ); \
CreateInferredTemplateConstructor(className, T, const);
Definition at line 23 of file PWidgetHLI.h.
◆ CreateHLIBase
#define CreateHLIBase |
( |
|
T, |
|
|
|
LT |
|
) |
| |
Value:
protected: \
typedef std::function<T(P *)> GetterType; \
typedef std::function<void(P *, T)> SetterType; \
\
public: \
PWidgetHLIBase(
PWidget *w, GetterType getter, SetterType setter) \
{ \
w->_usingHLI = true; \
w->_setter##LT = [setter](void *p, T v) { setter((P *)p, v); }; \
w->_getter##LT = [getter](void *p) { return getter((P *)p); }; \
} \
};
Creates the framework for creating Params Widgets that use the Params Database high level interface.
Definition at line 5 of file PWidgetHLI.h.
◆ CreateInferredTemplateConstructor
#define CreateInferredTemplateConstructor |
( |
|
className, |
|
|
|
T, |
|
|
|
constModifier |
|
) |
| template<class P> className##HLI<P> *new_##className##HLI(const std::string &label, T (P::*getter)() constModifier, void (P::*setter)(T)) { return new className##HLI<P>(label, getter, setter); } |
◆ CreateHLIBase() [1/6]
CreateHLIBase |
( |
bool |
, |
|
|
Long |
|
|
) |
| |
◆ CreateHLIBase() [2/6]
CreateHLIBase |
( |
double |
, |
|
|
Double |
|
|
) |
| |
◆ CreateHLIBase() [3/6]
CreateHLIBase |
( |
float |
, |
|
|
Double |
|
|
) |
| |
◆ CreateHLIBase() [4/6]
CreateHLIBase |
( |
int |
, |
|
|
Long |
|
|
) |
| |
◆ CreateHLIBase() [5/6]
CreateHLIBase |
( |
long |
, |
|
|
Long |
|
|
) |
| |
◆ CreateHLIBase() [6/6]
CreateHLIBase |
( |
std::string |
, |
|
|
String |
|
|
) |
| |