OpenSDN source code
SourceAs Class Reference

#include <source_as.h>

Collaboration diagram for SourceAs:

Public Types

typedef boost::array< uint8_t, kSizebytes_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

◆ bytes_type

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

Definition at line 20 of file source_as.h.

Constructor & Destructor Documentation

◆ SourceAs() [1/3]

SourceAs::SourceAs ( )

Definition at line 17 of file source_as.cc.

◆ SourceAs() [2/3]

SourceAs::SourceAs ( const bytes_type data)
explicit

Definition at line 21 of file source_as.cc.

◆ SourceAs() [3/3]

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

◆ FromString()

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:

◆ GetAsn()

uint32_t SourceAs::GetAsn ( ) const

Definition at line 25 of file source_as.cc.

Here is the call graph for this function:

◆ GetExtCommunity()

const bytes_type& SourceAs::GetExtCommunity ( ) const
inline

Definition at line 44 of file source_as.h.

◆ GetExtCommunityValue()

const uint64_t SourceAs::GetExtCommunityValue ( ) const
inline

Definition at line 45 of file source_as.h.

Here is the call graph for this function:

◆ IsNull()

bool SourceAs::IsNull ( ) const
inline

Definition at line 27 of file source_as.h.

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 40 of file source_as.h.

◆ operator<()

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

Definition at line 31 of file source_as.h.

◆ operator==()

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

Definition at line 37 of file source_as.h.

◆ operator>()

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

Definition at line 34 of file source_as.h.

◆ Subtype()

uint8_t SourceAs::Subtype ( ) const
inline

Definition at line 29 of file source_as.h.

◆ ToString()

string SourceAs::ToString ( ) const

Definition at line 50 of file source_as.cc.

Here is the call graph for this function:

◆ Type()

uint8_t SourceAs::Type ( ) const
inline

Definition at line 28 of file source_as.h.

Member Data Documentation

◆ data_

bytes_type SourceAs::data_
private

Definition at line 54 of file source_as.h.

◆ kSize

const int SourceAs::kSize = 8
static

Definition at line 18 of file source_as.h.

◆ null_sas

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: