|
| Trigger (const Trigger &)=delete |
|
Trigger & | operator= (const Trigger &)=delete |
|
template<typename T , typename UserType > |
| Trigger (StateBasedTrigger_t, T *const stateOrigin, const cxx::ConstMethodCallback< bool > &hasTriggeredCallback, const cxx::MethodCallback< void, uint64_t > &resetCallback, const uint64_t notificationId, const NotificationCallback< T, UserType > &callback, const uint64_t uniqueId, const uint64_t stateType, const uint64_t stateTypeHash) noexcept |
| Creates a state based Trigger. More...
|
|
template<typename T , typename UserType > |
| Trigger (EventBasedTrigger_t, T *const notificationOrigin, const cxx::MethodCallback< void, uint64_t > &resetCallback, const uint64_t notificationId, const NotificationCallback< T, UserType > &callback, const uint64_t uniqueId, const uint64_t notificationType, const uint64_t notificationTypeHash) noexcept |
| Creates an event based Trigger. More...
|
|
| Trigger (Trigger &&rhs) noexcept |
|
Trigger & | operator= (Trigger &&rhs) noexcept |
|
| ~Trigger () |
| calls reset on destruction
|
|
| operator bool () const noexcept |
| returns true if the Trigger is valid otherwise false A trigger is valid when: More...
|
|
bool | isValid () const noexcept |
| returns true if the trigger is valid otherwise false
|
|
bool | isStateConditionSatisfied () const noexcept |
| returns the result of the provided hasTriggeredCallback More...
|
|
void | reset () noexcept |
| resets and invalidates the Trigger
|
|
void | invalidate () noexcept |
| invalidates the Trigger without calling the reset callback
|
|
uint64_t | getUniqueId () const noexcept |
| returns the internal unique id of the trigger
|
|
bool | isLogicalEqualTo (const void *const notificationOrigin, const uint64_t originTriggerType, const uint64_t originTriggerTypeHash) const noexcept |
| returns true if the Triggers are logical equal otherwise false. Two Triggers are logical equal when More...
|
|
template<typename T > |
void | updateOrigin (T &newOrigin) noexcept |
| sets a new origin of the trigger More...
|
|
const NotificationInfo & | getNotificationInfo () const noexcept |
| returns the NotificationInfo
|
|
TriggerType | getTriggerType () const noexcept |
| returns the type of trigger
|
|
template<typename T , typename ContextDataType > |
| Trigger (StateBasedTrigger_t, T *const stateOrigin, const cxx::ConstMethodCallback< bool > &hasTriggeredCallback, const cxx::MethodCallback< void, uint64_t > &resetCallback, const uint64_t notificationId, const NotificationCallback< T, ContextDataType > &callback, const uint64_t uniqueId, const uint64_t stateType, const uint64_t stateTypeHash) noexcept |
|
template<typename T , typename ContextDataType > |
| Trigger (EventBasedTrigger_t, T *const notificationOrigin, const cxx::MethodCallback< void, uint64_t > &resetCallback, const uint64_t notificationId, const NotificationCallback< T, ContextDataType > &callback, const uint64_t uniqueId, const uint64_t notificationType, const uint64_t notificationTypeHash) noexcept |
|
The Trigger class is usually managed by a factory class like a WaitSet and acquired by classes which would like to signal a notification. Multiple Trigger can share a common ConditionVariableData pointer so that multiple Trigger can signal a single instance.