CGAL 6.1 - STL Extensions for CGAL
Loading...
Searching...
No Matches
CGAL::Join_input_iterator_1< Iterator, Creator > Class Template Reference

#include <CGAL/iterator.h>

Definition

template<typename Iterator, typename Creator>
class CGAL::Join_input_iterator_1< Iterator, Creator >

The class Join_input_iterator_1 joins an iterator and a creator function object.

The result is again an iterator (of the same iterator category type as the original iterator) that reads an object from the stream and applies a creator function object to that object.

Is model of
InputIterator
See also
CGAL::Creator_1<Arg, Result>

Types

typedef Creator::result_type value_type
 

Creation

 Join_input_iterator_1 (Iterator i, const Creator &creator)
 creates a join iterator from the given iterator i and the functor creator.
 
 Join_input_iterator_1 (Iterator i)
 creates a join iterator from the given iterator i and a default constructed instance of Creator.
 

Constructor & Destructor Documentation

◆ Join_input_iterator_1() [1/2]

template<typename Iterator , typename Creator >
CGAL::Join_input_iterator_1< Iterator, Creator >::Join_input_iterator_1 ( Iterator  i,
const Creator &  creator 
)

creates a join iterator from the given iterator i and the functor creator.

Applies creator to each item read from i.

◆ Join_input_iterator_1() [2/2]

template<typename Iterator , typename Creator >
CGAL::Join_input_iterator_1< Iterator, Creator >::Join_input_iterator_1 ( Iterator  i)

creates a join iterator from the given iterator i and a default constructed instance of Creator.

The latter instance is applied to each item read from i.