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

#include <rtarget_prefix.h>

Collaboration diagram for RTargetPrefix:

Public Member Functions

 RTargetPrefix ()
 
 RTargetPrefix (const BgpProtoPrefix &prefix)
 
 RTargetPrefix (as_t as, RouteTarget rtarget)
 
std::string ToString () const
 
RouteTarget rtarget () const
 
as_t as () const
 
void BuildProtoPrefix (BgpProtoPrefix *prefix) const
 
int CompareTo (const RTargetPrefix &rhs) const
 
bool operator== (const RTargetPrefix &rhs) const
 

Static Public Member Functions

static int FromProtoPrefix (const BgpProtoPrefix &proto_prefix, RTargetPrefix *prefix)
 
static int FromProtoPrefix (BgpServer *server, const BgpProtoPrefix &proto_prefix, const BgpAttr *attr, const Address::Family family, RTargetPrefix *prefix, BgpAttrPtr *new_attr, uint32_t *label, uint32_t *l3_label)
 
static RTargetPrefix FromString (const std::string &str, boost::system::error_code *errorp=NULL)
 

Static Public Attributes

static const std::string kDefaultPrefixString = "0:target:0:0"
 

Private Attributes

as_t as_
 
RouteTarget rtarget_
 

Detailed Description

Definition at line 16 of file rtarget_prefix.h.

Constructor & Destructor Documentation

RTargetPrefix::RTargetPrefix ( )

Definition at line 16 of file rtarget_prefix.cc.

RTargetPrefix::RTargetPrefix ( const BgpProtoPrefix prefix)
explicit
RTargetPrefix::RTargetPrefix ( as_t  as,
RouteTarget  rtarget 
)
inline

Definition at line 22 of file rtarget_prefix.h.

Member Function Documentation

as_t RTargetPrefix::as ( ) const
inline

Definition at line 40 of file rtarget_prefix.h.

void RTargetPrefix::BuildProtoPrefix ( BgpProtoPrefix prefix) const

Definition at line 53 of file rtarget_prefix.cc.

Here is the call graph for this function:

int RTargetPrefix::CompareTo ( const RTargetPrefix rhs) const

Definition at line 107 of file rtarget_prefix.cc.

int RTargetPrefix::FromProtoPrefix ( const BgpProtoPrefix proto_prefix,
RTargetPrefix prefix 
)
static

Definition at line 19 of file rtarget_prefix.cc.

Here is the call graph for this function:

int RTargetPrefix::FromProtoPrefix ( BgpServer server,
const BgpProtoPrefix proto_prefix,
const BgpAttr attr,
const Address::Family  family,
RTargetPrefix prefix,
BgpAttrPtr new_attr,
uint32_t *  label,
uint32_t *  l3_label 
)
static

Definition at line 43 of file rtarget_prefix.cc.

Here is the call graph for this function:

RTargetPrefix RTargetPrefix::FromString ( const std::string &  str,
boost::system::error_code *  errorp = NULL 
)
static

Definition at line 71 of file rtarget_prefix.cc.

Here is the call graph for this function:

bool RTargetPrefix::operator== ( const RTargetPrefix rhs) const
inline

Definition at line 43 of file rtarget_prefix.h.

Here is the call graph for this function:

RouteTarget RTargetPrefix::rtarget ( ) const
inline

Definition at line 39 of file rtarget_prefix.h.

string RTargetPrefix::ToString ( ) const

Definition at line 103 of file rtarget_prefix.cc.

Here is the call graph for this function:

Member Data Documentation

as_t RTargetPrefix::as_
private

Definition at line 48 of file rtarget_prefix.h.

const string RTargetPrefix::kDefaultPrefixString = "0:target:0:0"
static

Definition at line 18 of file rtarget_prefix.h.

RouteTarget RTargetPrefix::rtarget_
private

Definition at line 49 of file rtarget_prefix.h.


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