DUECA/DUSIME
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
dueca::CommonCallbackBase< RET, A1 > Class Template Referenceabstract

Base class for callback mechanism, 1 parameter. More...

#include <CommonCallback.hxx>

Inheritance diagram for dueca::CommonCallbackBase< RET, A1 >:
Inheritance graph
[legend]

Public Types

typedef boost::intrusive_ptr< CommonCallbackBase< RET, A1 > > smart_ptr_type
 Type definition of the callback object.
 

Public Member Functions

virtual RET operator() (A1 &arg1)=0
 Callback function.
 
virtual ~CommonCallbackBase ()
 Destructor.
 

Protected Member Functions

 CommonCallbackBase ()
 Constructor.
 

Friends

template<typename RETx , typename A1x >
void intrusive_ptr_add_ref (const CommonCallbackBase< RETx, A1x > *)
 
template<typename RETx , typename A1x >
void intrusive_ptr_release (const CommonCallbackBase< RETx, A1x > *)
 

Detailed Description

template<typename RET, typename A1>
class dueca::CommonCallbackBase< RET, A1 >

Base class for callback mechanism, 1 parameter.

CommonCallbackBase objects can be used to create callback functions on class instances.

Use the "smart_ptr_type" to create a variable that holds the callback

Template Parameters
RETReturn type
A1Argument type

Member Function Documentation

◆ operator()()

template<typename RET , typename A1 >
virtual RET dueca::CommonCallbackBase< RET, A1 >::operator() ( A1 & arg1)
pure virtual

Callback function.

Parameters
arg1Argument 1

Implemented in dueca::CommonCallback< RET, A1, M >.


The documentation for this class was generated from the following file: