NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::FaceTable Class Reference

container of all Faces More...

#include <face-table.hpp>

Inheritance diagram for nfd::FaceTable:
Collaboration diagram for nfd::FaceTable:

Public Types

typedef std::map< FaceId, shared_ptr< Face > > FaceMap
 
typedef boost::select_second_const_range< FaceMapForwardRange
 
typedef boost::range_iterator< ForwardRange >::type const_iterator
 ForwardIterator for shared_ptr<Face> More...
 

Public Member Functions

 FaceTable (Forwarder &forwarder)
 
 ~FaceTable ()
 
void add (shared_ptr< Face > face)
 
void addReserved (shared_ptr< Face > face, FaceId faceId)
 add a special Face with a reserved FaceId More...
 
shared_ptr< Faceget (FaceId id) const
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Public Attributes

signal::Signal< FaceTable, shared_ptr< Face > > onAdd
 fires after a Face is added More...
 
signal::Signal< FaceTable, shared_ptr< Face > > onRemove
 fires before a Face is removed More...
 

Detailed Description

container of all Faces

Definition at line 38 of file face-table.hpp.

Member Typedef Documentation

typedef std::map<FaceId, shared_ptr<Face> > nfd::FaceTable::FaceMap

Definition at line 61 of file face-table.hpp.

typedef boost::select_second_const_range<FaceMap> nfd::FaceTable::ForwardRange

Definition at line 63 of file face-table.hpp.

typedef boost::range_iterator<ForwardRange>::type nfd::FaceTable::const_iterator

ForwardIterator for shared_ptr<Face>

Definition at line 67 of file face-table.hpp.

Constructor & Destructor Documentation

nfd::FaceTable::FaceTable ( Forwarder forwarder)
explicit

Definition at line 34 of file face-table.cpp.

nfd::FaceTable::~FaceTable ( )

Definition at line 40 of file face-table.cpp.

Member Function Documentation

void nfd::FaceTable::add ( shared_ptr< Face face)
void nfd::FaceTable::addReserved ( shared_ptr< Face face,
FaceId  faceId 
)
shared_ptr< Face > nfd::FaceTable::get ( FaceId  id) const

Definition at line 46 of file face-table.cpp.

Referenced by nfd::FaceManager::onFaceRequest().

size_t nfd::FaceTable::size ( ) const

Definition at line 53 of file face-table.cpp.

FaceTable::const_iterator nfd::FaceTable::begin ( ) const

Definition at line 119 of file face-table.cpp.

FaceTable::const_iterator nfd::FaceTable::end ( ) const

Definition at line 125 of file face-table.cpp.

Member Data Documentation

signal::Signal<FaceTable, shared_ptr<Face> > nfd::FaceTable::onAdd

fires after a Face is added

Definition at line 78 of file face-table.hpp.

Referenced by addReserved().

signal::Signal<FaceTable, shared_ptr<Face> > nfd::FaceTable::onRemove

fires before a Face is removed

FaceId is valid when this event is fired

Definition at line 84 of file face-table.hpp.

Referenced by addReserved().


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