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 19 of file nexthop_entry.h.

Member Typedef Documentation

◆ NexthopPtr

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

Definition at line 25 of file nexthop_entry.h.

Member Enumeration Documentation

◆ NexthopDBEntryState

Enumerator
NEXTHOP_STATE_CLEAN 
NEXTHOP_STATE_MARKED 
NEXTHOP_STATE_DELETED 

Definition at line 27 of file nexthop_entry.h.

Constructor & Destructor Documentation

◆ NexthopDBEntry()

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

Definition at line 33 of file nexthop_entry.h.

◆ ~NexthopDBEntry()

NexthopDBEntry::~NexthopDBEntry ( )
inline

Definition at line 36 of file nexthop_entry.h.

Member Function Documentation

◆ EncodedLength()

int NexthopDBEntry::EncodedLength ( )
inline

Definition at line 39 of file nexthop_entry.h.

◆ nexthop_string()

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

Definition at line 51 of file nexthop_entry.h.

◆ operator==()

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

Definition at line 55 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 43 of file nexthop_entry.h.

Here is the call graph for this function:

◆ state()

NexthopDBEntryState NexthopDBEntry::state ( )
inline

Definition at line 47 of file nexthop_entry.h.

Member Data Documentation

◆ kNexthopEntryOverhead

const int NexthopDBEntry::kNexthopEntryOverhead = 32
staticprivate

Definition at line 21 of file nexthop_entry.h.

◆ nexthop_string_

std::string NexthopDBEntry::nexthop_string_
private

Definition at line 61 of file nexthop_entry.h.

◆ state_

NexthopDBEntryState NexthopDBEntry::state_
private

Definition at line 62 of file nexthop_entry.h.


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