OpenSDN source code
SiteOfOrigin Class Reference

#include <site_of_origin.h>

Collaboration diagram for SiteOfOrigin:

Public Types

typedef boost::array< uint8_t, kSizebytes_type
 

Public Member Functions

 SiteOfOrigin ()
 
 SiteOfOrigin (const bytes_type &data)
 
bool IsNull () const
 
uint8_t Type () const
 
uint8_t Subtype () const
 
bool operator< (const SiteOfOrigin &rhs) const
 
bool operator> (const SiteOfOrigin &rhs) const
 
bool operator== (const SiteOfOrigin &rhs) const
 
bool operator!= (const SiteOfOrigin &rhs) const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
std::string ToString () const
 

Static Public Member Functions

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

Static Public Attributes

static const int kSize = 8
 
static SiteOfOrigin null_soo
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file site_of_origin.h.

Member Typedef Documentation

◆ bytes_type

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

Definition at line 20 of file site_of_origin.h.

Constructor & Destructor Documentation

◆ SiteOfOrigin() [1/2]

SiteOfOrigin::SiteOfOrigin ( )

Definition at line 17 of file site_of_origin.cc.

◆ SiteOfOrigin() [2/2]

SiteOfOrigin::SiteOfOrigin ( const bytes_type data)
explicit

Definition at line 21 of file site_of_origin.cc.

Member Function Documentation

◆ FromString()

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

Definition at line 50 of file site_of_origin.cc.

Here is the call graph for this function:

◆ GetExtCommunity()

const bytes_type& SiteOfOrigin::GetExtCommunity ( ) const
inline

Definition at line 42 of file site_of_origin.h.

◆ GetExtCommunityValue()

const uint64_t SiteOfOrigin::GetExtCommunityValue ( ) const
inline

Definition at line 43 of file site_of_origin.h.

Here is the call graph for this function:

◆ IsNull()

bool SiteOfOrigin::IsNull ( ) const
inline

Definition at line 25 of file site_of_origin.h.

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 38 of file site_of_origin.h.

◆ operator<()

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

Definition at line 29 of file site_of_origin.h.

◆ operator==()

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

Definition at line 35 of file site_of_origin.h.

◆ operator>()

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

Definition at line 32 of file site_of_origin.h.

◆ Subtype()

uint8_t SiteOfOrigin::Subtype ( ) const
inline

Definition at line 27 of file site_of_origin.h.

◆ ToString()

string SiteOfOrigin::ToString ( ) const

Definition at line 25 of file site_of_origin.cc.

Here is the call graph for this function:

◆ Type()

uint8_t SiteOfOrigin::Type ( ) const
inline

Definition at line 26 of file site_of_origin.h.

Member Data Documentation

◆ data_

bytes_type SiteOfOrigin::data_
private

Definition at line 52 of file site_of_origin.h.

◆ kSize

const int SiteOfOrigin::kSize = 8
static

Definition at line 18 of file site_of_origin.h.

◆ null_soo

SiteOfOrigin SiteOfOrigin::null_soo
static

Definition at line 19 of file site_of_origin.h.


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