reflex::AbstractMatcher< P >::Match Class Reference

updated Sun Sep 25 2016
 
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
reflex::AbstractMatcher< P >::Match Class Reference

AbstractMatcher::Match functor to match input to a pattern, also provides a (const) AbstractMatcher::iterator to iterate over matches. More...

#include <absmatcher.h>

Collaboration diagram for reflex::AbstractMatcher< P >::Match:
Collaboration graph
[legend]

Public Member Functions

const AbstractMatcheroperator() (void) const
 
iterator begin (void) const
 
iterator end (void) const
 
const_iterator cbegin (void) const
 
const_iterator cend (void) const
 

Private Member Functions

 Match (AbstractMatcher *matcher, Method method)
 Construct an AbstractMatcher::Match functor to scan, search, or split an input character sequence. More...
 

Private Attributes

AbstractMatchermatcher_
 the matcher used by this functor More...
 
Method method_
 the method for pattern matching by this functor's matcher More...
 

Friends

class AbstractMatcher
 

Detailed Description

template<typename P>
class reflex::AbstractMatcher< P >::Match

AbstractMatcher::Match functor to match input to a pattern, also provides a (const) AbstractMatcher::iterator to iterate over matches.

Constructor & Destructor Documentation

template<typename P>
reflex::AbstractMatcher< P >::Match::Match ( AbstractMatcher matcher,
Method  method 
)
inlineprivate

Construct an AbstractMatcher::Match functor to scan, search, or split an input character sequence.

Parameters
matcheruse this matcher for this functor
methodmatch using method Const::scan, Const::find, or Const::split

Member Function Documentation

template<typename P>
iterator reflex::AbstractMatcher< P >::Match::begin ( void  ) const
inline

AbstractMatcher::Match.begin() returns a std::input_iterator to the start of the matches.

Returns
input iterator.
template<typename P>
const_iterator reflex::AbstractMatcher< P >::Match::cbegin ( void  ) const
inline

AbstractMatcher::Match.cbegin() returns a const std::input_iterator to the start of the matches.

Returns
input const_iterator.
template<typename P>
const_iterator reflex::AbstractMatcher< P >::Match::cend ( void  ) const
inline

AbstractMatcher::Match.cend() returns a const std::input_iterator to the end of matches.

Returns
input const_iterator.
template<typename P>
iterator reflex::AbstractMatcher< P >::Match::end ( void  ) const
inline

AbstractMatcher::Match.end() returns a std::input_iterator to the end of matches.

Returns
input iterator.
template<typename P>
const AbstractMatcher& reflex::AbstractMatcher< P >::Match::operator() ( void  ) const
inline

AbstractMatcher::Match() matches input to a pattern using method Const::scan, Const::find, or Const::split.

Returns
reference to the matcher (to check for a match and/or obtain match information).

Friends And Related Function Documentation

template<typename P>
friend class AbstractMatcher
friend

Member Data Documentation

template<typename P>
AbstractMatcher* reflex::AbstractMatcher< P >::Match::matcher_
private

the matcher used by this functor

template<typename P>
Method reflex::AbstractMatcher< P >::Match::method_
private

the method for pattern matching by this functor's matcher


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