#include <stlsoft/iterators/transform_iterator.hpp>
I The iterator to transform F The unary function that will be used to transform the values
iterator_type), but it always provides By-Value Temporary (BVT) element references, so its pointer and reference member types are always void. Public Types | |
Member Types | |
| typedef I | iterator_type |
| The iterator to transform. | |
| typedef F | transform_function_type |
| The unary function that will be used to transform the values. | |
| typedef transform_function_type::result_type | value_type |
| The value type. | |
| typedef std::iterator_traits< I > | traits_type |
| typedef traits_type::iterator_category | iterator_category |
| The iterator category. | |
| typedef traits_type::difference_type | difference_type |
| The difference type. | |
| typedef transform_iterator< I, F > | class_type |
| The parameterisation of the type. | |
| typedef void | pointer |
| The mutating (non-const) pointer type. | |
| typedef void | reference |
| The mutating (non-const) reference type. | |
| typedef value_type | effective_reference |
| The effective mutating (non-const) reference type. | |
| typedef const value_type | effective_const_reference |
| The effective mutating (non-const) reference type. | |
Public Member Functions | |
Construction | |
| transform_iterator (iterator_type it, transform_function_type pr) | |
| transform_iterator () | |
| iterator_type | base () const |
| A copy of the base iterator. | |
Accessors | |
| effective_reference | operator* () |
| effective_const_reference | operator* () const |
Forward Iterator methods | |
| class_type & | operator++ () |
| class_type | operator++ (int) |
Bidirectional Iterator methods | |
| class_type & | operator-- () |
| class_type | operator-- (int) |
Random Access Iterator methods | |
| class_type & | operator+= (difference_type d) |
| class_type & | operator-= (difference_type d) |
| effective_reference | operator[] (difference_type index) |
| effective_const_reference | operator[] (difference_type index) const |
Comparison | |
| bool | equal (class_type const &rhs) const |
Evaluates whether this and rhs are equivalent. | |
| ss_sint_t | compare (class_type const &rhs) const |
Compares this with the given string. | |
| difference_type | distance (class_type const &rhs) const |
Calculate the distance between this and rhs. | |
Classes | |
| struct | transform_iterator_is_BVT_so_no_member_selection_operators |
| typedef I iterator_type |
The iterator to transform.
| typedef F transform_function_type |
The unary function that will be used to transform the values.
| typedef transform_function_type::result_type value_type |
The value type.
| typedef traits_type::iterator_category iterator_category |
The iterator category.
| typedef traits_type::difference_type difference_type |
The difference type.
| typedef transform_iterator<I, F> class_type |
The parameterisation of the type.
| typedef void pointer |
The mutating (non-const) pointer type.
pointer member must be void. | typedef void reference |
The mutating (non-const) reference type.
reference member must be void. | typedef value_type effective_reference |
The effective mutating (non-const) reference type.
value_type. | typedef const value_type effective_const_reference |
The effective mutating (non-const) reference type.
const value_type.
| iterator_type base | ( | ) | const [inline] |
A copy of the base iterator.
| bool equal | ( | class_type const & | rhs | ) | const [inline] |
| ss_sint_t compare | ( | class_type const & | rhs | ) | const [inline] |
Compares this with the given string.
| difference_type distance | ( | class_type const & | rhs | ) | const [inline] |
Calculate the distance between this and rhs.
1.5.6