Sierra Toolkit  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stk::util::nested_iterator< OuterRange, InnerRange, OuterToInnerConverter > Class Template Reference

#include <nested_iterator.hpp>

Inherits iterator_facade< nested_iterator< OuterRange, InnerRange, OuterToInnerConverter >, boost::range_value< InnerRange >::type, boost::forward_traversal_tag >.

Public Types

typedef boost::range_iterator
< OuterRange >::type 
outer_iterator
 
typedef boost::range_iterator
< InnerRange >::type 
inner_iterator
 
typedef OuterRange outer_range_type
 
typedef InnerRange inner_range_type
 
typedef OuterToInnerConverter converter_type
 

Public Member Functions

 m_outer_end (boost::end(outer_range))
 
 m_inner_current ()
 
 m_inner_end ()
 
 m_converter (converter)
 

Public Attributes

 __pad0__: m_outer_current(boost::begin(outer_range))
 

Friends

class nested_iterator< typename boost::add_const< outer_range_type >::type, inner_range_type, converter_type >
 
class boost::iterator_core_access
 

Detailed Description

template<typename OuterRange, typename InnerRange, typename OuterToInnerConverter>
class stk::util::nested_iterator< OuterRange, InnerRange, OuterToInnerConverter >

nested_iterator is a forward iterator that flattens iteration over ranges of ranges

Both OuterIterator and InnerIterator must support forward_traversal.

iterator_value<OuterIterator>::type is convertible to OuterValueToInnerRange::value_type

Definition at line 28 of file nested_iterator.hpp.


The documentation for this class was generated from the following file: