|
| using | ParameterType0 = typename T::ParameterType0 |
| | Definition of the 1st function parameter of the callback object.
|
| |
| using | ParameterType1 = typename T::ParameterType1 |
| | Definition of the 2nd function parameter of the callback object.
|
| |
| using | ParameterType2 = typename T::ParameterType2 |
| | Definition of the 3rd function parameter of the callback object.
|
| |
| using | ParameterType3 = typename T::ParameterType3 |
| | Definition of the 4th function parameter of the callback object.
|
| |
| using | ParameterType4 = typename T::ParameterType4 |
| | Definition of the 5th function parameter of the callback object.
|
| |
| using | ParameterType5 = typename T::ParameterType5 |
| | Definition of the 6th function parameter of the callback object.
|
| |
| using | ParameterType6 = typename T::ParameterType6 |
| | Definition of the 7th function parameter of the callback object.
|
| |
| using | ParameterType7 = typename T::ParameterType7 |
| | Definition of the 8th function parameter of the callback object.
|
| |
| using | ParameterType8 = typename T::ParameterType8 |
| | Definition of the 9th function parameter of the callback object.
|
| |
| using | ParameterType9 = typename T::ParameterType9 |
| | Definition of the 10th function parameter of the callback object.
|
| |
| using | ParameterType10 = typename T::ParameterType10 |
| | Definition of the 11th function parameter of the callback object.
|
| |
| using | ParameterType11 = typename T::ParameterType11 |
| | Definition of the 12th function parameter of the callback object.
|
| |
| using | ParameterType12 = typename T::ParameterType12 |
| | Definition of the 13th function parameter of the callback object.
|
| |
| using | ParameterType13 = typename T::ParameterType13 |
| | Definition of the 14th function parameter of the callback object.
|
| |
| using | ParameterType14 = typename T::ParameterType14 |
| | Definition of the 15th function parameter of the callback object.
|
| |
| using | ParameterType15 = typename T::ParameterType15 |
| | Definition of the 16th function parameter of the callback object.
|
| |
| using | ParameterType16 = typename T::ParameterType16 |
| | Definition of the 17th function parameter of the callback object.
|
| |
| using | ParameterType17 = typename T::ParameterType17 |
| | Definition of the 18th function parameter of the callback object.
|
| |
| using | ParameterType18 = typename T::ParameterType18 |
| | Definition of the 19th function parameter of the callback object.
|
| |
| using | ParameterType19 = typename T::ParameterType19 |
| | Definition of the 20th function parameter of the callback object.
|
| |
| using | ReturnType = typename T::ReturnType |
| | Definition of the return type of the callback object.
|
| |
| using | ParameterType0 = typename T::ParameterType0 |
| | Definition of the 1st function parameter of the callback object.
|
| |
| using | ParameterType1 = typename T::ParameterType1 |
| | Definition of the 2nd function parameter of the callback object.
|
| |
| using | ParameterType2 = typename T::ParameterType2 |
| | Definition of the 3rd function parameter of the callback object.
|
| |
| using | ParameterType3 = typename T::ParameterType3 |
| | Definition of the 4th function parameter of the callback object.
|
| |
| using | ParameterType4 = typename T::ParameterType4 |
| | Definition of the 5th function parameter of the callback object.
|
| |
| using | ParameterType5 = typename T::ParameterType5 |
| | Definition of the 6th function parameter of the callback object.
|
| |
| using | ParameterType6 = typename T::ParameterType6 |
| | Definition of the 7th function parameter of the callback object.
|
| |
| using | ParameterType7 = typename T::ParameterType7 |
| | Definition of the 8th function parameter of the callback object.
|
| |
| using | ParameterType8 = typename T::ParameterType8 |
| | Definition of the 9th function parameter of the callback object.
|
| |
| using | ParameterType9 = typename T::ParameterType9 |
| | Definition of the 10th function parameter of the callback object.
|
| |
| using | ParameterType10 = typename T::ParameterType10 |
| | Definition of the 11th function parameter of the callback object.
|
| |
| using | ParameterType11 = typename T::ParameterType11 |
| | Definition of the 12th function parameter of the callback object.
|
| |
| using | ParameterType12 = typename T::ParameterType12 |
| | Definition of the 13th function parameter of the callback object.
|
| |
| using | ParameterType13 = typename T::ParameterType13 |
| | Definition of the 14th function parameter of the callback object.
|
| |
| using | ParameterType14 = typename T::ParameterType14 |
| | Definition of the 15th function parameter of the callback object.
|
| |
| using | ParameterType15 = typename T::ParameterType15 |
| | Definition of the 16th function parameter of the callback object.
|
| |
| using | ParameterType16 = typename T::ParameterType16 |
| | Definition of the 17th function parameter of the callback object.
|
| |
| using | ParameterType17 = typename T::ParameterType17 |
| | Definition of the 18th function parameter of the callback object.
|
| |
| using | ParameterType18 = typename T::ParameterType18 |
| | Definition of the 19th function parameter of the callback object.
|
| |
| using | ParameterType19 = typename T::ParameterType19 |
| | Definition of the 20th function parameter of the callback object.
|
| |
|
| | ConcurrentCallbacks () |
| | Creates a new callbacks object.
|
| |
| | ~ConcurrentCallbacks () |
| | Destructs a callbacks object.
|
| |
| void | addCallback (const T &callback) |
| | Adds a new callback object.
|
| |
| void | removeCallback (const T &callback) |
| | Removes a callback object.
|
| |
| 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.
|
| |
| | Callbacks () |
| | Creates a new object without any initial callback function.
|
| |
| | Callbacks (const Callbacks< T > &callbacks) |
| | Copy constructor.
|
| |
| | Callbacks (Callbacks< T > &&callbacks) noexcept |
| | Move constructor.
|
| |
| | ~Callbacks () |
| | Destructs this object.
|
| |
| void | addCallback (const T &callback) |
| | Adds a new callback object.
|
| |
| void | removeCallback (const T &callback) |
| | Removes a callback object.
|
| |
| 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.
|
| |
| bool | isEmpty () const |
| | Returns whether no callback is stored.
|
| |
| | operator bool () const |
| | Returns whether at least one callback is stored.
|
| |
| Callbacks< T > & | operator= (const Callbacks< T > &callbacks) |
| | Assign operator.
|
| |
| Callbacks< T > & | operator= (Callbacks< T > &&callbacks) noexcept |
| | Move operator.
|
| |
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 |