StoreBoolMap Class Template Reference
[Map Adaptors]

#include <lemon/maps.h>

List of all members.


Detailed Description

template<typename _Iterator, typename _Functor = _maps_bits::Identity<typename std::iterator_traits<_Iterator>::value_type>>
class lemon::StoreBoolMap< _Iterator, _Functor >

Writable bool map to store each true assigned elements. It will copies all the keys set to true to the given iterator.

Note:
The container of the iterator should contain space for each element.
The next example shows how can you write the nodes directly to the standard output.
      typedef IdMap<UGraph, UEdge> UEdgeIdMap;
      UEdgeIdMap uedgeId(ugraph);
     
      typedef MapFunctor<UEdgeIdMap> UEdgeIdFunctor;
      UEdgeIdFunctor uedgeIdFunctor(uedgeId);
     
      StoreBoolMap<ostream_iterator<int>, UEdgeIdFunctor> 
        writerMap(ostream_iterator<int>(cout, " "), uedgeIdFunctor);
     
      prim(ugraph, cost, writerMap);


Public Member Functions

 StoreBoolMap (Iterator it, const Functor &functor=Functor())
 Constructor.
Iterator begin () const
 Gives back the given iterator set for the first time.
Iterator end () const
 Gives back the iterator after the last set operation.
void set (const Key &key, Value value)
 Setter function of the map.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:10 2006 for LEMON by  doxygen 1.5.1