Base class for wrapped iterators, specialized for forward iterators. More...
#include <iterator.hpp>
Public Types | |
typedef std::iterator_traits < Iterator >::difference_type | difference_type |
typedef Value | value_type |
typedef value_type * | pointer |
typedef value_type & | reference |
typedef std::iterator_traits < Iterator > ::iterator_category | iterator_category |
typedef wrapped_iterator_by_category < std::forward_iterator_tag, Value, Iterator, Function > | self_type |
Public Member Functions | |
wrapped_iterator_by_category () | |
wrapped_iterator_by_category (const Iterator &it) | |
wrapped_iterator_by_category (const Iterator &it, const Function &f) | |
self_type & | operator++ () |
self_type | operator++ (int) |
reference | operator* () |
pointer | operator-> () |
bool | operator== (const self_type &that) const |
bool | operator!= (const self_type &that) const |
bool | operator== (const Iterator &it) const |
bool | operator!= (const Iterator &it) const |
Private Attributes | |
Iterator | m_it |
The effective iterator. | |
Function | m_fun |
The function applied to the pointed items. |
Base class for wrapped iterators, specialized for forward iterators.
Definition at line 56 of file iterator.hpp.
typedef std::iterator_traits<Iterator>::difference_type claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::difference_type |
Definition at line 61 of file iterator.hpp.
typedef std::iterator_traits<Iterator>::iterator_category claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::iterator_category |
Definition at line 66 of file iterator.hpp.
typedef value_type* claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::pointer |
Definition at line 63 of file iterator.hpp.
typedef value_type& claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::reference |
Definition at line 64 of file iterator.hpp.
typedef wrapped_iterator_by_category<std::forward_iterator_tag, Value, Iterator, Function> claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::self_type |
Definition at line 71 of file iterator.hpp.
typedef Value claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::value_type |
Definition at line 62 of file iterator.hpp.
claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::wrapped_iterator_by_category | ( | ) | [inline] |
Definition at line 74 of file iterator.hpp.
claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::wrapped_iterator_by_category | ( | const Iterator & | it | ) | [inline] |
Definition at line 75 of file iterator.hpp.
00076 : m_it(it) 00077 { }
claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::wrapped_iterator_by_category | ( | const Iterator & | it, | |
const Function & | f | |||
) | [inline] |
Definition at line 78 of file iterator.hpp.
bool claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator!= | ( | const Iterator & | it | ) | const [inline] |
Definition at line 101 of file iterator.hpp.
00101 { return m_it != it; }
bool claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator!= | ( | const self_type & | that | ) | const [inline] |
reference claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator* | ( | ) | [inline] |
Definition at line 95 of file iterator.hpp.
self_type claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator++ | ( | int | ) | [inline] |
Definition at line 88 of file iterator.hpp.
self_type& claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator++ | ( | ) | [inline] |
Definition at line 82 of file iterator.hpp.
00083 { 00084 ++m_it; 00085 return *this; 00086 }
pointer claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator-> | ( | ) | [inline] |
Definition at line 96 of file iterator.hpp.
bool claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator== | ( | const Iterator & | it | ) | const [inline] |
Definition at line 100 of file iterator.hpp.
00100 { return m_it == it; }
bool claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::operator== | ( | const self_type & | that | ) | const [inline] |
Function claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::m_fun [private] |
The function applied to the pointed items.
Definition at line 108 of file iterator.hpp.
Iterator claw::wrapped_iterator_by_category< std::forward_iterator_tag, Value, Iterator, Function >::m_it [private] |
The effective iterator.
Definition at line 105 of file iterator.hpp.
Referenced by operator!=(), and operator==().