All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::ndnd::ForwardingEntry Class Reference

An ForwardingEntry holds an action and Name prefix and other fields for an forwarding entry. More...

#include <ndnd-forwarding-entry.hpp>

Public Member Functions

 ForwardingEntry (const std::string &action, const Name &prefix, int faceId=-1, const ForwardingFlags &forwardingFlags=ForwardingFlags(), time::milliseconds freshnessPeriod=time::milliseconds::min())
 
 ForwardingEntry ()
 
 ForwardingEntry (const Block &wire)
 Create from wire encoding. More...
 
const std::string & getAction () const
 
void setAction (const std::string &action)
 
const NamegetPrefix () const
 
void setPrefix (const Name &prefix)
 
int getFaceId () const
 
void setFaceId (int faceId)
 
const ForwardingFlagsgetForwardingFlags () const
 
void setForwardingFlags (const ForwardingFlags &forwardingFlags)
 
const time::milliseconds & getFreshnessPeriod () const
 
void setFreshnessPeriod (const time::milliseconds &freshnessPeriod)
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 

Detailed Description

An ForwardingEntry holds an action and Name prefix and other fields for an forwarding entry.

Definition at line 22 of file ndnd-forwarding-entry.hpp.

Constructor & Destructor Documentation

ndn::ndnd::ForwardingEntry::ForwardingEntry ( const std::string &  action,
const Name prefix,
int  faceId = -1,
const ForwardingFlags forwardingFlags = ForwardingFlags(),
time::milliseconds  freshnessPeriod = time::milliseconds::min() 
)
inline

Definition at line 25 of file ndnd-forwarding-entry.hpp.

ndn::ndnd::ForwardingEntry::ForwardingEntry ( )
inline

Definition at line 38 of file ndnd-forwarding-entry.hpp.

ndn::ndnd::ForwardingEntry::ForwardingEntry ( const Block wire)
inlineexplicit

Create from wire encoding.

Definition at line 48 of file ndnd-forwarding-entry.hpp.

Member Function Documentation

const std::string& ndn::ndnd::ForwardingEntry::getAction ( ) const
inline

Definition at line 54 of file ndnd-forwarding-entry.hpp.

int ndn::ndnd::ForwardingEntry::getFaceId ( ) const
inline

Definition at line 66 of file ndnd-forwarding-entry.hpp.

const ForwardingFlags& ndn::ndnd::ForwardingEntry::getForwardingFlags ( ) const
inline

Definition at line 72 of file ndnd-forwarding-entry.hpp.

const time::milliseconds& ndn::ndnd::ForwardingEntry::getFreshnessPeriod ( ) const
inline

Definition at line 78 of file ndnd-forwarding-entry.hpp.

const Name& ndn::ndnd::ForwardingEntry::getPrefix ( ) const
inline

Definition at line 60 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::setAction ( const std::string &  action)
inline

Definition at line 57 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::setFaceId ( int  faceId)
inline

Definition at line 69 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::setForwardingFlags ( const ForwardingFlags forwardingFlags)
inline

Definition at line 75 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::setFreshnessPeriod ( const time::milliseconds &  freshnessPeriod)
inline

Definition at line 81 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::setPrefix ( const Name prefix)
inline

Definition at line 63 of file ndnd-forwarding-entry.hpp.

void ndn::ndnd::ForwardingEntry::wireDecode ( const Block wire)
inline

Definition at line 148 of file ndnd-forwarding-entry.hpp.

const Block & ndn::ndnd::ForwardingEntry::wireEncode ( ) const
inline

Definition at line 100 of file ndnd-forwarding-entry.hpp.