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

#include <tag.h>

Public Types

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

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

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

Constructor & Destructor Documentation

Tag::Tag ( const bytes_type data)
explicit

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

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

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:

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:

bool Tag::IsGlobal ( ) const

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

Here is the call graph for this function:

int Tag::tag ( ) const

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

Here is the call graph for this function:

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

bytes_type Tag::data_
private

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

const int Tag::kMinGlobalId = 8000000
static

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

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: