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

#include <origin_vn.h>

Collaboration diagram for OriginVn:

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 OriginVn ()
 
 OriginVn (as_t asn, uint32_t vn_idx)
 
 OriginVn (const bytes_type &data)
 
bool IsNull ()
 
bool IsGlobal () const
 
as_t as_number () const
 
int vn_index () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
bool operator< (const OriginVn &rhs) const
 
bool operator== (const OriginVn &rhs) const
 
std::string ToString ()
 

Static Public Member Functions

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

Static Public Attributes

static const int kSize = 8
 
static const int kMinGlobalId = 8000000
 
static OriginVn null_originvn
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file origin_vn.h.

Member Typedef Documentation

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

Definition at line 21 of file origin_vn.h.

Constructor & Destructor Documentation

OriginVn::OriginVn ( )

Definition at line 18 of file origin_vn.cc.

OriginVn::OriginVn ( as_t  asn,
uint32_t  vn_idx 
)

Definition at line 22 of file origin_vn.cc.

Here is the call graph for this function:

OriginVn::OriginVn ( const bytes_type data)
explicit

Definition at line 35 of file origin_vn.cc.

Member Function Documentation

as_t OriginVn::as_number ( ) const

Definition at line 110 of file origin_vn.cc.

Here is the call graph for this function:

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

Definition at line 39 of file origin_vn.cc.

Here is the call graph for this function:

const bytes_type& OriginVn::GetExtCommunity ( ) const
inline

Definition at line 33 of file origin_vn.h.

const uint64_t OriginVn::GetExtCommunityValue ( ) const
inline

Definition at line 37 of file origin_vn.h.

Here is the call graph for this function:

bool OriginVn::IsGlobal ( ) const

Definition at line 134 of file origin_vn.cc.

Here is the call graph for this function:

bool OriginVn::IsNull ( )
inline

Definition at line 27 of file origin_vn.h.

Here is the call graph for this function:

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

Definition at line 41 of file origin_vn.h.

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

Definition at line 44 of file origin_vn.h.

string OriginVn::ToString ( )

Definition at line 138 of file origin_vn.cc.

Here is the call graph for this function:

int OriginVn::vn_index ( ) const

Definition at line 122 of file origin_vn.cc.

Here is the call graph for this function:

Member Data Documentation

bytes_type OriginVn::data_
private

Definition at line 53 of file origin_vn.h.

const int OriginVn::kMinGlobalId = 8000000
static

Definition at line 19 of file origin_vn.h.

const int OriginVn::kSize = 8
static

Definition at line 18 of file origin_vn.h.

OriginVn OriginVn::null_originvn
static

Definition at line 20 of file origin_vn.h.


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