Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_contract_matrix Namespace Reference

Functions

template<class GT , class F >
void for_each_filter (F &&f)
 Calls f(sa, name) with a filter of each kind of the catalog of graph_filter_catalog.H, and with Dft_Show_Arc.
 
template<class GT , class F >
void for_each_constness (GT &g, F &&f)
 Calls f(g) with g as it is and as a const graph.
 

Variables

constexpr int Hidden = 2
 The number of the arc that the filters hide.
 
const unsigned long Hidden_Mask = 1UL << Hidden
 The mask of the filters: only the arc Hidden.
 
template<class GT , class SA >
constexpr bool hides = not std::is_same_v<SA, Aleph::Dft_Show_Arc<GT>>
 Whether a filter of type SA hides the arc Hidden: all but Dft_Show_Arc.
 

Function Documentation

◆ for_each_constness()

◆ for_each_filter()

template<class GT , class F >
void graph_contract_matrix::for_each_filter ( F &&  f)

Calls f(sa, name) with a filter of each kind of the catalog of graph_filter_catalog.H, and with Dft_Show_Arc.

All but Dft_Show_Arc hide the arc Hidden. f takes the filter by value, so that it can pass it on as an lvalue and as an rvalue. The filters whose call is not noexcept go through with_each_throw(), which calls f again throwing at each of their calls.

Definition at line 76 of file graph_contract_matrix.H.

References Hidden_Mask, and graph_harness::with_each_throw().

Variable Documentation

◆ Hidden

constexpr int graph_contract_matrix::Hidden = 2
constexpr

The number of the arc that the filters hide.

Definition at line 60 of file graph_contract_matrix.H.

Referenced by TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), and TYPED_TEST().

◆ Hidden_Mask

const unsigned long graph_contract_matrix::Hidden_Mask = 1UL << Hidden

The mask of the filters: only the arc Hidden.

Definition at line 63 of file graph_contract_matrix.H.

Referenced by for_each_filter().

◆ hides

template<class GT , class SA >
constexpr bool graph_contract_matrix::hides = not std::is_same_v<SA, Aleph::Dft_Show_Arc<GT>>
constexpr

Whether a filter of type SA hides the arc Hidden: all but Dft_Show_Arc.

Definition at line 67 of file graph_contract_matrix.H.