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

#include <tag.h>

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 Tag4ByteAs (const bytes_type &data)
 
 Tag4ByteAs (as_t asn, int tag)
 
std::string ToString () const
 
bool IsGlobal () const
 
as_t as_number () const
 
int tag () const
 
const uint64_t GetExtCommunityValue () const
 

Static Public Attributes

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

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 37 of file bgp/extended-community/tag.h.

Member Typedef Documentation

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

Definition at line 41 of file bgp/extended-community/tag.h.

Constructor & Destructor Documentation

Tag4ByteAs::Tag4ByteAs ( const bytes_type data)
explicit

Definition at line 57 of file bgp/extended-community/tag.cc.

Tag4ByteAs::Tag4ByteAs ( as_t  asn,
int  tag 
)
explicit

Definition at line 61 of file bgp/extended-community/tag.cc.

Here is the call graph for this function:

Member Function Documentation

as_t Tag4ByteAs::as_number ( ) const

Definition at line 68 of file bgp/extended-community/tag.cc.

Here is the call graph for this function:

const uint64_t Tag4ByteAs::GetExtCommunityValue ( ) const
inline

Definition at line 51 of file bgp/extended-community/tag.h.

Here is the call graph for this function:

bool Tag4ByteAs::IsGlobal ( ) const

Definition at line 86 of file bgp/extended-community/tag.cc.

Here is the call graph for this function:

int Tag4ByteAs::tag ( ) const

Definition at line 77 of file bgp/extended-community/tag.cc.

Here is the call graph for this function:

string Tag4ByteAs::ToString ( ) const

Definition at line 90 of file bgp/extended-community/tag.cc.

Here is the call graph for this function:

Member Data Documentation

bytes_type Tag4ByteAs::data_
private

Definition at line 56 of file bgp/extended-community/tag.h.

const int Tag4ByteAs::kMinGlobalId = 8000000
static

Definition at line 40 of file bgp/extended-community/tag.h.

const int Tag4ByteAs::kSize = 8
static

Definition at line 39 of file bgp/extended-community/tag.h.


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