#include <DfpGraph.h>
Classes | |
| struct | EdgeProperty |
| struct | VertexProperty |
Public Types | |
| typedef boost::adjacency_list< boost::vecS, boost::setS, boost::directedS, VertexProperty, EdgeProperty > | Graph |
| typedef boost::graph_traits< Graph >::vertex_descriptor | Vertex |
| typedef boost::graph_traits< Graph >::edge_descriptor | Edge |
| typedef std::map< VertexProperty, Vertex > | VertexPropertyMap |
| typedef std::tuple< VertexProperty, VertexProperty, EdgeProperty > | Connection |
Public Member Functions | |
| Vertex | get_add_vertex (const VertexProperty &tn) |
| void | configure (const Configuration &cfg) |
| Edge | connect (const std::string &tail_type, const std::string &tail_name, int tail_port, const std::string &head_type, const std::string &head_name, int head_port) |
| Explicitly connect one edge. More... | |
| std::vector< Connection > | connections () |
Public Attributes | |
| Graph | graph |
| VertexPropertyMap | vertex_property_map |
Definition at line 13 of file DfpGraph.h.
| typedef std::tuple<VertexProperty, VertexProperty, EdgeProperty> WireCell::DfpGraph::Connection |
Definition at line 50 of file DfpGraph.h.
| typedef boost::graph_traits<Graph>::edge_descriptor WireCell::DfpGraph::Edge |
Definition at line 46 of file DfpGraph.h.
| typedef boost::adjacency_list<boost::vecS, boost::setS, boost::directedS, VertexProperty, EdgeProperty> WireCell::DfpGraph::Graph |
Definition at line 43 of file DfpGraph.h.
| typedef boost::graph_traits<Graph>::vertex_descriptor WireCell::DfpGraph::Vertex |
Definition at line 45 of file DfpGraph.h.
| typedef std::map<VertexProperty, Vertex> WireCell::DfpGraph::VertexPropertyMap |
Definition at line 48 of file DfpGraph.h.
| void DfpGraph::configure | ( | const Configuration & | cfg | ) |
Configure with list of connection dictionaries like:
{ "tail": {"type":"TailType","name":"tailname", "port":0}, "head": {"type":"HeadType","name":"headname", "port":42} },
Only "type" key is required.
Definition at line 55 of file DfpGraph.cxx.
| DfpGraph::Edge DfpGraph::connect | ( | const std::string & | tail_type, |
| const std::string & | tail_name, | ||
| int | tail_port, | ||
| const std::string & | head_type, | ||
| const std::string & | head_name, | ||
| int | head_port | ||
| ) |
Explicitly connect one edge.
Definition at line 16 of file DfpGraph.cxx.
| std::vector< DfpGraph::Connection > DfpGraph::connections | ( | ) |
Definition at line 32 of file DfpGraph.cxx.
| DfpGraph::Vertex DfpGraph::get_add_vertex | ( | const VertexProperty & | tn | ) |
Definition at line 5 of file DfpGraph.cxx.
| Graph WireCell::DfpGraph::graph |
Definition at line 53 of file DfpGraph.h.
| VertexPropertyMap WireCell::DfpGraph::vertex_property_map |
Definition at line 54 of file DfpGraph.h.
1.8.11