OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
policy_edge.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
6 
8 
10  : edge_id_(edge_id) {
11 }
12 
14  Vertex s = boost::source(edge_id_, *graph->graph());
15  return graph->vertex_data(s);
16 }
17 
19  Vertex s = boost::source(edge_id_, *graph->graph());
20  return graph->vertex_data(s);
21 }
22 
24  Vertex t = boost::target(edge_id_, *graph->graph());
25  return graph->vertex_data(t);
26 }
27 
29  Vertex t = boost::target(edge_id_, *graph->graph());
30  return graph->vertex_data(t);
31 }
PolicyGraphEdge(Edge edge_id)
Definition: policy_edge.cc:9
PolicyGraphVertex * source(PolicyGraph *graph)
Definition: policy_edge.cc:13
const graph_t * graph() const
Definition: policy_graph.h:41
PolicyGraphVertex * target(PolicyGraph *graph)
Definition: policy_edge.cc:23
PolicyGraphBase::vertex_descriptor Vertex
Definition: policy_edge.h:18
PolicyGraphBase::edge_descriptor Edge
Definition: policy_edge.h:17
PolicyGraphVertex * vertex_data(Vertex vertex) const
Definition: policy_graph.h:43