kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes > Struct Template Reference

Conjunction of matchers that is true only if all matchers agree. More...

#include <ConjunctionMatcher.hpp>

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) == sizeof...(MatcherTypes))
 ConjunctionMatcher (Args &&... args)
 
template<Event EventType>
requires (MatcherFor<MatcherTypes, EventType> && ...)
bool operator() (const EventType &event)
 

Public Attributes

std::tuple< MatcherTypes... > matchers
 

Detailed Description

template<Matcher... MatcherTypes>
requires (sizeof...(MatcherTypes) > 1)
struct Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes >

Conjunction of matchers that is true only if all matchers agree.

Warning
It is short-circuiting.

Definition at line 16 of file ConjunctionMatcher.hpp.

Constructor & Destructor Documentation

◆ ConjunctionMatcher()

template<Matcher... MatcherTypes>
template<typename... Args>
requires (sizeof...(Args) == sizeof...(MatcherTypes))
Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes >::ConjunctionMatcher ( Args &&... args)
inlineexplicit

Definition at line 19 of file ConjunctionMatcher.hpp.

Member Function Documentation

◆ operator()()

template<Matcher... MatcherTypes>
template<Event EventType>
requires (MatcherFor<MatcherTypes, EventType> && ...)
bool Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes >::operator() ( const EventType & event)
inline

Definition at line 22 of file ConjunctionMatcher.hpp.

Member Data Documentation

◆ matchers

template<Matcher... MatcherTypes>
std::tuple<MatcherTypes...> Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes >::matchers

Definition at line 29 of file ConjunctionMatcher.hpp.


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