A unary predicate that decides when to push into a breadth-first search queue. More...
#include <breadth_first_search.hpp>
Public Types | |
typedef property_traits < ColorMap >::key_type | argument_type |
typedef bool | result_type |
Public Member Functions | |
darken_and_push (const ColorMap &color) | |
bool | operator() (const argument_type &value) const |
Public Attributes | |
ColorMap | color |
A unary predicate that decides when to push into a breadth-first search queue.
This predicate stores a color map that is used to determine when to push. If it is provided with a key for which the color is white, it darkens the color to gray and returns true (so that the value will be pushed appropriately); if the color is not white, it returns false so that the vertex will be ignored.
typedef property_traits<ColorMap>::key_type boost::detail::darken_and_push< ColorMap >::argument_type |
typedef bool boost::detail::darken_and_push< ColorMap >::result_type |
|
inlineexplicit |
|
inline |
References boost::detail::darken_and_push< ColorMap >::color, boost::gray(), boost::put(), and boost::white().
ColorMap boost::detail::darken_and_push< ColorMap >::color |
Referenced by boost::detail::darken_and_push< ColorMap >::operator()().