VAPOR3 3.9.4
Macros | Functions
PWidgetHLI.h File Reference

Go to the source code of this file.

Macros

#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)
 

Functions

 CreateHLIBase (long, Long)
 
 CreateHLIBase (bool, Long)
 
 CreateHLIBase (int, Long)
 
 CreateHLIBase (double, Double)
 
 CreateHLIBase (float, Double)
 
 CreateHLIBase (std::string, String)
 

Macro Definition Documentation

◆ CreateHLI

#define CreateHLI (   className,
 
)
Value:
template<class P> class className##HLI final : public className, public PWidgetHLIBase<P, T> { \
public: \
className##HLI(const std::string &label, typename PWidgetHLIBase<P, T>::GetterType getter, typename PWidgetHLIBase<P, T>::SetterType setter) \
: className("", label), PWidgetHLIBase<P, T>((PWidget *)this, getter, setter) \
{ \
} \
}; \
CreateInferredTemplateConstructor(className, T, ); \
CreateInferredTemplateConstructor(className, T, const);

Definition at line 23 of file PWidgetHLI.h.

◆ CreateHLIBase

#define CreateHLIBase (   T,
  LT 
)
Value:
template<class P> class PWidgetHLIBase<P, T> { \
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); }

Definition at line 20 of file PWidgetHLI.h.

Function Documentation

◆ 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   
)