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

#include <registered-prefix.hpp>

Public Types

typedef function< void(const
Name &, const Interest &)> 
OnInterest
 

Public Member Functions

 RegisteredPrefix (const Name &prefix, const OnInterest &onInterest)
 Create a new PrefixEntry. More...
 
const NamegetPrefix () const
 
const OnInterestgetOnInterest () const
 

Detailed Description

Definition at line 16 of file registered-prefix.hpp.

Member Typedef Documentation

typedef function<void (const Name&, const Interest&)> ndn::RegisteredPrefix::OnInterest

Definition at line 19 of file registered-prefix.hpp.

Constructor & Destructor Documentation

ndn::RegisteredPrefix::RegisteredPrefix ( const Name prefix,
const OnInterest onInterest 
)
inline

Create a new PrefixEntry.

Parameters
prefixA shared_ptr for the prefix.
onInterestA function object to call when a matching data packet is received.

Definition at line 26 of file registered-prefix.hpp.

Member Function Documentation

const OnInterest& ndn::RegisteredPrefix::getOnInterest ( ) const
inline

Definition at line 39 of file registered-prefix.hpp.

const Name& ndn::RegisteredPrefix::getPrefix ( ) const
inline

Definition at line 33 of file registered-prefix.hpp.