LLVM OpenMP 22.0.0git
Public Member Functions | List of all members
omptest::OmptEventReporter Class Reference

Class that reports the occurred events. More...

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

Inheritance diagram for omptest::OmptEventReporter:
[legend]

Public Member Functions

 OmptEventReporter (std::ostream &OutStream=std::cout)
 
void notify (omptest::OmptAssertEvent &&AE) override
 Called from the CallbackHandler with a corresponding AssertEvent to which callback was handled.
 
- Public Member Functions inherited from omptest::OmptListener
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

Class that reports the occurred events.

Definition at line 238 of file OmptAsserter.h.

Constructor & Destructor Documentation

◆ OmptEventReporter()

omptest::OmptEventReporter::OmptEventReporter ( std::ostream &  OutStream = std::cout)
inline

Definition at line 240 of file OmptAsserter.h.

Member Function Documentation

◆ notify()

void OmptEventReporter::notify ( omptest::OmptAssertEvent &&  AE)
overridevirtual

Called from the CallbackHandler with a corresponding AssertEvent to which callback was handled.

Implements omptest::OmptListener.

Definition at line 436 of file OmptAsserter.cpp.

References omptest::OmptListener::isActive(), and omptest::OmptListener::isSuppressedEventType().


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