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

#include <sub_cluster.h>

Collaboration diagram for SubCluster:

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_typeGetExtCommunity () 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_
 

Detailed Description

Definition at line 17 of file sub_cluster.h.

Member Typedef Documentation

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

Definition at line 21 of file sub_cluster.h.

Constructor & Destructor Documentation

SubCluster::SubCluster ( )

Definition at line 16 of file sub_cluster.cc.

SubCluster::SubCluster ( const bytes_type data)
explicit

Definition at line 20 of file sub_cluster.cc.

SubCluster::SubCluster ( as_t  asn,
const uint32_t  id 
)

Definition at line 24 of file sub_cluster.cc.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 80 of file sub_cluster.cc.

Here is the call graph for this function:

uint32_t SubCluster::GetAsn ( ) const

Definition at line 48 of file sub_cluster.cc.

Here is the call graph for this function:

const bytes_type& SubCluster::GetExtCommunity ( ) const
inline

Definition at line 44 of file sub_cluster.h.

const uint64_t SubCluster::GetExtCommunityValue ( ) const
inline

Definition at line 45 of file sub_cluster.h.

Here is the call graph for this function:

uint32_t SubCluster::GetId ( ) const

Definition at line 37 of file sub_cluster.cc.

Here is the call graph for this function:

bool SubCluster::IsNull ( ) const
inline

Definition at line 27 of file sub_cluster.h.

Here is the call graph for this function:

bool SubCluster::operator!= ( const SubCluster rhs) const
inline

Definition at line 40 of file sub_cluster.h.

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

Definition at line 31 of file sub_cluster.h.

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

Definition at line 37 of file sub_cluster.h.

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

Definition at line 34 of file sub_cluster.h.

uint8_t SubCluster::Subtype ( ) const
inline

Definition at line 29 of file sub_cluster.h.

string SubCluster::ToString ( ) const

Definition at line 59 of file sub_cluster.cc.

Here is the call graph for this function:

uint8_t SubCluster::Type ( ) const
inline

Definition at line 28 of file sub_cluster.h.

Member Data Documentation

bytes_type SubCluster::data_
private

Definition at line 56 of file sub_cluster.h.

const int SubCluster::kSize = 8
static

Definition at line 19 of file sub_cluster.h.

SubCluster SubCluster::null_sub_cluster
static

Definition at line 20 of file sub_cluster.h.


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