OpenSDN source code
policy_edge.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
7 
9 
11  : edge_id_(edge_id) {
12 }
13 
15  Vertex s = boost::source(edge_id_, *graph->graph());
16  return graph->vertex_data(s);
17 }
18 
20  Vertex s = boost::source(edge_id_, *graph->graph());
21  return graph->vertex_data(s);
22 }
23 
25  Vertex t = boost::target(edge_id_, *graph->graph());
26  return graph->vertex_data(t);
27 }
28 
30  Vertex t = boost::target(edge_id_, *graph->graph());
31  return graph->vertex_data(t);
32 }
PolicyGraphVertex * source(PolicyGraph *graph)
Definition: policy_edge.cc:14
PolicyGraphBase::vertex_descriptor Vertex
Definition: policy_edge.h:19
PolicyGraphBase::edge_descriptor Edge
Definition: policy_edge.h:18
PolicyGraphEdge(Edge edge_id)
Definition: policy_edge.cc:10
PolicyGraphVertex * target(PolicyGraph *graph)
Definition: policy_edge.cc:24
const graph_t * graph() const
Definition: policy_graph.h:42
PolicyGraphVertex * vertex_data(Vertex vertex) const
Definition: policy_graph.h:44