OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MatchPrefix< T > Class Template Reference

#include <routing_policy_match.h>

Inheritance diagram for MatchPrefix< T >:
Collaboration diagram for MatchPrefix< T >:

Classes

class  PrefixMatch
 

Public Types

enum  MatchType { EXACT, LONGER, ORLONGER }
 
typedef T::RouteT RouteT
 
typedef T::PrefixT PrefixT
 

Public Member Functions

 MatchPrefix (const PrefixMatchConfigList &match_config_list)
 
virtual ~MatchPrefix ()
 
virtual bool Match (const BgpRoute *route, const BgpPath *path, const BgpAttr *attr) const
 
virtual std::string ToString () const
 
virtual bool IsEqual (const RoutingPolicyMatch &prefix) const
 
- Public Member Functions inherited from RoutingPolicyMatch
virtual ~RoutingPolicyMatch ()
 
bool operator() (const BgpRoute *route, const BgpPath *path, const BgpAttr *attr) const
 
virtual bool operator== (const RoutingPolicyMatch &match) const
 
virtual bool operator!= (const RoutingPolicyMatch &match) const
 

Static Public Member Functions

static MatchType GetMatchType (const std::string &match_type_str)
 

Private Types

typedef std::vector< PrefixMatchPrefixMatchList
 

Private Attributes

PrefixMatchList match_list_
 

Friends

template<typename U >
class MatchPrefixTest
 

Detailed Description

template<typename T>
class MatchPrefix< T >

Definition at line 151 of file routing_policy_match.h.

Member Typedef Documentation

template<typename T >
typedef std::vector<PrefixMatch> MatchPrefix< T >::PrefixMatchList
private

Definition at line 190 of file routing_policy_match.h.

template<typename T >
typedef T::PrefixT MatchPrefix< T >::PrefixT

Definition at line 154 of file routing_policy_match.h.

template<typename T >
typedef T::RouteT MatchPrefix< T >::RouteT

Definition at line 153 of file routing_policy_match.h.

Member Enumeration Documentation

template<typename T >
enum MatchPrefix::MatchType
Enumerator
EXACT 
LONGER 
ORLONGER 

Definition at line 155 of file routing_policy_match.h.

Constructor & Destructor Documentation

template<typename T >
MatchPrefix< T >::MatchPrefix ( const PrefixMatchConfigList match_config_list)
explicit

Definition at line 367 of file routing_policy_match.cc.

Here is the call graph for this function:

template<typename T >
MatchPrefix< T >::~MatchPrefix ( )
virtual

Definition at line 384 of file routing_policy_match.cc.

Member Function Documentation

template<typename T >
MatchPrefix< T >::MatchType MatchPrefix< T >::GetMatchType ( const std::string &  match_type_str)
static

Definition at line 353 of file routing_policy_match.cc.

template<typename T >
bool MatchPrefix< T >::IsEqual ( const RoutingPolicyMatch prefix) const
virtual

Implements RoutingPolicyMatch.

Definition at line 412 of file routing_policy_match.cc.

template<typename T >
bool MatchPrefix< T >::Match ( const BgpRoute route,
const BgpPath path,
const BgpAttr attr 
) const
virtual

Implements RoutingPolicyMatch.

Definition at line 388 of file routing_policy_match.cc.

template<typename T >
string MatchPrefix< T >::ToString ( ) const
virtual

Implements RoutingPolicyMatch.

Definition at line 418 of file routing_policy_match.cc.

Friends And Related Function Documentation

template<typename T >
template<typename U >
friend class MatchPrefixTest
friend

Definition at line 189 of file routing_policy_match.h.

Member Data Documentation

template<typename T >
PrefixMatchList MatchPrefix< T >::match_list_
private

Definition at line 192 of file routing_policy_match.h.


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