MemFunIterator< _Iterator, Pointee, Result, Const > Class Template Reference

An iterator that calls a member function in operator*(). More...

#include <MemFunIterator.h>

Inheritance diagram for MemFunIterator< _Iterator, Pointee, Result, Const >:
AdaptedIterator< _Iterator, IteratorCategory, ValueType, DifferenceType, Pointer, Reference >

List of all members.

Public Types

typedef Base::iterator_category iterator_category
 The iterator category.
typedef Base::value_type value_type
 The type "pointed to" by the iterator. This is the function's return type: Result.
typedef Base::difference_type difference_type
 Distance between iterators is represented as this type.
typedef Base::pointer pointer
 This type represents a pointer-to-value_type.
typedef Base::reference reference
 This type represents a reference-to-value_type.
typedef Base::Iterator Iterator
 The base iterator type.
typedef Loki::Select< Const,
mem_fun_const, mem_fun >
::Result 
MemberFunction
 A pointer to a member function.

Public Member Functions

Constructors etc.

 MemFunIterator ()
 Default constructor.
 MemFunIterator (MemberFunction f)
 Construct from a pointer to a member function.
 MemFunIterator (MemberFunction f, const Iterator &i)
 Construct from a pointer to a member function and an iterator.
 MemFunIterator (const MemFunIterator &x)
 Copy constructor.
MemFunIteratoroperator= (const MemFunIterator &other)
 Assignment operator.
MemFunIteratoroperator= (const Iterator &i)
 Assignment from an iterator.
MemFunIteratoroperator= (MemberFunction f)
 Set the pointer to a member function.
Accessors.

const Iteratorbase () const
 Return the base iterator.
 operator Iterator () const
 Convert to the base iterator.
Iterator Functionality.

value_type operator* () const
 Call the member function of the base iterator.
MemFunIteratoroperator++ ()
 Pre-increment.
MemFunIterator operator++ (int)
 Post-increment. Warning: This is not as efficient as the pre-increment.
MemFunIteratoroperator-- ()
 Pre-decrement.
MemFunIterator operator-- (int)
 Post-decrement. Warning: This is not as efficient as the pre-decrement.
value_type operator[] (const difference_type &n) const
 Sub-scripting.
MemFunIteratoroperator+= (const difference_type &n)
 Addition assignment.
MemFunIterator operator+ (const difference_type &n) const
 Addition.
MemFunIteratoroperator-= (const difference_type &n)
 Subtraction assignment.
MemFunIterator operator- (const difference_type &n) const
 Subtraction.

Related Functions

(Note that these are not member functions.)



template<typename Iterator , class Pointee , typename Result , bool Const>
MemFunIterator< Iterator,
Pointee, Result, Const > 
operator+ (typename MemFunIterator< Iterator, Pointee, Result, Const >::difference_type n, const MemFunIterator< Iterator, Pointee, Result, Const > &x)
 Offset from an iterator.

Detailed Description

template<typename _Iterator, class Pointee, typename Result, bool Const = true>
class MemFunIterator< _Iterator, Pointee, Result, Const >

An iterator that calls a member function in operator*().

CONTINUE


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:52 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3