|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Const_Graph_View and the read-only graph iterators hand out pointers to const: neither the information nor the bookkeeping of a node or of an arc can be written through them, on any graph class. More...
#include <gtest/gtest.h>#include <Bellman_Ford.H>#include <Dijkstra.H>#include <Negative_Cycles.H>#include <ah-graph-concepts.H>#include <filter_iterator.H>#include <tpl_agraph.H>#include <tpl_const_graph_view.H>#include <tpl_graph.H>#include <tpl_sgraph.H>#include <stdexcept>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TYPED_TEST (ConstGraphView, the_iterators_hand_out_pointers_to_const) | |
| TYPED_TEST (ConstGraphView, the_operations_receive_pointers_to_const) | |
| TYPED_TEST (ConstGraphView, the_view_and_its_iterators_satisfy_the_graph_concepts) | |
| TYPED_TEST (ConstGraphView, reads_what_the_graph_reads) | |
| TYPED_TEST (ConstGraphView, the_functional_members_read_the_graph) | |
| TYPED_TEST (ConstGraphView, a_view_is_not_a_snapshot_and_copies_share_the_graph) | |
| TYPED_TEST (ConstGraphView, an_empty_graph_is_read_as_empty) | |
| TYPED_TEST (ConstGraphView, the_entry_points_of_the_graph_agree_with_the_view) | |
| TYPED_TEST (ConstGraphView, the_filtered_iterators_and_the_generic_functions_read_a_view) | |
| TEST (ConstGraphViewAlgorithms, the_algorithms_that_keep_bookkeeping_run_on_the_graph_and_preserve_it) | |
| TEST (ConstGraphViewAlgorithms, dijkstra_runs_on_the_graph_and_preserves_the_information) | |
| TEST (ConstGraphViewAlgorithms, the_algorithms_without_bookkeeping_run_on_a_view) | |
Const_Graph_View and the read-only graph iterators hand out pointers to const: neither the information nor the bookkeeping of a node or of an arc can be written through them, on any graph class.
Definition in file const_graph_view_test.cc.
| TEST | ( | ConstGraphViewAlgorithms | , |
| dijkstra_runs_on_the_graph_and_preserves_the_information | |||
| ) |
Definition at line 801 of file const_graph_view_test.cc.
References Aleph::find_min_path(), and Aleph::Path< GT >::size().
| TEST | ( | ConstGraphViewAlgorithms | , |
| the_algorithms_that_keep_bookkeeping_run_on_the_graph_and_preserve_it | |||
| ) |
Definition at line 776 of file const_graph_view_test.cc.
References Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::has_negative_cycle().
| TEST | ( | ConstGraphViewAlgorithms | , |
| the_algorithms_without_bookkeeping_run_on_a_view | |||
| ) |
Definition at line 826 of file const_graph_view_test.cc.
References Aleph::const_view(), Aleph::find_disjoint_negative_cycles(), and Aleph::most_negative_cycle_bounded().
| TYPED_TEST | ( | ConstGraphView | , |
| a_view_is_not_a_snapshot_and_copies_share_the_graph | |||
| ) |
Definition at line 566 of file const_graph_view_test.cc.
References Aleph::const_view(), and Aleph::copy().
| TYPED_TEST | ( | ConstGraphView | , |
| an_empty_graph_is_read_as_empty | |||
| ) |
Definition at line 592 of file const_graph_view_test.cc.
References Aleph::const_view().
| TYPED_TEST | ( | ConstGraphView | , |
| reads_what_the_graph_reads | |||
| ) |
Definition at line 378 of file const_graph_view_test.cc.
References Aleph::const_view(), GraphCommon< GT, Node, Arc >::degree(), GraphCommon< GT, Node, Arc >::get_connected_node(), GTNodeIterator< GT >::get_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::Node_Arc_Iterator::get_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::Arc_Iterator::get_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_node(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::Arc_Iterator::get_src_node(), GraphCommon< GT, Node, Arc >::get_src_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::Node_Arc_Iterator::get_tgt_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::Arc_Iterator::get_tgt_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Dlink::Iterator::has_curr(), GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::Dlink::Iterator::next_ne(), and GraphCommon< GT, Node, Arc >::search_arc().
| TYPED_TEST | ( | ConstGraphView | , |
| the_entry_points_of_the_graph_agree_with_the_view | |||
| ) |
Definition at line 618 of file const_graph_view_test.cc.
References Aleph::const_view(), GraphCommon< GT, Node, Arc >::get_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_node(), GraphCommon< GT, Node, Arc >::get_node(), GraphCommon< GT, Node, Arc >::get_src_node(), and GraphCommon< GT, Node, Arc >::get_tgt_node().
| TYPED_TEST | ( | ConstGraphView | , |
| the_filtered_iterators_and_the_generic_functions_read_a_view | |||
| ) |
Definition at line 651 of file const_graph_view_test.cc.
References Aleph::for_each_arc(), Aleph::for_each_node(), Aleph::forall_arc(), and Aleph::forall_node().
| TYPED_TEST | ( | ConstGraphView | , |
| the_functional_members_read_the_graph | |||
| ) |
Definition at line 478 of file const_graph_view_test.cc.
References Aleph::const_view(), and Aleph::for_each().
| TYPED_TEST | ( | ConstGraphView | , |
| the_iterators_hand_out_pointers_to_const | |||
| ) |
Definition at line 212 of file const_graph_view_test.cc.
| TYPED_TEST | ( | ConstGraphView | , |
| the_operations_receive_pointers_to_const | |||
| ) |
Definition at line 299 of file const_graph_view_test.cc.
| TYPED_TEST | ( | ConstGraphView | , |
| the_view_and_its_iterators_satisfy_the_graph_concepts | |||
| ) |
Definition at line 349 of file const_graph_view_test.cc.