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

#include <rtarget_address.h>

Collaboration diagram for RouteTarget:

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 
typedef std::set< RouteTargetList
 

Public Member Functions

 RouteTarget ()
 
 RouteTarget (const bytes_type &data)
 
 RouteTarget (const Ip4Address &address, uint16_t num)
 
std::string ToString () const
 
bool IsNull () const
 
uint8_t Type ()
 
uint8_t Subtype ()
 
bool operator< (const RouteTarget &rhs) const
 
bool operator> (const RouteTarget &rhs) const
 
bool operator== (const RouteTarget &rhs) const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 

Static Public Member Functions

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

Static Public Attributes

static const int kSize = 8
 
static RouteTarget null_rtarget
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file rtarget_address.h.

Member Typedef Documentation

typedef boost::array<uint8_t, kSize> RouteTarget::bytes_type

Definition at line 20 of file rtarget_address.h.

typedef std::set<RouteTarget> RouteTarget::List

Definition at line 21 of file rtarget_address.h.

Constructor & Destructor Documentation

RouteTarget::RouteTarget ( )

Definition at line 17 of file rtarget_address.cc.

RouteTarget::RouteTarget ( const bytes_type data)
explicit

Definition at line 21 of file rtarget_address.cc.

RouteTarget::RouteTarget ( const Ip4Address address,
uint16_t  num 
)

Definition at line 25 of file rtarget_address.cc.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 36 of file rtarget_address.cc.

Here is the call graph for this function:

const bytes_type& RouteTarget::GetExtCommunity ( ) const
inline

Definition at line 46 of file rtarget_address.h.

const uint64_t RouteTarget::GetExtCommunityValue ( ) const

Definition at line 32 of file rtarget_address.cc.

Here is the call graph for this function:

bool RouteTarget::IsNull ( ) const
inline

Definition at line 29 of file rtarget_address.h.

Here is the call graph for this function:

bool RouteTarget::operator< ( const RouteTarget rhs) const
inline

Definition at line 33 of file rtarget_address.h.

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

Definition at line 39 of file rtarget_address.h.

bool RouteTarget::operator> ( const RouteTarget rhs) const
inline

Definition at line 36 of file rtarget_address.h.

uint8_t RouteTarget::Subtype ( )
inline

Definition at line 31 of file rtarget_address.h.

string RouteTarget::ToString ( ) const

Definition at line 136 of file rtarget_address.cc.

Here is the call graph for this function:

uint8_t RouteTarget::Type ( )
inline

Definition at line 30 of file rtarget_address.h.

Member Data Documentation

bytes_type RouteTarget::data_
private

Definition at line 53 of file rtarget_address.h.

const int RouteTarget::kSize = 8
static

Definition at line 18 of file rtarget_address.h.

RouteTarget RouteTarget::null_rtarget
static

Definition at line 19 of file rtarget_address.h.


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