Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
index_iterator< F, T, R, I, D > Class Template Reference

An iterator over elements which are the result of applying a function to an index. More...

#include <adobe/iterator.hpp>

Inheritance diagram for index_iterator< F, T, R, I, D >:

Public Member Functions

 index_iterator ()
 index_iterator (F f, I i)
 index_iterator (const index_iterator &x)
index_iteratoroperator= (const index_iterator &x)
base () const

Friends

class boost::iterator_core_access
void swap (index_iterator &x, index_iterator &y)

Detailed Description

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
class adobe::index_iterator< F, T, R, I, D >
Model Of:
Types:
  • F: Models Unary Function
  • T: Value type of the sequence's elements; models Regular
  • R: Return type of operator*(); models Reference Type of T
  • I: Index type; models Unsigned Integer
  • D: Difference type of I; models Signed Integer

Definition at line 243 of file iterator.hpp.

Constructor & Destructor Documentation

◆ index_iterator() [1/3]

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
index_iterator ( )

Definition at line 246 of file iterator.hpp.

◆ index_iterator() [2/3]

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
index_iterator ( F f,
I i )

Constructs index_iterator with unary function f and index i.

Definition at line 247 of file iterator.hpp.

◆ index_iterator() [3/3]

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
index_iterator ( const index_iterator< F, T, R, I, D > & x)

Definition at line 249 of file iterator.hpp.

Member Function Documentation

◆ operator=()

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
index_iterator & operator= ( const index_iterator< F, T, R, I, D > & x)

Definition at line 251 of file iterator.hpp.

◆ base()

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
I base ( ) const

Returns iterator's index.

Definition at line 262 of file iterator.hpp.

◆ boost::iterator_core_access

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
friend class boost::iterator_core_access
friend

Definition at line 270 of file iterator.hpp.

◆ swap

template<typename F, typename T, typename R = T&, typename I = std::size_t, typename D = std::ptrdiff_t>
void swap ( index_iterator< F, T, R, I, D > & x,
index_iterator< F, T, R, I, D > & y )
friend

Definition at line 257 of file iterator.hpp.