OpenSDN source code
Tag Class Reference

#include <tag.h>

Public Types

typedef boost::array< uint8_t, kSizebytes_type
 

Public Member Functions

 Tag (const bytes_type &data)
 
 Tag (as2_t asn, int tag)
 
std::string ToString () const
 
bool IsGlobal () const
 
as2_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 15 of file bgp/extended-community/tag.h.

Member Typedef Documentation

◆ bytes_type

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

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

Constructor & Destructor Documentation

◆ Tag() [1/2]

Tag::Tag ( const bytes_type data)
explicit

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

◆ Tag() [2/2]

Tag::Tag ( as2_t  asn,
int  tag 
)
explicit

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

Here is the call graph for this function:

Member Function Documentation

◆ as_number()

as2_t Tag::as_number ( ) const

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

Here is the call graph for this function:

◆ GetExtCommunityValue()

const uint64_t Tag::GetExtCommunityValue ( ) const
inline

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

Here is the call graph for this function:

◆ IsGlobal()

bool Tag::IsGlobal ( ) const

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

Here is the call graph for this function:

◆ tag()

int Tag::tag ( ) const

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

Here is the call graph for this function:

◆ ToString()

string Tag::ToString ( ) const

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

Here is the call graph for this function:

Member Data Documentation

◆ data_

bytes_type Tag::data_
private

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

◆ kMinGlobalId

const int Tag::kMinGlobalId = 8000000
static

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

◆ kSize

const int Tag::kSize = 8
static

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


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