OpenSDN source code
|
#include <rtarget_address.h>
Public Types | |
typedef boost::array< uint8_t, kSize > | bytes_type |
typedef std::set< RouteTarget > | List |
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_type & | GetExtCommunity () 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_ |
Definition at line 16 of file rtarget_address.h.
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.
RouteTarget::RouteTarget | ( | ) |
Definition at line 17 of file rtarget_address.cc.
|
explicit |
Definition at line 21 of file rtarget_address.cc.
RouteTarget::RouteTarget | ( | const Ip4Address & | address, |
uint16_t | num | ||
) |
|
static |
|
inline |
Definition at line 46 of file rtarget_address.h.
const uint64_t RouteTarget::GetExtCommunityValue | ( | ) | const |
|
inline |
|
inline |
Definition at line 33 of file rtarget_address.h.
|
inline |
Definition at line 39 of file rtarget_address.h.
|
inline |
Definition at line 36 of file rtarget_address.h.
|
inline |
Definition at line 31 of file rtarget_address.h.
string RouteTarget::ToString | ( | ) | const |
|
inline |
Definition at line 30 of file rtarget_address.h.
|
private |
Definition at line 53 of file rtarget_address.h.
|
static |
Definition at line 18 of file rtarget_address.h.
|
static |
Definition at line 19 of file rtarget_address.h.