RepeatingPredicateMatcher< PRED > Struct Template Reference

#include <algorithms.h>

Detailed Description

template<typename PRED>
struct maxon::RepeatingPredicateMatcher< PRED >

A matcher that finds the first sequence of continuous elements which satisfy a predicate.

Public Member Functions

 RepeatingPredicateMatcher (const PRED &predIn)
 
 RepeatingPredicateMatcher (const RepeatingPredicateMatcher &)=default
 
RepeatingPredicateMatcheroperator= (const RepeatingPredicateMatcher &)=default
 
template<typename ITERATOR , typename SENTINEL >
auto FindNext (ITERATOR first, SENTINEL sentinel) const -> Match< ITERATOR >
 
template<typename INDEXABLE >
auto FindNextIndex (const INDEXABLE &indexable, IndexPair indexPair) const -> Match< Int >
 

Public Attributes

const PRED & pred
 

Constructor & Destructor Documentation

◆ RepeatingPredicateMatcher() [1/2]

RepeatingPredicateMatcher ( const PRED &  predIn)
explicit

◆ RepeatingPredicateMatcher() [2/2]

Member Function Documentation

◆ operator=()

RepeatingPredicateMatcher& operator= ( const RepeatingPredicateMatcher< PRED > &  )
default

◆ FindNext()

auto FindNext ( ITERATOR  first,
SENTINEL  sentinel 
) const -> Match<ITERATOR>

◆ FindNextIndex()

auto FindNextIndex ( const INDEXABLE indexable,
IndexPair  indexPair 
) const -> Match<Int>

Member Data Documentation

◆ pred

const PRED& pred