kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType > Struct Template Reference

Match a begin event and its corresponding end event based on their event_id. More...

#include <EventBeginEndIdMatcher.hpp>

Public Types

using end_event_t = paired_event_t<BeginEventType>
 

Public Member Functions

bool operator() (const BeginEventType &event)
 
bool operator() (const end_event_t &event) const
 

Public Attributes

BeginMatcherType matcher
 
EventIdMatcher matcher_end {}
 

Detailed Description

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
struct Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >

Match a begin event and its corresponding end event based on their event_id.

The matcher can be used to match a specific begin event of type BeginEventType.

Note
The begin and end event types, constrained by the BeginEvent and EndEvent concepts, respectively, have an event_id member. For a given event of a begin event type, there is only one event of the corresponding end event type that will potentially have the same event_id as the begin event. For instance, given a BeginParallelForEvent event, only one EndParallelForEvent event should match.

Definition at line 22 of file EventBeginEndIdMatcher.hpp.

Member Typedef Documentation

◆ end_event_t

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
using Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >::end_event_t = paired_event_t<BeginEventType>

Definition at line 24 of file EventBeginEndIdMatcher.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
bool Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >::operator() ( const BeginEventType & event)
inline

Definition at line 26 of file EventBeginEndIdMatcher.hpp.

◆ operator()() [2/2]

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
bool Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >::operator() ( const end_event_t & event) const
inline

Definition at line 36 of file EventBeginEndIdMatcher.hpp.

Member Data Documentation

◆ matcher

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
BeginMatcherType Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >::matcher

Definition at line 40 of file EventBeginEndIdMatcher.hpp.

◆ matcher_end

template<BeginEvent BeginEventType, MatcherFor< BeginEventType > BeginMatcherType>
EventIdMatcher Kokkos::utils::callbacks::EventBeginEndIdMatcher< BeginEventType, BeginMatcherType >::matcher_end {}

Definition at line 41 of file EventBeginEndIdMatcher.hpp.


The documentation for this struct was generated from the following file: