OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ifmap_util.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef __IFMAP_IFMAP_UTIL_H__
6 #define __IFMAP_IFMAP_UTIL_H__
7 
8 #include <string>
9 #include <vector>
10 
11 #include "db/db_graph.h"
12 
13 typedef std::map<std::string,
15 
17  virtual bool VertexFilter(const DBGraphVertex *vertex) const;
18 
19  virtual bool EdgeFilter(const DBGraphVertex *source,
20  const DBGraphVertex *target,
21  const DBGraphEdge *edge) const;
22 
23  virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const;
24 
25  std::set<std::string> exclude_vertex;
27 };
28 
30  virtual bool VertexFilter(const DBGraphVertex *vertex) const;
31 
32  virtual bool EdgeFilter(const DBGraphVertex *source,
33  const DBGraphVertex *target,
34  const DBGraphEdge *edge) const;
35 
36  virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const;
37 
39 };
40 
41 #endif
virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const
Definition: ifmap_util.cc:40
virtual bool EdgeFilter(const DBGraphVertex *source, const DBGraphVertex *target, const DBGraphEdge *edge) const
Definition: ifmap_util.cc:63
std::set< std::string > AllowedEdgeSet
Definition: db_graph.h:27
std::map< std::string, DBGraph::VisitorFilter::AllowedEdgeSet > VertexEdgeMap
Definition: ifmap_util.h:14
std::pair< bool, AllowedEdgeSet > AllowedEdgeRetVal
Definition: db_graph.h:30
std::set< std::string > exclude_vertex
Definition: ifmap_util.h:25
virtual bool EdgeFilter(const DBGraphVertex *source, const DBGraphVertex *target, const DBGraphEdge *edge) const
Definition: ifmap_util.cc:26
VertexEdgeMap include_vertex
Definition: ifmap_util.h:38
virtual bool VertexFilter(const DBGraphVertex *vertex) const
Definition: ifmap_util.cc:17
VertexEdgeMap exclude_edge
Definition: ifmap_util.h:26
virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const
Definition: ifmap_util.cc:55
virtual bool VertexFilter(const DBGraphVertex *vertex) const
Definition: ifmap_util.cc:46