OpenSDN source code
NexthopDBEntry Class Reference

#include <nexthop_entry.h>

Collaboration diagram for NexthopDBEntry:

Public Types

enum  NexthopDBEntryState { NEXTHOP_STATE_CLEAN , NEXTHOP_STATE_MARKED , NEXTHOP_STATE_DELETED }
 
typedef boost::shared_ptr< NexthopDBEntryNexthopPtr
 

Public Member Functions

 NexthopDBEntry (const std::string &nh)
 
 ~NexthopDBEntry ()
 
int EncodedLength ()
 
void set_state (NexthopDBEntryState state)
 
NexthopDBEntryState state ()
 
std::string & nexthop_string ()
 
bool operator== (NexthopDBEntry &other)
 

Private Attributes

std::string nexthop_string_
 
NexthopDBEntryState state_
 

Static Private Attributes

static const int kNexthopEntryOverhead = 32
 

Detailed Description

Definition at line 20 of file nexthop_entry.h.

Member Typedef Documentation

◆ NexthopPtr

typedef boost::shared_ptr<NexthopDBEntry> NexthopDBEntry::NexthopPtr

Definition at line 26 of file nexthop_entry.h.

Member Enumeration Documentation

◆ NexthopDBEntryState

Enumerator
NEXTHOP_STATE_CLEAN 
NEXTHOP_STATE_MARKED 
NEXTHOP_STATE_DELETED 

Definition at line 28 of file nexthop_entry.h.

Constructor & Destructor Documentation

◆ NexthopDBEntry()

NexthopDBEntry::NexthopDBEntry ( const std::string &  nh)
inline

Definition at line 34 of file nexthop_entry.h.

◆ ~NexthopDBEntry()

NexthopDBEntry::~NexthopDBEntry ( )
inline

Definition at line 37 of file nexthop_entry.h.

Member Function Documentation

◆ EncodedLength()

int NexthopDBEntry::EncodedLength ( )
inline

Definition at line 40 of file nexthop_entry.h.

◆ nexthop_string()

std::string& NexthopDBEntry::nexthop_string ( )
inline

Definition at line 52 of file nexthop_entry.h.

◆ operator==()

bool NexthopDBEntry::operator== ( NexthopDBEntry other)
inline

Definition at line 56 of file nexthop_entry.h.

Here is the call graph for this function:

◆ set_state()

void NexthopDBEntry::set_state ( NexthopDBEntryState  state)
inline

Definition at line 44 of file nexthop_entry.h.

◆ state()

NexthopDBEntryState NexthopDBEntry::state ( )
inline

Definition at line 48 of file nexthop_entry.h.

Member Data Documentation

◆ kNexthopEntryOverhead

const int NexthopDBEntry::kNexthopEntryOverhead = 32
staticprivate

Definition at line 22 of file nexthop_entry.h.

◆ nexthop_string_

std::string NexthopDBEntry::nexthop_string_
private

Definition at line 62 of file nexthop_entry.h.

◆ state_

NexthopDBEntryState NexthopDBEntry::state_
private

Definition at line 63 of file nexthop_entry.h.


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