LLVM OpenMP 22.0.0git
Public Member Functions | List of all members
omptest::OmptListener Class Referenceabstract

General base class for the subscriber/notification pattern in OmptCallbackHandler. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/openmp/tools/omptest/include/OmptAsserter.h"

Inheritance diagram for omptest::OmptListener:
[legend]

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~OmptListener()

virtual omptest::OmptListener::~OmptListener ( )
virtualdefault

Member Function Documentation

◆ isActive()

bool OmptListener::isActive ( )

◆ isSuppressedEventType()

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().

◆ notify()

virtual void omptest::OmptListener::notify ( omptest::OmptAssertEvent &&  AE)
pure virtual

Called for each registered OMPT event of the OmptCallbackHandler.

Implemented in omptest::OmptAsserter, and omptest::OmptEventReporter.

◆ permitEvent()

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.

◆ setActive()

void OmptListener::setActive ( bool  Enabled)

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().

◆ suppressEvent()

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.


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