SequenceMatcher< SEARCH_SEQ, COMPARE > Struct Template Reference

#include <algorithms.h>

详细描述

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

SequenceMatcher .

公共成员函数

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

构造函数 & 析构函数文档编制

◆  SequenceMatcher() [1/2]

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

◆  SequenceMatcher() [2/2]

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

成员函数文档编制

◆  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