LLVM OpenMP 22.0.0git
|
General base class for the subscriber/notification pattern in OmptCallbackHandler. More...
Public Member Functions | |
virtual | ~OmptListener ()=default |
virtual void | notify (omptest::OmptAssertEvent &&AE)=0 |
Called for each registered OMPT event of the OmptCallbackHandler. | |
void | setActive (bool Enabled) |
Control whether this asserter should be considered 'active'. | |
bool | isActive () |
Check if this asserter is considered 'active'. | |
bool | isSuppressedEventType (omptest::internal::EventTy EvTy) |
Check if the given event type is from the set of suppressed event types. | |
void | permitEvent (omptest::internal::EventTy EvTy) |
Remove the given event type to the set of suppressed events. | |
void | suppressEvent (omptest::internal::EventTy EvTy) |
Add the given event type to the set of suppressed events. | |
General base class for the subscriber/notification pattern in OmptCallbackHandler.
Derived classes need to implement the notify method.
Definition at line 37 of file OmptAsserter.h.
|
virtualdefault |
bool OmptListener::isActive | ( | ) |
Check if this asserter is considered 'active'.
Definition at line 63 of file OmptAsserter.cpp.
Referenced by omptest::OmptAsserter::notify(), omptest::OmptEventReporter::notify(), omptest::OmptSequencedAsserter::notifyImpl(), and omptest::OmptEventAsserter::notifyImpl().
bool OmptListener::isSuppressedEventType | ( | omptest::internal::EventTy | EvTy | ) |
Check if the given event type is from the set of suppressed event types.
Definition at line 65 of file OmptAsserter.cpp.
Referenced by omptest::OmptAsserter::notify(), omptest::OmptEventReporter::notify(), omptest::OmptSequencedAsserter::notifyImpl(), and omptest::OmptEventAsserter::notifyImpl().
|
pure virtual |
Called for each registered OMPT event of the OmptCallbackHandler.
Implemented in omptest::OmptAsserter, and omptest::OmptEventReporter.
void OmptListener::permitEvent | ( | omptest::internal::EventTy | EvTy | ) |
Remove the given event type to the set of suppressed events.
Definition at line 69 of file OmptAsserter.cpp.
Control whether this asserter should be considered 'active'.
Definition at line 61 of file OmptAsserter.cpp.
Referenced by libomptest_global_eventreporter_set_active(), and ompt_initialize().
void OmptListener::suppressEvent | ( | omptest::internal::EventTy | EvTy | ) |
Add the given event type to the set of suppressed events.
Definition at line 71 of file OmptAsserter.cpp.