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

#include <esi_label.h>

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 EsiLabel (const bytes_type &data)
 
 EsiLabel (bool single_active)
 
std::string ToString () const
 
bool single_active () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 

Static Public Attributes

static const int kSize = 8
 

Private Member Functions

std::string flags () const
 
int label () const
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file esi_label.h.

Member Typedef Documentation

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

Definition at line 19 of file esi_label.h.

Constructor & Destructor Documentation

EsiLabel::EsiLabel ( const bytes_type data)
explicit

Definition at line 18 of file esi_label.cc.

EsiLabel::EsiLabel ( bool  single_active)
explicit

Definition at line 22 of file esi_label.cc.

Member Function Documentation

string EsiLabel::flags ( ) const
private

Definition at line 31 of file esi_label.cc.

const bytes_type& EsiLabel::GetExtCommunity ( ) const
inline

Definition at line 26 of file esi_label.h.

const uint64_t EsiLabel::GetExtCommunityValue ( ) const
inline

Definition at line 29 of file esi_label.h.

Here is the call graph for this function:

int EsiLabel::label ( ) const
private

Definition at line 35 of file esi_label.cc.

Here is the call graph for this function:

bool EsiLabel::single_active ( ) const
inline

Definition at line 24 of file esi_label.h.

string EsiLabel::ToString ( ) const

Definition at line 44 of file esi_label.cc.

Here is the call graph for this function:

Member Data Documentation

bytes_type EsiLabel::data_
private

Definition at line 37 of file esi_label.h.

const int EsiLabel::kSize = 8
static

Definition at line 18 of file esi_label.h.


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