InserterBoolMap Class Template Reference
[Map Adaptors]

#include <lemon/maps.h>

List of all members.


Detailed Description

template<typename Container, typename Functor = _maps_bits::Identity<typename Container::value_type>>
class lemon::InserterBoolMap< Container, Functor >

Writable bool map for store each true assigned elements in an insertable container. It will insert all the keys set to true into the container. If you want to store the cut edges of the strongly connected components in a set you can use the next code:

      set<Edge> cut_edges;
      InserterBoolMap<set<Edge> > inserter_map(cut_edges);
      stronglyConnectedCutEdges(graph, cost, inserter_map);


Public Member Functions

 InserterBoolMap (Container &_container, typename Container::iterator _it, const Functor &_functor=Functor())
 Constructor.
 InserterBoolMap (Container &_container, const Functor &_functor=Functor())
 Constructor.
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