Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::algorithm::split_iterator< IteratorT > Class Template Reference

split_iterator More...

#include <find_iterator.hpp>

Inheritance diagram for boost::algorithm::split_iterator< IteratorT >:
Collaboration diagram for boost::algorithm::split_iterator< IteratorT >:

Public Member Functions

 split_iterator ()
 Default constructor. More...
 
 split_iterator (const split_iterator &Other)
 Copy constructor. More...
 
template<typename FinderT >
 split_iterator (IteratorT Begin, IteratorT End, FinderT Finder)
 Constructor. More...
 
template<typename FinderT , typename RangeT >
 split_iterator (RangeT &Col, FinderT Finder)
 Constructor. More...
 
bool eof () const
 Eof check. More...
 

Friends

class ::boost::iterator_core_access
 

Detailed Description

template<typename IteratorT>
class boost::algorithm::split_iterator< IteratorT >

split_iterator

Split iterator encapsulates a Finder and allows for incremental searching in a string. Unlike the find iterator, split iterator iterates through gaps between matches.

Find iterator is a readable forward traversal iterator.

Dereferencing the iterator yields an iterator_range delimiting the current match.

Constructor & Destructor Documentation

template<typename IteratorT >
boost::algorithm::split_iterator< IteratorT >::split_iterator ( )
inline

Default constructor.

Construct null iterator. All null iterators are equal.

Postcondition
eof()==true
template<typename IteratorT >
boost::algorithm::split_iterator< IteratorT >::split_iterator ( const split_iterator< IteratorT > &  Other)
inline

Copy constructor.

Construct a copy of the split_iterator

template<typename IteratorT >
template<typename FinderT >
boost::algorithm::split_iterator< IteratorT >::split_iterator ( IteratorT  Begin,
IteratorT  End,
FinderT  Finder 
)
inline

Constructor.

Construct new split_iterator for a given finder and a range.

template<typename IteratorT >
template<typename FinderT , typename RangeT >
boost::algorithm::split_iterator< IteratorT >::split_iterator ( RangeT &  Col,
FinderT  Finder 
)
inline

Constructor.

Construct new split_iterator for a given finder and a collection.

References boost::as_literal(), boost::asio::begin, boost::asio::end, and boost::make_iterator_range().

Member Function Documentation

template<typename IteratorT >
bool boost::algorithm::split_iterator< IteratorT >::eof ( ) const
inline

Eof check.

Check the eof condition. Eof condition means that there is nothing more to be searched i.e. find_iterator is after the last match.

References boost::is_null().

Friends And Related Function Documentation

template<typename IteratorT >
friend class ::boost::iterator_core_access
friend

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