kokkos-utils
0.0.5
Toggle main menu visibility
Loading...
Searching...
No Matches
EventTypeMatcher.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
2
#define KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
3
4
#include "
kokkos-utils/callbacks/Events.hpp
"
5
#include "
kokkos-utils/callbacks/Matcher.hpp
"
6
7
namespace
Kokkos::utils::callbacks
8
{
9
15
template
<
Matcher
MatcherType,
Event
...
EventTypes
>
requires
MatcherFor
<MatcherType,
EventTypes
...>
16
struct
EventTypeMatcher
17
{
18
template
<
EventOneOf
<EventTypes...> EventType>
requires
MatcherFor<MatcherType, EventType>
19
bool
operator()
(
const
EventType& event) {
20
return
matcher
(event);
21
}
22
23
MatcherType
matcher
;
24
};
25
26
}
// namespace Kokkos::utils::callbacks
27
28
#endif
// KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
Events.hpp
Matcher.hpp
Kokkos::utils::callbacks::EventOneOf
Concept to constrain any event type that is one of the given event types.
Definition
Events.hpp:288
Kokkos::utils::callbacks::Event
Definition
Events.hpp:223
Kokkos::utils::callbacks::MatcherFor
Check that Callable is a matcher for each event in EventTypes.
Definition
Matcher.hpp:35
Kokkos::utils::callbacks::Matcher
Callable is a matcher if it is invocable with at least one event type from Kokkos::utils::callbacks::...
Definition
Matcher.hpp:31
Kokkos::utils::callbacks
Definition
BeginEndTimerListener.hpp:12
Kokkos::utils::tests::timer::EventTypes
::testing::Types< Event< void >, Event< execution_space > > EventTypes
Definition
test_Event.cpp:32
Kokkos::utils::callbacks::EventTypeMatcher
Restrict the event types that can be matched by matcher to the subset EventTypes.
Definition
EventTypeMatcher.hpp:17
Kokkos::utils::callbacks::EventTypeMatcher< region_matcher_t, PushRegionEvent, PopRegionEvent >::matcher
MatcherType matcher
Definition
EventTypeMatcher.hpp:23
Kokkos::utils::callbacks::EventTypeMatcher::operator()
bool operator()(const EventType &event)
Definition
EventTypeMatcher.hpp:19
include
kokkos-utils
callbacks
EventTypeMatcher.hpp
Generated on
for kokkos-utils by
1.18.0