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

Class template strided_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 strided_iterator

boost::compute::strided_iterator — An iterator adaptor with adjustable iteration step.

Synopsis

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

Description

Перешагнутый адаптер итератора пропускает несколько элементов каждый раз, когда он увеличивается или уменьшается.

Смотрите также:

buffer_iterator, make_strided_iterator(), make_strided_iterator_end()

strided_iterator public construct/copy/destruct

  1. <
    strided_iterator(Iteratoriterator,difference_typestride);
    >
  2. <
    strided_iterator(conststrided_iterator<Iterator>&other);
    >
  3. <
    strided_iterator<Iterator>&
    operator=(conststrided_iterator<Iterator>&other);
    >
  4. <
    ~strided_iterator();
    >

strided_iterator public member functions

  1. <
    size_tget_index()const;
    >
  2. <
    constbuffer&get_buffer()const;
    >
  3. <
    template<typenameIndexExpression>
     unspecifiedoperator[](constIndexExpression&expr)const;
    >

strided_iterator private member functions

  1. <
    referencedereference()const;
    >
  2. <
    boolequal(conststrided_iterator<Iterator>&other)const;
    >
  3. <
    voidincrement();
    >
  4. <
    voiddecrement();
    >
  5. <
    voidadvance(typenamesuper_type::difference_typen);
    >
  6. <
    difference_typedistance_to(conststrided_iterator<Iterator>&other)const;
    >

PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 20:02:21/0.028198957443237/1