kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType > Struct Template Reference

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

#include <EventBeginEndEventIdMatcher.hpp>

Public Member Functions

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

Public Attributes

MatcherBeginEventType matcher
 
uint64_t event_id = invalid_event_id
 

Static Public Attributes

static constexpr auto invalid_event_id = Kokkos::Experimental::finite_max_v<uint64_t>
 

Detailed Description

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
requires MatcherFor<MatcherBeginEventType, BeginEventType>
struct Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >

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.

Definition at line 16 of file EventBeginEndEventIdMatcher.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
bool Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >::operator() ( const BeginEventType & event)
inline

Definition at line 20 of file EventBeginEndEventIdMatcher.hpp.

◆ operator()() [2/2]

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
bool Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >::operator() ( const EndEventType & event) const
inline

Definition at line 31 of file EventBeginEndEventIdMatcher.hpp.

Member Data Documentation

◆ event_id

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
uint64_t Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >::event_id = invalid_event_id

Definition at line 36 of file EventBeginEndEventIdMatcher.hpp.

◆ invalid_event_id

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
auto Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >::invalid_event_id = Kokkos::Experimental::finite_max_v<uint64_t>
staticconstexpr

Definition at line 18 of file EventBeginEndEventIdMatcher.hpp.

◆ matcher

template<Matcher MatcherBeginEventType, BeginEvent BeginEventType, EndEvent EndEventType>
MatcherBeginEventType Kokkos::utils::callbacks::EventBeginEndEventIdMatcher< MatcherBeginEventType, BeginEventType, EndEventType >::matcher

Definition at line 35 of file EventBeginEndEventIdMatcher.hpp.


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