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

Class template zip_iterator

Boost , Chapter 1. Boost.Compute , 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 zip_iterator

boost::compute::zip_iterator — A zip iterator adaptor.

Synopsis

// In header: <boost/compute/iterator/zip_iterator.hpp>
template<typename IteratorTuple> 
class zip_iterator {
public:
  // types
  typedef unspecified                 super_type;     
  typedef super_type::value_type      value_type;     
  typedef super_type::reference       reference;      
  typedef super_type::difference_type difference_type;
  typedef IteratorTuple               iterator_tuple; 
  // construct/copy/destruct
  zip_iterator(IteratorTuple);
  zip_iterator(const zip_iterator< IteratorTuple > &);
  zip_iterator< IteratorTuple > & 
  operator=(const zip_iterator< IteratorTuple > &);
  ~zip_iterator();
  // public member functions
  const IteratorTuple & get_iterator_tuple() const;
  template<typename IndexExpression> 
    unspecified operator[](const IndexExpression &) const;
  // private member functions
  reference dereference() const;
  bool equal(const zip_iterator< IteratorTuple > &) const;
  void increment();
  void decrement();
  void advance(difference_type);
  difference_type distance_to(const zip_iterator< IteratorTuple > &) const;
};

Description

zip_iteratorкласс объединяет значения из нескольких входных итераторов. При отклонении он возвращает кортеж, содержащий каждое значение в текущем положении в каждом входном диапазоне.

См. также:

make_zip_iterator()

zip_iterator public construct/copy/destruct

  1. <
    zip_iterator(IteratorTupleiterators);
    >
  2. <
    zip_iterator(constzip_iterator<IteratorTuple>&other);
    >
  3. <
    zip_iterator<IteratorTuple>&
    operator=(constzip_iterator<IteratorTuple>&other);
    >
  4. <
    ~zip_iterator();
    >

zip_iterator public member functions

  1. <
    constIteratorTuple&get_iterator_tuple()const;
    >
  2. <
    template<typenameIndexExpression>
     unspecifiedoperator[](constIndexExpression&expr)const;
    >

zip_iterator private member functions

  1. <
    referencedereference()const;
    >
  2. <
    boolequal(constzip_iterator<IteratorTuple>&other)const;
    >
  3. <
    voidincrement();
    >
  4. <
    voiddecrement();
    >
  5. <
    voidadvance(difference_typen);
    >
  6. <
    difference_typedistance_to(constzip_iterator<IteratorTuple>&other)const;
    >

PrevUpHomeNext

Статья Class template zip_iterator раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 07:27:31/0.0060379505157471/0