Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template split_iterator

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template split_iterator

boost::algorithm::split_iterator — split_iterator

Synopsis

// In header: <boost/algorithm/string/find_iterator.hpp>
template<typename IteratorT> 
class split_iterator : public iterator_facade< split_iterator< IteratorT >, const iterator_range< IteratorT >, forward_traversal_tag >
{
public:
  // construct/copy/destruct
  split_iterator();
  split_iterator(const split_iterator &);
  template<typename FinderT> split_iterator(IteratorT, IteratorT, FinderT);
  template<typename FinderT, typename RangeT> 
    split_iterator(RangeT &, FinderT);
  // public member functions
  bool eof() const;
  // private member functions
  const match_type & dereference() const;
  void increment();
  bool equal(const split_iterator &) const;
};

Description

Разделенный итератор инкапсулирует Finder и позволяет осуществлять инкрементный поиск в строке. В отличие от итератора нахождения, итератор делится через промежутки между матчами.

Find Iterator - это читаемый передний итератор.

Ссылка на итератор дает диапазон итератора, определяющий текущий матч.

split_iterator public construct/copy/destruct

  1. <
    split_iterator();
    >По умолчанию конструктор.

    Постройте нулевой итератор. Все нуль-итераторы равны.

    Последующие условия:

    eof()===правда

  2. <
    split_iterator(constsplit_iterator&Other);
    >Копировать конструктор.

    Постройте копию<split_iterator>

  3. <
    template<typenameFinderT>
     split_iterator(IteratorTBegin,IteratorTEnd,FinderTFinder);
    >Конструктор.

    Постройте новый<split_iterator>для данного искателя и диапазона.

  4. <
    template<typenameFinderT,typenameRangeT>
     split_iterator(RangeT&Col,FinderTFinder);
    >Конструктор.

    Постройте новое<split_iterator>для данного искателя и коллекции.

split_iterator public member functions

  1. <
    booleof()const;
    >Проверка.

    Проверить состояние. Условие Eof означает, что больше нечего искать, то есть<find_iterator>после последнего матча.

split_iterator private member functions

  1. <
    constmatch_type&dereference()const;
    >
  2. <
    voidincrement();
    >
  3. <
    boolequal(constsplit_iterator&Other)const;
    >

PrevUpHomeNext

Статья Class template split_iterator раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-07-04 19:38:27/0.0083370208740234/1