LoggerBoolMap
Declared in lemon/maps.h, in the group Maps; the same class on the Doxygen site.
-
template< typename IT , typename KEY >
class LoggerBoolMap : public MapBase< KEY , bool > Writable bool map for logging each
trueassigned element.A writable bool map for logging each
trueassigned element, i.e it copies subsequently each keys set totrueto the given iterator. The most important usage of it is storing certain nodes or arcs that were markedtrueby an algorithm.There are several algorithms that provide solutions through bool maps and most of them assign
trueat most once for each key. In these cases it is a natural request to store eachtrueassigned elements (in order of the assignment), which can be easily done with LoggerBoolMap.The simplest way of using this map is through the loggerBoolMap() function.
Note
The container of the iterator must contain enough space for the elements or the iterator should be an inserter iterator.
- Template Parameters:
IT – The type of the iterator.
KEY – The key type of the map. The default value set according to the iterator type should work in most cases.
Public Functions