An iterator that calls a member function in operator*()
.
More...
#include <MemFunIterator.h>
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. | |
MemFunIterator & | operator= (const MemFunIterator &other) |
Assignment operator. | |
MemFunIterator & | operator= (const Iterator &i) |
Assignment from an iterator. | |
MemFunIterator & | operator= (MemberFunction f) |
Set the pointer to a member function. | |
Accessors. | |
const Iterator & | base () 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. | |
MemFunIterator & | operator++ () |
Pre-increment. | |
MemFunIterator | operator++ (int) |
Post-increment. Warning: This is not as efficient as the pre-increment. | |
MemFunIterator & | operator-- () |
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. | |
MemFunIterator & | operator+= (const difference_type &n) |
Addition assignment. | |
MemFunIterator | operator+ (const difference_type &n) const |
Addition. | |
MemFunIterator & | operator-= (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. |
An iterator that calls a member function in operator*()
.
CONTINUE