OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
< NexthopDBEntry
NexthopPtr
 

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

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

Definition at line 25 of file nexthop_entry.h.

Member Enumeration Documentation

Enumerator
NEXTHOP_STATE_CLEAN 
NEXTHOP_STATE_MARKED 
NEXTHOP_STATE_DELETED 

Definition at line 27 of file nexthop_entry.h.

Constructor & Destructor Documentation

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

Definition at line 33 of file nexthop_entry.h.

NexthopDBEntry::~NexthopDBEntry ( )
inline

Definition at line 36 of file nexthop_entry.h.

Member Function Documentation

int NexthopDBEntry::EncodedLength ( )
inline

Definition at line 39 of file nexthop_entry.h.

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

Definition at line 51 of file nexthop_entry.h.

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

Definition at line 55 of file nexthop_entry.h.

Here is the call graph for this function:

void NexthopDBEntry::set_state ( NexthopDBEntryState  state)
inline

Definition at line 43 of file nexthop_entry.h.

Here is the call graph for this function:

NexthopDBEntryState NexthopDBEntry::state ( )
inline

Definition at line 47 of file nexthop_entry.h.

Member Data Documentation

const int NexthopDBEntry::kNexthopEntryOverhead = 32
staticprivate

Definition at line 21 of file nexthop_entry.h.

std::string NexthopDBEntry::nexthop_string_
private

Definition at line 61 of file nexthop_entry.h.

NexthopDBEntryState NexthopDBEntry::state_
private

Definition at line 62 of file nexthop_entry.h.


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