OpenSDN source code
ifmap_util.h
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 
6 #ifndef __IFMAP_IFMAP_UTIL_H__
7 #define __IFMAP_IFMAP_UTIL_H__
8 
9 #include <string>
10 #include <vector>
11 
12 #include "db/db_graph.h"
13 
14 typedef std::map<std::string,
16 
18  virtual bool VertexFilter(const DBGraphVertex *vertex) const;
19 
20  virtual bool EdgeFilter(const DBGraphVertex *source,
21  const DBGraphVertex *target,
22  const DBGraphEdge *edge) const;
23 
24  virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const;
25 
26  std::set<std::string> exclude_vertex;
28 };
29 
31  virtual bool VertexFilter(const DBGraphVertex *vertex) const;
32 
33  virtual bool EdgeFilter(const DBGraphVertex *source,
34  const DBGraphVertex *target,
35  const DBGraphEdge *edge) const;
36 
37  virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const;
38 
40 };
41 
42 #endif
std::map< std::string, DBGraph::VisitorFilter::AllowedEdgeSet > VertexEdgeMap
Definition: ifmap_util.h:15
std::set< std::string > AllowedEdgeSet
Definition: db_graph.h:28
std::pair< bool, AllowedEdgeSet > AllowedEdgeRetVal
Definition: db_graph.h:31
virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const
Definition: ifmap_util.cc:41
virtual bool VertexFilter(const DBGraphVertex *vertex) const
Definition: ifmap_util.cc:18
std::set< std::string > exclude_vertex
Definition: ifmap_util.h:26
virtual bool EdgeFilter(const DBGraphVertex *source, const DBGraphVertex *target, const DBGraphEdge *edge) const
Definition: ifmap_util.cc:27
VertexEdgeMap exclude_edge
Definition: ifmap_util.h:27
virtual bool EdgeFilter(const DBGraphVertex *source, const DBGraphVertex *target, const DBGraphEdge *edge) const
Definition: ifmap_util.cc:64
VertexEdgeMap include_vertex
Definition: ifmap_util.h:39
virtual AllowedEdgeRetVal AllowedEdges(const DBGraphVertex *source) const
Definition: ifmap_util.cc:56
virtual bool VertexFilter(const DBGraphVertex *vertex) const
Definition: ifmap_util.cc:47