Tizen Native API
4.0
|
Callback base class to hold the data for callback function and member function calls. More...
Classes | |
struct | Impl |
Struct to hold the extra data needed for member functions. More... | |
Public Member Functions | |
CallbackBase () | |
Default constructor. | |
~CallbackBase () | |
Destructor. | |
void | Reset () |
Resets the object pointer so that we know not to call methods of this object any more. | |
Static Public Member Functions | |
static void | Execute (CallbackBase &callback) |
Function to call the function or member function dispatcher. | |
template<typename R > | |
static R | ExecuteReturn (CallbackBase &callback) |
Function to call the function or member function dispatcher. | |
template<typename P1 > | |
static void | Execute (CallbackBase &callback, P1 param1) |
Function to call the function or member function dispatcher. | |
template<typename R , typename P1 > | |
static R | ExecuteReturn (CallbackBase &callback, P1 param1) |
Function to call the function or member function dispatcher. | |
template<typename P1 , typename P2 > | |
static void | Execute (CallbackBase &callback, P1 param1, P2 param2) |
Function to call the function or member function dispatcher. | |
template<typename R , typename P1 , typename P2 > | |
static R | ExecuteReturn (CallbackBase &callback, P1 param1, P2 param2) |
Function to call the function or member function dispatcher. | |
template<typename P1 , typename P2 , typename P3 > | |
static void | Execute (CallbackBase &callback, P1 param1, P2 param2, P3 param3) |
Function to call the function or member function dispatcher. | |
template<typename R , typename P1 , typename P2 , typename P3 > | |
static R | ExecuteReturn (CallbackBase &callback, P1 param1, P2 param2, P3 param3) |
Function to call the function or member function dispatcher. | |
Public Attributes | |
Impl * | mImpl |
Implementation pointer. | |
MemberFunction | mMemberFunction |
Pointer to member function. | |
Function | mFunction |
Static function. | |
Protected Types | |
typedef void(* | Function )(void) |
Function with static linkage. | |
typedef void(CallbackBase::* | MemberFunction )(void) |
Member function. | |
typedef void(* | Dispatcher )(CallbackBase &base) |
Used to call the correct member function. | |
typedef void(* | Destructor )(void *object) |
Used to destroy mObjectPointer (NULL if not mObjectPointer is not owned). | |
Protected Member Functions | |
CallbackBase (const CallbackBase &rhs) | |
Copy constructor operator not declared. | |
CallbackBase & | operator= (const CallbackBase &rhs) |
Assignment operator not declared. | |
CallbackBase (Function function) | |
Constructor for function with static linkage. | |
CallbackBase (void *object, MemberFunction function, Dispatcher dispatcher) | |
Constructor for member function. | |
CallbackBase (void *object, MemberFunction function, Dispatcher dispatcher, Destructor destructor) | |
Constructor for member function. |
Callback base class to hold the data for callback function and member function calls.
typedef void(* Dali::CallbackBase::Destructor)(void *object) [protected] |
Used to destroy mObjectPointer (NULL if not mObjectPointer is not owned).
typedef void(* Dali::CallbackBase::Dispatcher)(CallbackBase &base) [protected] |
Used to call the correct member function.
typedef void(* Dali::CallbackBase::Function)(void) [protected] |
Function with static linkage.
typedef void(CallbackBase::* Dali::CallbackBase::MemberFunction)(void) [protected] |
Member function.
Default constructor.
Destructor.
Dali::CallbackBase::CallbackBase | ( | const CallbackBase & | rhs | ) | [protected] |
Copy constructor operator not declared.
[in] | rhs | Handle to an object |
Dali::CallbackBase::CallbackBase | ( | Function | function | ) | [protected] |
Constructor for function with static linkage.
[in] | function | The function to call |
Dali::CallbackBase::CallbackBase | ( | void * | object, |
MemberFunction | function, | ||
Dispatcher | dispatcher | ||
) | [protected] |
Constructor for member function.
[in] | object | The object to call (not owned) |
[in] | function | The member function of the object |
[in] | dispatcher | Used to call the actual object |
Dali::CallbackBase::CallbackBase | ( | void * | object, |
MemberFunction | function, | ||
Dispatcher | dispatcher, | ||
Destructor | destructor | ||
) | [protected] |
Constructor for member function.
[in] | object | The object to call (owned) |
[in] | function | The member function of the object |
dispatcher | Used to call the actual object | |
destructor | Used to delete the owned object |
static void Dali::CallbackBase::Execute | ( | CallbackBase & | callback | ) | [static] |
Function to call the function or member function dispatcher.
[in] | callback | The callback to call |
static void Dali::CallbackBase::Execute | ( | CallbackBase & | callback, |
P1 | param1 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
static void Dali::CallbackBase::Execute | ( | CallbackBase & | callback, |
P1 | param1, | ||
P2 | param2 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
[in] | param2 | The second parameter to pass into the function |
static void Dali::CallbackBase::Execute | ( | CallbackBase & | callback, |
P1 | param1, | ||
P2 | param2, | ||
P3 | param3 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
[in] | param2 | The second parameter to pass into the function |
[in] | param3 | The third parameter to pass into the function |
static R Dali::CallbackBase::ExecuteReturn | ( | CallbackBase & | callback | ) | [static] |
Function to call the function or member function dispatcher.
[in] | callback | The callback to call |
static R Dali::CallbackBase::ExecuteReturn | ( | CallbackBase & | callback, |
P1 | param1 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
static R Dali::CallbackBase::ExecuteReturn | ( | CallbackBase & | callback, |
P1 | param1, | ||
P2 | param2 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
[in] | param2 | The second parameter to pass into the function |
static R Dali::CallbackBase::ExecuteReturn | ( | CallbackBase & | callback, |
P1 | param1, | ||
P2 | param2, | ||
P3 | param3 | ||
) | [static] |
Function to call the function or member function dispatcher.
This function template gets instantiated at the call site.
[in] | callback | The callback to call |
[in] | param1 | The first parameter to pass into the function |
[in] | param2 | The second parameter to pass into the function |
[in] | param3 | The third parameter to pass into the function |
CallbackBase& Dali::CallbackBase::operator= | ( | const CallbackBase & | rhs | ) | [protected] |
Assignment operator not declared.
[in] | rhs | Handle to an object |
void Dali::CallbackBase::Reset | ( | ) |
Resets the object pointer so that we know not to call methods of this object any more.