Matcher to select events that occur within a region. More...
#include <EventRegionMatcher.hpp>
Public Member Functions | |
bool | operator() (const PushRegionEvent &event) |
If the event matches matcher, matching is set to true . | |
bool | operator() (const PopRegionEvent &) |
Decrement nested_level if we are still matching. | |
template<Event EventType> | |
bool | operator() (const EventType &) const |
Public Attributes | |
MatcherType | matcher {} |
bool | matching = false |
uint32_t | nested_level = invalid_nested_level |
Static Public Attributes | |
static constexpr uint32_t | invalid_nested_level = Kokkos::Experimental::finite_max_v<uint32_t> |
Matcher to select events that occur within a region.
The region is selected by matcher.
Any event occuring between the matching PushRegionEvent and its corresponding PopRegionEvent will match.
Set TrueOnBoundary
to true
if it must return true
for the opening PushRegionEvent and closing PopRegionEvent and false
otherwise.
Definition at line 22 of file EventRegionMatcher.hpp.
|
inline |
Definition at line 62 of file EventRegionMatcher.hpp.
|
inline |
Decrement nested_level if we are still matching.
Definition at line 45 of file EventRegionMatcher.hpp.
|
inline |
If the event
matches matcher, matching is set to true
.
Definition at line 27 of file EventRegionMatcher.hpp.
|
staticconstexpr |
Definition at line 24 of file EventRegionMatcher.hpp.
MatcherType Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::matcher {} |
Definition at line 66 of file EventRegionMatcher.hpp.
bool Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::matching = false |
Definition at line 67 of file EventRegionMatcher.hpp.
uint32_t Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::nested_level = invalid_nested_level |
Definition at line 68 of file EventRegionMatcher.hpp.