|
| | cxFunction2Templated (FuncPtr pFuncPtr=nullptr, T1 *pParam1=nullptr, T2 *pParam2=nullptr, bool pUseReturnVal=false, bool pExitAfterRun=false, bool pRunOnLeaveFunction=true) |
| | Default constructor. All parameters have default values.
|
| |
| virtual | ~cxFunction2Templated () |
| |
| virtual bool | functionIsSet () const override |
| |
| void | setFunction (FuncPtr pFuncPtr) |
| |
| FuncPtr | getFunction () const |
| | Accessor for the internal function pointer.
|
| |
| void | setParams (T1 *pParam1, T2 *pParam2) |
| |
| void | setParam1 (T1 *pParam) |
| |
| void | setParam2 (T2 *pParam) |
| |
| T1 * | getParam1 () const |
| |
| T2 * | getParam2 () const |
| |
| virtual std::string | runFunction () const override |
| |
| virtual void * | getFuncPtr () const override |
| |
| virtual std::string | cxTypeStr () const override |
| | Returns the name of the cxWidgets class, "cxFunction2Templated". This can be.
|
| |
| | cxFunction (bool pUseReturnVal, bool pExitAfterRun, bool pRunOnLeaveFunction) |
| | Constructor.
|
| |
| virtual | ~cxFunction () |
| |
| virtual bool | getUseReturnVal () const |
| | Accessor for whether the caller should use the return value.
|
| |
| virtual void | setUseReturnVal (bool pUseReturnVal) |
| | Setter for whether or not the caller should make use of the return value.
|
| |
| virtual bool | getExitAfterRun () const |
| | Accessor for whether the caller should exit after the function.
|
| |
| virtual void | setExitAfterRun (bool pExitAfterRun) |
| | Setter for whether or not the caller should quit what.
|
| |
| virtual bool | getRunOnLeaveFunction () const |
| | Accessor for whether the caller should run its onLeave function.
|
| |
| virtual void | setRunOnLeaveFunction (bool pRunOnLeaveFunction) |
| | Setter for whether or not the caller should run its.
|
| |
template<typename T1, typename T2>
class cx::cxFunction2Templated< T1, T2 >
This class is a cxFunction that is templated to take 2 pointers of specific types.
template<typename T1 , typename T2 >
| cx::cxFunction2Templated< T1, T2 >::cxFunction2Templated |
( |
FuncPtr |
pFuncPtr = nullptr, |
|
|
T1 * |
pParam1 = nullptr, |
|
|
T2 * |
pParam2 = nullptr, |
|
|
bool |
pUseReturnVal = false, |
|
|
bool |
pExitAfterRun = false, |
|
|
bool |
pRunOnLeaveFunction = true |
|
) |
| |
|
inlineexplicit |
Default constructor. All parameters have default values.
available. Note that function must have this signature:
string func(void*, void*)
- Parameters
-
| pFuncPtr | Pointer to the function to be run. Defaults to nullptr. |
| pParam1 | The first parameter to pass to the function when it's run - This is a void pointer. |
| pParam2 | The second parameter to pass to the function when it's run - This is a void pointer. |
| pUseReturnVal | Indicates whether caller will make use of return value. Defaults to false |
| pExitAfterRun | Whether or not the caller should exit from its input loop once the function is done. Defaults to false. |
| pRunOnLeaveFunction | Whether or not the caller should run its onLeave function when it exits (useful if pExitAfterRun is true). This defaults to true. |
template<typename T1 , typename T2 >
Returns the name of the cxWidgets class, "cxFunction2Templated". This can be.
used to determine the type of cxWidgets object that deriving
classes derive from in applications.
- Returns
- The name of the cxWidgets class ("cxFunction2Templated").
Implements cx::cxFunction.