|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Common methods for the arc of a graph. More...
#include <graph-dry.H>
Public Types | |
| using | Item_Type = ArcInfo |
| using | Arc_Type = ArcInfo |
Public Member Functions | |
| GTArcCommon () noexcept=default | |
| data contained in arc | |
| GTArcCommon (const ArcInfo &info) | |
| Construct from info value (copy) | |
| GTArcCommon (ArcInfo &&info) | |
| Construct from info value (move) | |
| GTArcCommon (void *src, void *tgt, const ArcInfo &data) | |
| Construct with endpoints and info (copy) | |
| GTArcCommon (void *src, void *tgt, ArcInfo &&data=ArcInfo()) | |
| Construct with endpoints and info (move) | |
| GTArcCommon (const GTArcCommon &other) | |
| Copy constructor. | |
| GTArcCommon (GTArcCommon &&other) noexcept | |
| Move constructor. | |
| GTArcCommon & | operator= (const GTArcCommon &other) |
| Copy assignment operator. | |
| GTArcCommon & | operator= (GTArcCommon &&other) noexcept |
| Move assignment operator. | |
| unsigned int | state () const noexcept |
| Return the state of arc. | |
| void | set_state (unsigned int s) noexcept |
Set the state of arc to value s | |
| ArcInfo & | get_info () noexcept |
| Return a modifiable reference to the arc data. | |
| const ArcInfo & | get_info () const noexcept |
| Return a constant reference to the arc data. | |
| void * | get_connected_node (void *node) noexcept |
| void * | get_img_node (void *node) noexcept |
Public Attributes | |
| void * | src_node = nullptr |
| void * | tgt_node = nullptr |
| Please don't use. | |
| Graph_Attr | attrs |
| Please don't use. | |
| ArcInfo | arc_info |
Common methods for the arc of a graph.
This class defines common attributes and methods for arcs graphs. All graph arcs inherit the data and function members of this class. Although this class exports data members, it is not recommended to directly access them. Instead use the macros ARC_BITS, ARC_COUNTER and ARC_COOKIE, which define access to the three attributes.
Definition at line 786 of file graph-dry.H.
| using GTArcCommon< ArcInfo >::Arc_Type = ArcInfo |
Definition at line 790 of file graph-dry.H.
| using GTArcCommon< ArcInfo >::Item_Type = ArcInfo |
Definition at line 789 of file graph-dry.H.
|
defaultnoexcept |
data contained in arc
Default constructor
|
inline |
Construct from info value (copy)
Definition at line 807 of file graph-dry.H.
|
inline |
Construct from info value (move)
Definition at line 810 of file graph-dry.H.
|
inline |
Construct with endpoints and info (copy)
Definition at line 813 of file graph-dry.H.
|
inline |
Construct with endpoints and info (move)
Definition at line 817 of file graph-dry.H.
|
inline |
Copy constructor.
Definition at line 821 of file graph-dry.H.
|
inlinenoexcept |
Move constructor.
Definition at line 825 of file graph-dry.H.
|
inlinenoexcept |
Definition at line 859 of file graph-dry.H.
References GTArcCommon< ArcInfo >::src_node, and GTArcCommon< ArcInfo >::tgt_node.
Referenced by Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::get_tgt_node(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::get_tgt_node_ne(), Aleph::in_pairs(), Aleph::in_pairs(), and Aleph::out_pairs().
|
inlinenoexcept |
Definition at line 864 of file graph-dry.H.
References GTArcCommon< ArcInfo >::src_node, and GTArcCommon< ArcInfo >::tgt_node.
|
inlinenoexcept |
Return a constant reference to the arc data.
Definition at line 857 of file graph-dry.H.
References GTArcCommon< ArcInfo >::arc_info.
|
inlinenoexcept |
Return a modifiable reference to the arc data.
Definition at line 854 of file graph-dry.H.
References GTArcCommon< ArcInfo >::arc_info.
Referenced by Aleph::__find_depth_first_spanning_tree(), Aleph::mat_path_detail::append_node(), Aleph::build_subgraph(), check(), copia_Arco_Arco(), Aleph::Matrix_Graph< GT, SA >::copy(), Aleph::Copy_Graph< GT, SN, SA >::copy(), Aleph::Build_Subgraph< GT, SA >::copy_arc(), Aleph::blossom_weighted_detail::mwmatching::impl::Problem_Data< WeightType >::for_adjacent_edges(), Aleph::invert_digraph(), main(), Aleph::Prim_Min_Spanning_Tree< GT, Distance, SA >::min_spanning_tree(), Aleph::Initialize_Dist< AM, Compare >::operator()(), Scaled_Distance::operator()(), Scaled_Distance::operator()(), Aleph::Dft_Arc_Attr< GT >::operator()(), Aleph::Invert_Digraph< GT, SA >::operator()(), ArcInitializer::operator()(), GridDistance::operator()(), DoubleDistance::operator()(), Aleph::Init_Arc< GT >::operator()(), Scaled_Distance::operator()(), Table_Distance::operator()(), Factor_Only_Distance::operator()(), Scaled_Distance::operator()(), Factor_Only_Distance::operator()(), Failing_Distance::operator()(), DoubleDistance::operator()(), Aleph::Dft_Load_Arc< GT >::operator()(), Aleph::Rarc< GT >::operator()(), Aleph::Dft_Load_Arc< GT >::operator()(), Aleph::Dft_Store_Arc< GT >::operator()(), Aleph::Warc< GT >::operator()(), Aleph::Dft_Store_Arc< GT >::operator()(), graph_filters::Throwing_Copy< GT >::operator()(), graph_filters::Deque_Member< GT >::operator()(), graph_filters::Throw_At< GT >::operator()(), graph_filters::Weight_Of< GT, T >::operator()(), WeightFilter< GT >::operator()(), Weight_Filter< GT >::operator()(), Aleph::Dft_Dist< GT >::operator()(), Aleph::Dft_Dist< GT >::operator()(), EvenArcFilter< GT >::operator()(), Even_Arc_Filter< GT >::operator()(), print_graph(), Aleph::Find_Depth_First_Spanning_Tree< GT, SA >::put_in_tree(), DoubleDistance::set_zero(), Aleph::Dft_Dist< GT >::set_zero(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), and Weighted_Graph::weight().
|
inline |
Copy assignment operator.
Definition at line 829 of file graph-dry.H.
References GTArcCommon< ArcInfo >::arc_info.
|
inlinenoexcept |
Move assignment operator.
Definition at line 837 of file graph-dry.H.
References GTArcCommon< ArcInfo >::arc_info.
|
inlinenoexcept |
Set the state of arc to value s
Definition at line 848 of file graph-dry.H.
References ARC_BITS.
Referenced by Graph_Traverse< GT, Itor, Q, Show_Arc >::exec(), Graph_Traverse< GT, Itor, Q, Show_Arc >::operator()(), Graph_Traverse< GT, Itor, Q, Show_Arc >::operator()(), and Aleph::Graph_Traverse_Generator< GT, Itor, Q, Show_Arc >::traverse().
|
inlinenoexcept |
Return the state of arc.
Definition at line 845 of file graph-dry.H.
References ARC_BITS.
Referenced by Graph_Traverse< GT, Itor, Q, Show_Arc >::exec(), Graph_Traverse< GT, Itor, Q, Show_Arc >::operator()(), Graph_Traverse< GT, Itor, Q, Show_Arc >::operator()(), and Aleph::Graph_Traverse_Generator< GT, Itor, Q, Show_Arc >::traverse().
| ArcInfo GTArcCommon< ArcInfo >::arc_info |
Definition at line 801 of file graph-dry.H.
Referenced by GTArcCommon< ArcInfo >::get_info(), GTArcCommon< ArcInfo >::get_info(), Aleph::Graph_Aarc< Arc_Info >::operator=(), Aleph::Graph_Arc< _Arc_Info >::operator=(), Aleph::Graph_Sarc< Arc_Info >::operator=(), GTArcCommon< ArcInfo >::operator=(), and GTArcCommon< ArcInfo >::operator=().
| Graph_Attr GTArcCommon< ArcInfo >::attrs |
Please don't use.
Arc control attributes.
Definition at line 799 of file graph-dry.H.
| void* GTArcCommon< ArcInfo >::src_node = nullptr |
Definition at line 792 of file graph-dry.H.
Referenced by Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::disconnect_arc(), GTArcCommon< ArcInfo >::get_connected_node(), GTArcCommon< ArcInfo >::get_img_node(), ArcHeap< GT, Distance, Access_Heap_Node >::handle_of(), Aleph::in_nodes(), Aleph::Dft_Arc_Cmp< GT >::operator()(), Aleph::IndexArc< GT, Tree, SA >::search(), Aleph::Arcs_Index< GT, Compare, Tree, SA >::search(), Aleph::IndexArc< GT, Tree, SA >::search(), Aleph::IndexArc< GT, Tree, SA >::search_directed(), TEST(), and Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::try_insert_arc().
| void* GTArcCommon< ArcInfo >::tgt_node = nullptr |
Please don't use.
Definition at line 793 of file graph-dry.H.
Referenced by Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::disconnect_arc(), GTArcCommon< ArcInfo >::get_connected_node(), GTArcCommon< ArcInfo >::get_img_node(), ArcHeap< GT, Distance, Access_Heap_Node >::handle_of(), Aleph::Dft_Arc_Cmp< GT >::operator()(), Aleph::IndexArc< GT, Tree, SA >::search(), Aleph::Arcs_Index< GT, Compare, Tree, SA >::search(), Aleph::IndexArc< GT, Tree, SA >::search(), Aleph::IndexArc< GT, Tree, SA >::search_directed(), TEST(), and Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::try_insert_arc().