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

#include <source_as.h>

Collaboration diagram for SourceAs:

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 SourceAs ()
 
 SourceAs (const bytes_type &data)
 
 SourceAs (const uint32_t asn, const uint32_t ri_index)
 
uint32_t GetAsn () const
 
bool IsNull () const
 
uint8_t Type () const
 
uint8_t Subtype () const
 
bool operator< (const SourceAs &rhs) const
 
bool operator> (const SourceAs &rhs) const
 
bool operator== (const SourceAs &rhs) const
 
bool operator!= (const SourceAs &rhs) const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
std::string ToString () const
 

Static Public Member Functions

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

Static Public Attributes

static const int kSize = 8
 
static SourceAs null_sas
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file source_as.h.

Member Typedef Documentation

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

Definition at line 20 of file source_as.h.

Constructor & Destructor Documentation

SourceAs::SourceAs ( )

Definition at line 17 of file source_as.cc.

SourceAs::SourceAs ( const bytes_type data)
explicit

Definition at line 21 of file source_as.cc.

SourceAs::SourceAs ( const uint32_t  asn,
const uint32_t  ri_index 
)

Definition at line 37 of file source_as.cc.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 68 of file source_as.cc.

Here is the call graph for this function:

uint32_t SourceAs::GetAsn ( ) const

Definition at line 25 of file source_as.cc.

Here is the call graph for this function:

const bytes_type& SourceAs::GetExtCommunity ( ) const
inline

Definition at line 44 of file source_as.h.

const uint64_t SourceAs::GetExtCommunityValue ( ) const
inline

Definition at line 45 of file source_as.h.

Here is the call graph for this function:

bool SourceAs::IsNull ( ) const
inline

Definition at line 27 of file source_as.h.

Here is the call graph for this function:

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

Definition at line 40 of file source_as.h.

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

Definition at line 31 of file source_as.h.

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

Definition at line 37 of file source_as.h.

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

Definition at line 34 of file source_as.h.

uint8_t SourceAs::Subtype ( ) const
inline

Definition at line 29 of file source_as.h.

string SourceAs::ToString ( ) const

Definition at line 50 of file source_as.cc.

Here is the call graph for this function:

uint8_t SourceAs::Type ( ) const
inline

Definition at line 28 of file source_as.h.

Member Data Documentation

bytes_type SourceAs::data_
private

Definition at line 54 of file source_as.h.

const int SourceAs::kSize = 8
static

Definition at line 18 of file source_as.h.

SourceAs SourceAs::null_sas
static

Definition at line 19 of file source_as.h.


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