Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::icl::add_iterator< ContainerT > Class Template Reference

Performes an addition using a container's memberfunction add, when operator= is called. More...

#include <iterator.hpp>

Inheritance diagram for boost::icl::add_iterator< ContainerT >:
Collaboration diagram for boost::icl::add_iterator< ContainerT >:

Public Types

typedef ContainerT container_type
 The container's type. More...
 
typedef std::output_iterator_tag iterator_category
 

Public Member Functions

 add_iterator (ContainerT &cont, typename ContainerT::iterator iter)
 An add_iterator is constructed with a container and a position that has to be maintained. More...
 
add_iteratoroperator= (typename ContainerT::const_reference value)
 This assignment operator adds the value before the current position. More...
 
add_iteratoroperator* ()
 
add_iteratoroperator++ ()
 
add_iteratoroperator++ (int)
 

Detailed Description

template<class ContainerT>
class boost::icl::add_iterator< ContainerT >

Performes an addition using a container's memberfunction add, when operator= is called.

Member Typedef Documentation

template<class ContainerT>
typedef ContainerT boost::icl::add_iterator< ContainerT >::container_type

The container's type.

template<class ContainerT>
typedef std::output_iterator_tag boost::icl::add_iterator< ContainerT >::iterator_category

Constructor & Destructor Documentation

template<class ContainerT>
boost::icl::add_iterator< ContainerT >::add_iterator ( ContainerT &  cont,
typename ContainerT::iterator  iter 
)
inline

An add_iterator is constructed with a container and a position that has to be maintained.

Member Function Documentation

template<class ContainerT>
add_iterator& boost::icl::add_iterator< ContainerT >::operator* ( )
inline
template<class ContainerT>
add_iterator& boost::icl::add_iterator< ContainerT >::operator++ ( )
inline
template<class ContainerT>
add_iterator& boost::icl::add_iterator< ContainerT >::operator++ ( int  )
inline
template<class ContainerT>
add_iterator& boost::icl::add_iterator< ContainerT >::operator= ( typename ContainerT::const_reference  value)
inline

This assignment operator adds the value before the current position.

It maintains it's position by incrementing after addition.

References boost::icl::add().


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