OpenSDN source code
|
#include <sub_cluster.h>
Public Types | |
typedef boost::array< uint8_t, kSize > | bytes_type |
Public Member Functions | |
SubCluster () | |
SubCluster (const bytes_type &data) | |
SubCluster (as_t asn, const uint32_t id) | |
bool | IsNull () const |
uint8_t | Type () const |
uint8_t | Subtype () const |
bool | operator< (const SubCluster &rhs) const |
bool | operator> (const SubCluster &rhs) const |
bool | operator== (const SubCluster &rhs) const |
bool | operator!= (const SubCluster &rhs) const |
const bytes_type & | GetExtCommunity () const |
const uint64_t | GetExtCommunityValue () const |
std::string | ToString () const |
uint32_t | GetId () const |
uint32_t | GetAsn () const |
Static Public Member Functions | |
static SubCluster | FromString (const std::string &str, boost::system::error_code *error=NULL) |
Static Public Attributes | |
static const int | kSize = 8 |
static SubCluster | null_sub_cluster |
Private Attributes | |
bytes_type | data_ |
Definition at line 17 of file sub_cluster.h.
typedef boost::array<uint8_t, kSize> SubCluster::bytes_type |
Definition at line 21 of file sub_cluster.h.
SubCluster::SubCluster | ( | ) |
Definition at line 16 of file sub_cluster.cc.
|
explicit |
Definition at line 20 of file sub_cluster.cc.
SubCluster::SubCluster | ( | as_t | asn, |
const uint32_t | id | ||
) |
|
static |
uint32_t SubCluster::GetAsn | ( | ) | const |
|
inline |
Definition at line 44 of file sub_cluster.h.
|
inline |
uint32_t SubCluster::GetId | ( | ) | const |
|
inline |
|
inline |
Definition at line 40 of file sub_cluster.h.
|
inline |
Definition at line 31 of file sub_cluster.h.
|
inline |
Definition at line 37 of file sub_cluster.h.
|
inline |
Definition at line 34 of file sub_cluster.h.
|
inline |
Definition at line 29 of file sub_cluster.h.
string SubCluster::ToString | ( | ) | const |
|
inline |
Definition at line 28 of file sub_cluster.h.
|
private |
Definition at line 56 of file sub_cluster.h.
|
static |
Definition at line 19 of file sub_cluster.h.
|
static |
Definition at line 20 of file sub_cluster.h.