|
typedef T::ParameterType0 | ParameterType0 |
| Definition of the 1st function parameter of the callback object. More...
|
|
typedef T::ParameterType1 | ParameterType1 |
| Definition of the 2nd function parameter of the callback object. More...
|
|
typedef T::ParameterType2 | ParameterType2 |
| Definition of the 3rd function parameter of the callback object. More...
|
|
typedef T::ParameterType3 | ParameterType3 |
| Definition of the 4th function parameter of the callback object. More...
|
|
typedef T::ParameterType4 | ParameterType4 |
| Definition of the 5th function parameter of the callback object. More...
|
|
typedef T::ParameterType5 | ParameterType5 |
| Definition of the 6th function parameter of the callback object. More...
|
|
typedef T::ParameterType6 | ParameterType6 |
| Definition of the 7th function parameter of the callback object. More...
|
|
typedef T::ParameterType7 | ParameterType7 |
| Definition of the 8th function parameter of the callback object. More...
|
|
typedef T::ParameterType8 | ParameterType8 |
| Definition of the 9th function parameter of the callback object. More...
|
|
typedef T::ParameterType9 | ParameterType9 |
| Definition of the 10th function parameter of the callback object. More...
|
|
typedef T::ParameterType10 | ParameterType10 |
| Definition of the 11th function parameter of the callback object. More...
|
|
typedef T::ParameterType11 | ParameterType11 |
| Definition of the 12th function parameter of the callback object. More...
|
|
typedef T::ParameterType12 | ParameterType12 |
| Definition of the 13th function parameter of the callback object. More...
|
|
typedef T::ParameterType13 | ParameterType13 |
| Definition of the 14th function parameter of the callback object. More...
|
|
typedef T::ParameterType14 | ParameterType14 |
| Definition of the 15th function parameter of the callback object. More...
|
|
typedef T::ParameterType15 | ParameterType15 |
| Definition of the 16th function parameter of the callback object. More...
|
|
typedef T::ParameterType16 | ParameterType16 |
| Definition of the 17th function parameter of the callback object. More...
|
|
typedef T::ParameterType17 | ParameterType17 |
| Definition of the 18th function parameter of the callback object. More...
|
|
typedef T::ParameterType18 | ParameterType18 |
| Definition of the 19th function parameter of the callback object. More...
|
|
typedef T::ParameterType19 | ParameterType19 |
| Definition of the 20th function parameter of the callback object. More...
|
|
typedef T::ReturnType | ReturnType |
| Definition of the return type of the callback object. More...
|
|
typedef T::ParameterType0 | ParameterType0 |
| Definition of the 1st function parameter of the callback object. More...
|
|
typedef T::ParameterType1 | ParameterType1 |
| Definition of the 2nd function parameter of the callback object. More...
|
|
typedef T::ParameterType2 | ParameterType2 |
| Definition of the 3rd function parameter of the callback object. More...
|
|
typedef T::ParameterType3 | ParameterType3 |
| Definition of the 4th function parameter of the callback object. More...
|
|
typedef T::ParameterType4 | ParameterType4 |
| Definition of the 5th function parameter of the callback object. More...
|
|
typedef T::ParameterType5 | ParameterType5 |
| Definition of the 6th function parameter of the callback object. More...
|
|
typedef T::ParameterType6 | ParameterType6 |
| Definition of the 7th function parameter of the callback object. More...
|
|
typedef T::ParameterType7 | ParameterType7 |
| Definition of the 8th function parameter of the callback object. More...
|
|
typedef T::ParameterType8 | ParameterType8 |
| Definition of the 9th function parameter of the callback object. More...
|
|
typedef T::ParameterType9 | ParameterType9 |
| Definition of the 10th function parameter of the callback object. More...
|
|
typedef T::ParameterType10 | ParameterType10 |
| Definition of the 11th function parameter of the callback object. More...
|
|
typedef T::ParameterType11 | ParameterType11 |
| Definition of the 12th function parameter of the callback object. More...
|
|
typedef T::ParameterType12 | ParameterType12 |
| Definition of the 13th function parameter of the callback object. More...
|
|
typedef T::ParameterType13 | ParameterType13 |
| Definition of the 14th function parameter of the callback object. More...
|
|
typedef T::ParameterType14 | ParameterType14 |
| Definition of the 15th function parameter of the callback object. More...
|
|
typedef T::ParameterType15 | ParameterType15 |
| Definition of the 16th function parameter of the callback object. More...
|
|
typedef T::ParameterType16 | ParameterType16 |
| Definition of the 17th function parameter of the callback object. More...
|
|
typedef T::ParameterType17 | ParameterType17 |
| Definition of the 18th function parameter of the callback object. More...
|
|
typedef T::ParameterType18 | ParameterType18 |
| Definition of the 19th function parameter of the callback object. More...
|
|
typedef T::ParameterType19 | ParameterType19 |
| Definition of the 20th function parameter of the callback object. More...
|
|
|
| ConcurrentCallbacks () |
| Creates a new callbacks object. More...
|
|
| ~ConcurrentCallbacks () |
| Destructs a callbacks object. More...
|
|
void | addCallback (const T &callback) |
| Adds a new callback object. More...
|
|
void | removeCallback (const T &callback) |
| Removes a callback object. More...
|
|
void | operator() (ParameterType0 param0=ParameterType0(), ParameterType1 param1=ParameterType1(), ParameterType2 param2=ParameterType2(), ParameterType3 param3=ParameterType3(), ParameterType4 param4=ParameterType4(), ParameterType5 param5=ParameterType5(), ParameterType6 param6=ParameterType6(), ParameterType7 param7=ParameterType7(), ParameterType8 param8=ParameterType8(), ParameterType9 param9=ParameterType9(), ParameterType10 param10=ParameterType10(), ParameterType11 param11=ParameterType11(), ParameterType12 param12=ParameterType12(), ParameterType13 param13=ParameterType13(), ParameterType14 param14=ParameterType14(), ParameterType15 param15=ParameterType15(), ParameterType16 param16=ParameterType16(), ParameterType17 param17=ParameterType17(), ParameterType18 param18=ParameterType18(), ParameterType19 param19=ParameterType19()) |
| Calls all encapsulated callback functions. More...
|
|
| Callbacks () |
| Creates a new object without any initial callback function. More...
|
|
| Callbacks (const Callbacks< T > &callbacks) |
| Copy constructor. More...
|
|
| Callbacks (Callbacks< T > &&callbacks) noexcept |
| Move constructor. More...
|
|
| ~Callbacks () |
| Destructs this object. More...
|
|
void | addCallback (const T &callback) |
| Adds a new callback object. More...
|
|
void | removeCallback (const T &callback) |
| Removes a callback object. More...
|
|
ReturnType | operator() (ParameterType0 param0=ParameterType0(), ParameterType1 param1=ParameterType1(), ParameterType2 param2=ParameterType2(), ParameterType3 param3=ParameterType3(), ParameterType4 param4=ParameterType4(), ParameterType5 param5=ParameterType5(), ParameterType6 param6=ParameterType6(), ParameterType7 param7=ParameterType7(), ParameterType8 param8=ParameterType8(), ParameterType9 param9=ParameterType9(), ParameterType10 param10=ParameterType10(), ParameterType11 param11=ParameterType11(), ParameterType12 param12=ParameterType12(), ParameterType13 param13=ParameterType13(), ParameterType14 param14=ParameterType14(), ParameterType15 param15=ParameterType15(), ParameterType16 param16=ParameterType16(), ParameterType17 param17=ParameterType17(), ParameterType18 param18=ParameterType18(), ParameterType19 param19=ParameterType19()) const |
| Calls all encapsulated callback functions. More...
|
|
bool | isEmpty () const |
| Returns whether no callback is stored. More...
|
|
| operator bool () const |
| Returns whether at least one callback is stored. More...
|
|
Callbacks< T > & | operator= (const Callbacks< T > &callbacks) |
| Assign operator. More...
|
|
Callbacks< T > & | operator= (Callbacks< T > &&callbacks) noexcept |
| Move operator. More...
|
|
template<typename T>
class Ocean::ConcurrentCallbacks< T >
This class implements an extended callbacks object and is also thread-safe.
This implementation allows to remove or add callback objects while the callbacks are invoked (by the same thread).
- See also
- Callbacks, Callback.
- Template Parameters
-
T | Type of the callbacks to be stored |