SequenceMatcher< SEARCH_SEQ, COMPARE > Struct Template Reference

#include <algorithms.h>

Detailed Description

template<typename SEARCH_SEQ, typename COMPARE>
struct maxon::SequenceMatcher< SEARCH_SEQ, COMPARE >

SequenceMatcher.

Public Member Functions

 SequenceMatcher (const SEARCH_SEQ &searchSeqIn, const COMPARE &compIn)
 
 SequenceMatcher (const SequenceMatcher &)=default
 
SequenceMatcheroperator= (const SequenceMatcher &)=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 > const
 

Public Attributes

const SEARCH_SEQ & searchSeq
 
const COMPARE & comp
 

Constructor & Destructor Documentation

◆ SequenceMatcher() [1/2]

SequenceMatcher ( const SEARCH_SEQ &  searchSeqIn,
const COMPARE &  compIn 
)

◆ SequenceMatcher() [2/2]

SequenceMatcher ( const SequenceMatcher< SEARCH_SEQ, COMPARE > &  )
default

Member Function Documentation

◆ operator=()

SequenceMatcher& operator= ( const SequenceMatcher< SEARCH_SEQ, COMPARE > &  )
default

◆ FindNext()

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

◆ FindNextIndex()

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

Member Data Documentation

◆ searchSeq

const SEARCH_SEQ& searchSeq

◆ comp

const COMPARE& comp