kokkos-utils 0.0.4
 
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

 ConjunctionMatcher ()=default
 
template<typename... Args>
requires (sizeof...(Args) > 0 && 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() [1/2]

template<Matcher... MatcherTypes>
Kokkos::utils::callbacks::ConjunctionMatcher< MatcherTypes >::ConjunctionMatcher ( )
default

◆ ConjunctionMatcher() [2/2]

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

Definition at line 21 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 24 of file ConjunctionMatcher.hpp.

Member Data Documentation

◆ matchers

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

Definition at line 31 of file ConjunctionMatcher.hpp.


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