stepping_iterator Class Template Reference

#include <ql/Utilities/steppingiterator.hpp>

List of all members.


Detailed Description

template<class RandomAccessIterator>
class QuantLib::stepping_iterator< RandomAccessIterator >

Iterator advancing in constant steps.

This iterator advances an underlying random access iterator in steps of $ n $ positions, where $ n $ is an integer given upon construction.


Public Member Functions

 stepping_iterator (const RandomAccessIterator &it, difference_type step)
Dereferencing
reference operator * () const
pointer operator-> () const
Random access
reference operator[] (difference_type i) const
Increment and decrement
stepping_iteratoroperator++ ()
stepping_iterator operator++ (int)
stepping_iteratoroperator-- ()
stepping_iterator operator-- (int)
stepping_iteratoroperator+= (difference_type i)
stepping_iteratoroperator-= (difference_type i)
stepping_iterator operator+ (difference_type i)
stepping_iterator operator- (difference_type i)
Difference
difference_type operator- (const stepping_iterator &i)
Comparisons
bool operator== (const stepping_iterator &i)
bool operator!= (const stepping_iterator &i)
bool operator< (const stepping_iterator &i)
bool operator> (const stepping_iterator &i)
bool operator<= (const stepping_iterator &i)
bool operator>= (const stepping_iterator &i)

Public Attributes

typedef< RandomAccessIterator
>::difference_type 
difference_type
typedef< RandomAccessIterator
>::pointer 
pointer
typedef< RandomAccessIterator
>::reference 
reference

Related Functions

(Note that these are not member functions.)

stepping_iterator< Iterator > make_stepping_iterator (Iterator it, typename stepping_iterator< Iterator >::difference_type step)
 helper function to create stepping iterators


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen