OpenSDN source code
policy_match.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 ctrlplane_policy_match_h
7
#define ctrlplane_policy_match_h
8
9
#include "
routing-policy/policy_vertex.h
"
10
11
class
PolicyMatchVertex
:
public
PolicyGraphVertex
{
12
virtual
PolicyGraphVertex::VertexType
Type
() {
13
return
PolicyMatchVertex::POLICY_MATCH
;
14
}
15
16
bool
operator ==
(
const
PolicyMatchVertex
&rhs)
const
{
17
return
IsSame
(rhs);
18
}
19
20
virtual
bool
IsSame
(
const
PolicyMatchVertex
&rhs)
const
= 0;
21
};
22
#endif
// ctrlplane_policy_match_h
PolicyGraphVertex
Definition:
policy_vertex.h:24
PolicyGraphVertex::VertexType
VertexType
Definition:
policy_vertex.h:28
PolicyGraphVertex::POLICY_MATCH
@ POLICY_MATCH
Definition:
policy_vertex.h:29
PolicyMatchVertex
Definition:
policy_match.h:11
PolicyMatchVertex::IsSame
virtual bool IsSame(const PolicyMatchVertex &rhs) const =0
PolicyMatchVertex::Type
virtual PolicyGraphVertex::VertexType Type()
Definition:
policy_match.h:12
PolicyMatchVertex::operator==
bool operator==(const PolicyMatchVertex &rhs) const
Definition:
policy_match.h:16
policy_vertex.h
contrail
controller
src
routing-policy
policy_match.h
Generated by
1.9.1