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

#include <esi.h>

Collaboration diagram for EthernetSegmentId:

Public Types

enum  EsiType {
  CONFIGURED = 0, LACP_BASED = 1, STP_BASED = 2, MAC_BASED = 3,
  IP_BASED = 4, AS_BASED = 5
}
 

Public Member Functions

 EthernetSegmentId ()
 
 EthernetSegmentId (const uint8_t *data)
 
 EthernetSegmentId (const EthernetSegmentId &rhs)
 
std::string ToString () const
 
EthernetSegmentIdoperator= (const EthernetSegmentId &rhs)
 
bool IsZero () const
 
uint8_t Type () const
 
int CompareTo (const EthernetSegmentId &rhs) const
 
bool operator== (const EthernetSegmentId &rhs) const
 
bool operator!= (const EthernetSegmentId &rhs) const
 
bool operator< (const EthernetSegmentId &rhs) const
 
bool operator> (const EthernetSegmentId &rhs) const
 
const uint8_t * GetData () const
 

Static Public Member Functions

static EthernetSegmentId FromString (const std::string &str, boost::system::error_code *errorp=NULL)
 

Static Public Attributes

static const int kSize = 10
 
static const EthernetSegmentId kZeroEsi
 
static const EthernetSegmentId kMaxEsi
 

Private Attributes

uint8_t data_ [kSize]
 

Detailed Description

Definition at line 13 of file esi.h.

Member Enumeration Documentation

Enumerator
CONFIGURED 
LACP_BASED 
STP_BASED 
MAC_BASED 
IP_BASED 
AS_BASED 

Definition at line 19 of file esi.h.

Constructor & Destructor Documentation

EthernetSegmentId::EthernetSegmentId ( )

Definition at line 21 of file esi.cc.

EthernetSegmentId::EthernetSegmentId ( const uint8_t *  data)

Definition at line 25 of file esi.cc.

EthernetSegmentId::EthernetSegmentId ( const EthernetSegmentId rhs)
inline

Definition at line 30 of file esi.h.

Member Function Documentation

int EthernetSegmentId::CompareTo ( const EthernetSegmentId rhs) const

Definition at line 156 of file esi.cc.

EthernetSegmentId EthernetSegmentId::FromString ( const std::string &  str,
boost::system::error_code *  errorp = NULL 
)
static

Definition at line 29 of file esi.cc.

Here is the call graph for this function:

const uint8_t* EthernetSegmentId::GetData ( ) const
inline

Definition at line 60 of file esi.h.

bool EthernetSegmentId::IsZero ( ) const
inline

Definition at line 43 of file esi.h.

Here is the call graph for this function:

bool EthernetSegmentId::operator!= ( const EthernetSegmentId rhs) const
inline

Definition at line 50 of file esi.h.

Here is the call graph for this function:

bool EthernetSegmentId::operator< ( const EthernetSegmentId rhs) const
inline

Definition at line 53 of file esi.h.

Here is the call graph for this function:

EthernetSegmentId& EthernetSegmentId::operator= ( const EthernetSegmentId rhs)
inline

Definition at line 38 of file esi.h.

bool EthernetSegmentId::operator== ( const EthernetSegmentId rhs) const
inline

Definition at line 47 of file esi.h.

Here is the call graph for this function:

bool EthernetSegmentId::operator> ( const EthernetSegmentId rhs) const
inline

Definition at line 56 of file esi.h.

Here is the call graph for this function:

string EthernetSegmentId::ToString ( ) const

Definition at line 120 of file esi.cc.

Here is the call graph for this function:

uint8_t EthernetSegmentId::Type ( ) const
inline

Definition at line 44 of file esi.h.

Member Data Documentation

uint8_t EthernetSegmentId::data_[kSize]
private

Definition at line 63 of file esi.h.

const EthernetSegmentId EthernetSegmentId::kMaxEsi
static

Definition at line 17 of file esi.h.

const int EthernetSegmentId::kSize = 10
static

Definition at line 15 of file esi.h.

const EthernetSegmentId EthernetSegmentId::kZeroEsi
static

Definition at line 16 of file esi.h.


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