#include <GraphWalker.h>
Public Types | |
using | bfs_type = std::queue< edge_type > |
using | const_edge_iterator = typename math::Graph< N, E >::const_edge_iterator |
using | edge_iterator = typename math::Graph< N, E >::edge_iterator |
using | edge_list = typename math::Graph< N, E >::edge_list |
using | edge_range = std::pair< const_edge_iterator, const_edge_iterator > |
using | edge_type = typename math::Graph< N, E >::edge_type |
using | index_result = typename math::Graph< N, E >::index_result |
using | index_type = typename math::Graph< N, E >::index_type |
using | result_type = bool |
using | stack_type = std::vector< edge_range > |
using | value_type = typename math::Graph< N, E >::value_type |
Public Member Functions | |
value_type | current () const |
value_type | current_bfs () const |
result_type | firstChild () |
GraphWalker (const Graph< N, E > &) | |
creates a walker rooted by the first candidate root found in the underlying Graph More... | |
GraphWalker (const Graph< N, E > &, const N &) | |
creates a walker rooted by the node given More... | |
result_type | next () |
result_type | next_bfs () |
result_type | nextSibling () |
result_type | parent () |
void | reset () |
const stack_type & | stack () const |
Protected Attributes | |
const Graph< N, E > & | graph_ |
bfs_type | queue_ |
edge_list | root_ |
stack_type | stack_ |
Private Member Functions | |
GraphWalker ()=delete | |
a walker for an acyclic directed multigraph
Definition at line 12 of file GraphWalker.h.
using math::GraphWalker< N, E >::bfs_type = std::queue<edge_type> |
Definition at line 25 of file GraphWalker.h.
using math::GraphWalker< N, E >::const_edge_iterator = typename math::Graph<N, E>::const_edge_iterator |
Definition at line 19 of file GraphWalker.h.
using math::GraphWalker< N, E >::edge_iterator = typename math::Graph<N, E>::edge_iterator |
Definition at line 18 of file GraphWalker.h.
using math::GraphWalker< N, E >::edge_list = typename math::Graph<N, E>::edge_list |
Definition at line 17 of file GraphWalker.h.
using math::GraphWalker< N, E >::edge_range = std::pair<const_edge_iterator, const_edge_iterator> |
Definition at line 22 of file GraphWalker.h.
using math::GraphWalker< N, E >::edge_type = typename math::Graph<N, E>::edge_type |
Definition at line 16 of file GraphWalker.h.
using math::GraphWalker< N, E >::index_result = typename math::Graph<N, E>::index_result |
Definition at line 15 of file GraphWalker.h.
using math::GraphWalker< N, E >::index_type = typename math::Graph<N, E>::index_type |
Definition at line 14 of file GraphWalker.h.
using math::GraphWalker< N, E >::result_type = bool |
Definition at line 27 of file GraphWalker.h.
using math::GraphWalker< N, E >::stack_type = std::vector<edge_range> |
Definition at line 24 of file GraphWalker.h.
using math::GraphWalker< N, E >::value_type = typename math::Graph<N, E>::value_type |
Definition at line 28 of file GraphWalker.h.
math::GraphWalker< N, E >::GraphWalker | ( | const Graph< N, E > & | g | ) |
creates a walker rooted by the first candidate root found in the underlying Graph
Definition at line 68 of file GraphWalker.h.
References math::GraphWalker< N, E >::graph_, math::GraphWalker< N, E >::queue_, math::GraphWalker< N, E >::root_, and math::GraphWalker< N, E >::stack_.
math::GraphWalker< N, E >::GraphWalker | ( | const Graph< N, E > & | g, |
const N & | root | ||
) |
creates a walker rooted by the node given
Definition at line 77 of file GraphWalker.h.
References math::GraphWalker< N, E >::graph_, math::GraphWalker< N, E >::queue_, math::GraphWalker< N, E >::root_, findQualityFiles::rr, and math::GraphWalker< N, E >::stack_.
|
privatedelete |
|
inline |
Definition at line 88 of file GraphWalker.h.
References math::GraphWalker< N, E >::graph_, and math::GraphWalker< N, E >::stack_.
Referenced by TGeoFromDddService::createManager(), graph_combine(), graph_tree_output(), and output().
GraphWalker< N, E >::value_type math::GraphWalker< N, E >::current_bfs | ( | ) | const |
Definition at line 94 of file GraphWalker.h.
References MillePedeFileConverter_cfg::e, math::GraphWalker< N, E >::graph_, and math::GraphWalker< N, E >::queue_.
GraphWalker< N, E >::result_type math::GraphWalker< N, E >::firstChild | ( | ) |
Definition at line 110 of file GraphWalker.h.
References math::GraphWalker< N, E >::graph_, mps_fire::result, and math::GraphWalker< N, E >::stack_.
Referenced by graph_tree_output(), and math::GraphWalker< N, E >::next().
GraphWalker< N, E >::result_type math::GraphWalker< N, E >::next | ( | void | ) |
Definition at line 142 of file GraphWalker.h.
References math::GraphWalker< N, E >::firstChild(), math::GraphWalker< N, E >::nextSibling(), math::GraphWalker< N, E >::parent(), mps_fire::result, and math::GraphWalker< N, E >::stack_.
Referenced by graph_combine(), and output().
GraphWalker< N, E >::result_type math::GraphWalker< N, E >::next_bfs | ( | ) |
Definition at line 160 of file GraphWalker.h.
References MillePedeFileConverter_cfg::e, math::GraphWalker< N, E >::graph_, math::GraphWalker< N, E >::queue_, and mps_fire::result.
GraphWalker< N, E >::result_type math::GraphWalker< N, E >::nextSibling | ( | ) |
Definition at line 121 of file GraphWalker.h.
References mps_fire::result, and math::GraphWalker< N, E >::stack_.
Referenced by graph_tree_output(), and math::GraphWalker< N, E >::next().
GraphWalker< N, E >::result_type math::GraphWalker< N, E >::parent | ( | ) |
Definition at line 132 of file GraphWalker.h.
References mps_fire::result, and math::GraphWalker< N, E >::stack_.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), graph_tree_output(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), math::GraphWalker< N, E >::next(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().
void math::GraphWalker< N, E >::reset | ( | void | ) |
Definition at line 100 of file GraphWalker.h.
References math::GraphWalker< N, E >::queue_, math::GraphWalker< N, E >::root_, and math::GraphWalker< N, E >::stack_.
|
inline |
Definition at line 54 of file GraphWalker.h.
Referenced by graph_combine(), and graph_tree_output().
|
protected |
Definition at line 61 of file GraphWalker.h.
Referenced by math::GraphWalker< N, E >::current(), math::GraphWalker< N, E >::current_bfs(), math::GraphWalker< N, E >::firstChild(), math::GraphWalker< N, E >::GraphWalker(), and math::GraphWalker< N, E >::next_bfs().
|
protected |
Definition at line 59 of file GraphWalker.h.
Referenced by math::GraphWalker< N, E >::current_bfs(), math::GraphWalker< N, E >::GraphWalker(), math::GraphWalker< N, E >::next_bfs(), and math::GraphWalker< N, E >::reset().
|
protected |
Definition at line 60 of file GraphWalker.h.
Referenced by math::GraphWalker< N, E >::GraphWalker(), and math::GraphWalker< N, E >::reset().
|
protected |
Definition at line 58 of file GraphWalker.h.
Referenced by math::GraphWalker< N, E >::current(), math::GraphWalker< N, E >::firstChild(), math::GraphWalker< N, E >::GraphWalker(), math::GraphWalker< N, E >::next(), math::GraphWalker< N, E >::nextSibling(), math::GraphWalker< N, E >::parent(), math::GraphWalker< N, E >::reset(), and math::GraphWalker< DDLogicalPart, DDPosData * >::stack().