OpenSDN source code
EsiLabel Class Reference

#include <esi_label.h>

Public Types

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

◆ bytes_type

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

Definition at line 19 of file esi_label.h.

Constructor & Destructor Documentation

◆ EsiLabel() [1/2]

EsiLabel::EsiLabel ( const bytes_type data)
explicit

Definition at line 18 of file esi_label.cc.

◆ EsiLabel() [2/2]

EsiLabel::EsiLabel ( bool  single_active)
explicit

Definition at line 22 of file esi_label.cc.

Here is the call graph for this function:

Member Function Documentation

◆ flags()

string EsiLabel::flags ( ) const
private

Definition at line 31 of file esi_label.cc.

◆ GetExtCommunity()

const bytes_type& EsiLabel::GetExtCommunity ( ) const
inline

Definition at line 26 of file esi_label.h.

◆ GetExtCommunityValue()

const uint64_t EsiLabel::GetExtCommunityValue ( ) const
inline

Definition at line 29 of file esi_label.h.

Here is the call graph for this function:

◆ label()

int EsiLabel::label ( ) const
private

Definition at line 35 of file esi_label.cc.

Here is the call graph for this function:

◆ single_active()

bool EsiLabel::single_active ( ) const
inline

Definition at line 24 of file esi_label.h.

◆ ToString()

string EsiLabel::ToString ( ) const

Definition at line 44 of file esi_label.cc.

Here is the call graph for this function:

Member Data Documentation

◆ data_

bytes_type EsiLabel::data_
private

Definition at line 37 of file esi_label.h.

◆ kSize

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: