BackInserterBoolMap 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::BackInserterBoolMap< Container, Functor >

Writable bool map for store each true assigned elements in a back insertable container. It will push back all the keys set to true into the container. It can be used to retrieve the items into a standard container. The next example shows how can you store the undirected edges in a vector with prim algorithm.

      vector<UEdge> span_tree_uedges;
      BackInserterBoolMap<vector<UEdge> > inserter_map(span_tree_uedges);
      prim(ugraph, cost, inserter_map);


Public Member Functions

 BackInserterBoolMap (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