#include <graph_path.h>
Public Types | |
typedef std::vector< pair< N, N > > | chain_type |
typedef set< std::vector< N > > | paths_set |
typedef std::map< segment_type, set< segment_type > > | paths_type |
typedef std::vector< std::vector< segment_type > > | result_type |
typedef pair< N, N > | segment_type |
Public Member Functions | |
void | calcPaths (const graph< N, E > &g, const N &root) |
void | findSegments (const N &n, set< segment_type > &result) |
bool | fromTo (const N &from, const N &to, std::vector< std::vector< N > > &result) const |
GraphPath (const graph< N, E > &g, const N &root) | |
bool | paths2 (const segment_type &ft, result_type &result) const |
void | stream (std::ostream &) |
void | update (segment_type &s, result_type &r, int pos) const |
~GraphPath () | |
Public Attributes | |
paths_type | paths_ |
Definition at line 13 of file graph_path.h.
typedef std::vector< pair<N,N> > GraphPath< N, E >::chain_type |
Definition at line 20 of file graph_path.h.
Definition at line 19 of file graph_path.h.
typedef std::map< segment_type, set< segment_type > > GraphPath< N, E >::paths_type |
Definition at line 18 of file graph_path.h.
typedef std::vector<std::vector<segment_type> > GraphPath< N, E >::result_type |
Definition at line 21 of file graph_path.h.
typedef pair<N,N> GraphPath< N, E >::segment_type |
Definition at line 16 of file graph_path.h.
GraphPath< N, E >::GraphPath | ( | const graph< N, E > & | g, |
const N & | root | ||
) |
Definition at line 204 of file graph_path.h.
References GraphPath< N, E >::calcPaths().
Definition at line 23 of file graph_path.h.
References GraphPath< N, E >::calcPaths(), GraphPath< N, E >::findSegments(), GraphPath< N, E >::fromTo(), g, N, gen::n, GraphPath< N, E >::paths2(), alignCSCRings::r, mps_fire::result, alignCSCRings::s, GraphPath< N, E >::stream(), and GraphPath< N, E >::update().
void GraphPath< N, E >::calcPaths | ( | const graph< N, E > & | g, |
const N & | n | ||
) |
creates a lookup-table of starting-points of pathes between nodes n A and B A->B: A->X, A->Y, B->B (B->B denotes a direct connectino between A and B, A->X means that B can be reached from X directly while X can be reached from A) the lookup-table is stored in a std::map< pair<n,n>, set< pair<n,n> > (could be a multistd::map..)
Definition at line 216 of file graph_path.h.
References class-composition::children, GraphPath< N, E >::findSegments(), crabWrapper::key, GraphPath< N, E >::paths_, and groupFilesInBlocks::temp.
Referenced by GraphPath< N, E >::GraphPath(), and GraphPath< N, E >::~GraphPath().
void GraphPath< N, E >::findSegments | ( | const N & | n, |
set< segment_type > & | result | ||
) |
Definition at line 257 of file graph_path.h.
References GraphPath< N, E >::paths_.
Referenced by GraphPath< N, E >::calcPaths(), and GraphPath< N, E >::~GraphPath().
bool GraphPath< N, E >::fromTo | ( | const N & | from, |
const N & | to, | ||
std::vector< std::vector< N > > & | result | ||
) | const |
Definition at line 94 of file graph_path.h.
References plotBeamSpotDB::first, N, GraphPath< N, E >::paths2(), mps_fire::result, edmPickEvents::target, and findQualityFiles::v.
Referenced by GraphPath< N, E >::~GraphPath().
bool GraphPath< N, E >::paths2 | ( | const segment_type & | ft, |
result_type & | result | ||
) | const |
Definition at line 125 of file graph_path.h.
References i, GraphPath< N, E >::paths_, GraphPath< N, E >::update(), and findQualityFiles::v.
Referenced by GraphPath< N, E >::fromTo(), and GraphPath< N, E >::~GraphPath().
Definition at line 267 of file graph_path.h.
References GraphPath< N, E >::paths_.
Referenced by GraphPath< N, E >::~GraphPath().
void GraphPath< N, E >::update | ( | segment_type & | s, |
result_type & | r, | ||
int | pos | ||
) | const |
Definition at line 175 of file graph_path.h.
References MessageLogger_cfi::cerr, cmsRelvalreport::exit, GraphPath< N, E >::paths_, and findQualityFiles::v.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), GraphPath< N, E >::paths2(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and GraphPath< N, E >::~GraphPath().
paths_type GraphPath< N, E >::paths_ |
Definition at line 38 of file graph_path.h.
Referenced by Config.Process::_insertPaths(), GraphPath< N, E >::calcPaths(), Config.Process::dumpConfig(), Config.Process::dumpPython(), GraphPath< N, E >::findSegments(), Config.Process::pathNames(), GraphPath< N, E >::paths2(), GraphPath< N, E >::stream(), and GraphPath< N, E >::update().