OpenSDN source code
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_type & GetExtCommunity () 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 17 of file esi_label.h.

Member Typedef Documentation

◆ bytes_type

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

Definition at line 20 of file esi_label.h.

Constructor & Destructor Documentation

◆ EsiLabel() [1/2]

EsiLabel::EsiLabel ( const bytes_type &  data)
explicit

Definition at line 19 of file esi_label.cc.

◆ EsiLabel() [2/2]

EsiLabel::EsiLabel ( bool  single_active)
explicit

Definition at line 23 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 32 of file esi_label.cc.

◆ GetExtCommunity()

const bytes_type& EsiLabel::GetExtCommunity ( ) const
inline

Definition at line 27 of file esi_label.h.

◆ GetExtCommunityValue()

const uint64_t EsiLabel::GetExtCommunityValue ( ) const
inline

Definition at line 30 of file esi_label.h.

Here is the call graph for this function:

◆ label()

int EsiLabel::label ( ) const
private

Definition at line 36 of file esi_label.cc.

Here is the call graph for this function:

◆ single_active()

bool EsiLabel::single_active ( ) const
inline

Definition at line 25 of file esi_label.h.

◆ ToString()

string EsiLabel::ToString ( ) const

Definition at line 45 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 38 of file esi_label.h.

◆ kSize

const int EsiLabel::kSize = 8
static

Definition at line 19 of file esi_label.h.


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