|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Filter of painter arcs with that are set the Spanning_Tree control bit. More...
#include <tpl_graph.H>
Public Member Functions | |
| Painted_Min_Spanning_Tree () noexcept(std::is_nothrow_default_constructible_v< Distance >) | |
Build the filter with a distance accessor built by Distance(). | |
| Painted_Min_Spanning_Tree (Distance __distance) | |
| Build the filter with a distance accessor. | |
| bool | operator() (typename GT::Arc *a) |
Show the arc if it is painted, and then add its weight to dist. | |
Public Attributes | |
| Distance::Distance_Type | dist |
| Accumulative distance from the first seen arc until the last seen. | |
| Distance | distance |
| Distance accessor for the arc weights. | |
Filter of painter arcs with that are set the Spanning_Tree control bit.
Some Aleph-w ( \(\aleph_\omega\)) algorithms set the Spanning_Tree control bit in order to mark their results. This simple filter filters those arc and addition computes the accumulative distance between all the seen arcs.
The filter keeps a copy of its distance accessor, which may have state, or no default constructor.
Definition at line 5046 of file tpl_graph.H.
|
inlinenoexcept |
Build the filter with a distance accessor built by Distance().
Definition at line 5055 of file tpl_graph.H.
|
inlineexplicit |
Build the filter with a distance accessor.
| [in] | __distance | distance accessor for the arc weights |
Definition at line 5065 of file tpl_graph.H.
|
inline |
Show the arc if it is painted, and then add its weight to dist.
| [in] | a | the arc |
a is painted | anything | that the distance throws; dist is then unchanged |
Definition at line 5076 of file tpl_graph.H.
References Aleph::Painted_Min_Spanning_Tree< GT, Distance >::dist, Aleph::Painted_Min_Spanning_Tree< GT, Distance >::distance, IS_ARC_VISITED, and Aleph::Spanning_Tree.
| Distance::Distance_Type Aleph::Painted_Min_Spanning_Tree< GT, Distance >::dist |
Accumulative distance from the first seen arc until the last seen.
Definition at line 5049 of file tpl_graph.H.
Referenced by Aleph::Painted_Min_Spanning_Tree< GT, Distance >::operator()(), and TEST().
| Distance Aleph::Painted_Min_Spanning_Tree< GT, Distance >::distance |
Distance accessor for the arc weights.
Definition at line 5052 of file tpl_graph.H.
Referenced by Aleph::Painted_Min_Spanning_Tree< GT, Distance >::operator()().