Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA > Struct Template Reference

Filter for arcs painted by Kruskal's algorithm. More...

#include <Kruskal.H>

Public Member Functions

 Paint_Filt (GT_SA &__sa)
 
bool operator() (typename G::Arc *a) const noexcept(NothrowPredicateWith< GT_SA &, typename G::Arc *& >)
 Whether the filter of the caller shows a and a is painted as an arc of the spanning tree.
 

Public Attributes

GT_SA & sa
 

Detailed Description

template<AlephGraph GT, class Distance = Dft_Dist<GT>, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class G, class GT_SA>
struct Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA >

Filter for arcs painted by Kruskal's algorithm.

Definition at line 138 of file Kruskal.H.

Constructor & Destructor Documentation

◆ Paint_Filt()

template<AlephGraph GT, class Distance = Dft_Dist<GT>, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class G , class GT_SA >
Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA >::Paint_Filt ( GT_SA &  __sa)
inline

Definition at line 142 of file Kruskal.H.

Member Function Documentation

◆ operator()()

template<AlephGraph GT, class Distance = Dft_Dist<GT>, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class G , class GT_SA >
bool Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA >::operator() ( typename G::Arc *  a) const
inlinenoexcept

Whether the filter of the caller shows a and a is painted as an arc of the spanning tree.

Parameters
[in]athe arc.
Returns
true if sa shows a and a has the bit Spanning_Tree.
Exceptions
anythingthat sa, called with a, or the conversion of what it returns to bool throws; noexcept when they throw nothing.

Definition at line 153 of file Kruskal.H.

References IS_ARC_VISITED, Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA >::sa, and Aleph::Spanning_Tree.

Member Data Documentation

◆ sa

template<AlephGraph GT, class Distance = Dft_Dist<GT>, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class G , class GT_SA >
GT_SA& Aleph::Kruskal_Min_Spanning_Tree< GT, Distance, SA >::Paint_Filt< G, GT_SA >::sa

The documentation for this struct was generated from the following file: