OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PolicyTerm Struct Reference

#include <routing_policy.h>

Collaboration diagram for PolicyTerm:

Public Types

typedef std::vector
< RoutingPolicyAction * > 
ActionList
 
typedef std::vector
< RoutingPolicyMatch * > 
MatchList
 

Public Member Functions

 PolicyTerm ()
 
 ~PolicyTerm ()
 
bool terminal () const
 
bool ApplyTerm (const BgpRoute *route, const BgpPath *path, BgpAttr *attr) const
 
void set_actions (const ActionList &actions)
 
void set_matches (const MatchList &matches)
 
const MatchListmatches () const
 
const ActionListactions () const
 
bool operator== (const PolicyTerm &term) const
 

Public Attributes

std::string term_name
 
autogen::PolicyMatch match
 
autogen::PolicyAction action
 

Private Attributes

MatchList matches_
 
ActionList actions_
 

Detailed Description

Definition at line 196 of file routing_policy.h.

Member Typedef Documentation

Definition at line 198 of file routing_policy.h.

typedef std::vector<RoutingPolicyMatch *> PolicyTerm::MatchList

Definition at line 199 of file routing_policy.h.

Constructor & Destructor Documentation

PolicyTerm::PolicyTerm ( )

Definition at line 555 of file routing_policy.cc.

PolicyTerm::~PolicyTerm ( )

Definition at line 558 of file routing_policy.cc.

Here is the call graph for this function:

Member Function Documentation

const ActionList& PolicyTerm::actions ( ) const
inline

Definition at line 214 of file routing_policy.h.

bool PolicyTerm::ApplyTerm ( const BgpRoute route,
const BgpPath path,
BgpAttr attr 
) const

Definition at line 569 of file routing_policy.cc.

Here is the call graph for this function:

const MatchList& PolicyTerm::matches ( ) const
inline

Definition at line 211 of file routing_policy.h.

bool PolicyTerm::operator== ( const PolicyTerm term) const

Definition at line 602 of file routing_policy.cc.

Here is the call graph for this function:

void PolicyTerm::set_actions ( const ActionList actions)
inline

Definition at line 205 of file routing_policy.h.

Here is the call graph for this function:

void PolicyTerm::set_matches ( const MatchList matches)
inline

Definition at line 208 of file routing_policy.h.

Here is the call graph for this function:

bool PolicyTerm::terminal ( ) const

Definition at line 563 of file routing_policy.cc.

Here is the call graph for this function:

Member Data Documentation

autogen::PolicyAction PolicyTerm::action

Definition at line 22 of file policy_config_parser.cc.

ActionList PolicyTerm::actions_
private

Definition at line 221 of file routing_policy.h.

autogen::PolicyMatch PolicyTerm::match

Definition at line 21 of file policy_config_parser.cc.

MatchList PolicyTerm::matches_
private

Definition at line 220 of file routing_policy.h.

std::string PolicyTerm::term_name

Definition at line 20 of file policy_config_parser.cc.


The documentation for this struct was generated from the following files: