container of all Faces More...
#include <face-table.hpp>
Public Types | |
typedef std::map< FaceId, shared_ptr< Face > > | FaceMap |
typedef boost::select_second_const_range< FaceMap > | ForwardRange |
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< Face > | get (FaceId id) const |
size_t | size () const |
const_iterator | begin () const |
const_iterator | end () const |
Public Attributes | |
signal::Signal< FaceTable, shared_ptr< Face > > | afterAdd |
fires after a Face is added More... | |
signal::Signal< FaceTable, shared_ptr< Face > > | beforeRemove |
fires before a Face is removed More... | |
container of all Faces
Definition at line 38 of file face-table.hpp.
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.
|
explicit |
Definition at line 36 of file face-table.cpp.
nfd::FaceTable::~FaceTable | ( | ) |
Definition at line 42 of file face-table.cpp.
void nfd::FaceTable::add | ( | shared_ptr< Face > | face | ) |
Definition at line 61 of file face-table.cpp.
References nfd::face::FACEID_RESERVED_MAX, nfd::face::INVALID_FACEID, and NFD_LOG_WARN.
Referenced by nfd::FaceManager::setConfigFile().
void nfd::FaceTable::addReserved | ( | shared_ptr< Face > | face, |
FaceId | faceId | ||
) |
add a special Face with a reserved FaceId
Definition at line 74 of file face-table.cpp.
References afterAdd, beforeRemove, nfd::connectFaceClosedSignal(), nfd::face::FACEID_RESERVED_MAX, nfd::Forwarder::getFib(), nfd::getGlobalIoService(), nfd::face::INVALID_FACEID, NFD_LOG_INFO, nfd::detail::SimulatorIo::post(), nfd::Fib::removeNextHopFromAllEntries(), nfd::Forwarder::startProcessData(), nfd::Forwarder::startProcessInterest(), and nfd::Forwarder::startProcessNack().
Referenced by nfd::Forwarder::Forwarder(), nfd::Nfd::initialize(), and ns3::ndn::L3Protocol::~L3Protocol().
shared_ptr< Face > nfd::FaceTable::get | ( | FaceId | id | ) | const |
Definition at line 48 of file face-table.cpp.
Referenced by nfd::FaceManager::setConfigFile().
size_t nfd::FaceTable::size | ( | ) | const |
Definition at line 55 of file face-table.cpp.
FaceTable::const_iterator nfd::FaceTable::begin | ( | ) | const |
Definition at line 131 of file face-table.cpp.
FaceTable::const_iterator nfd::FaceTable::end | ( | ) | const |
Definition at line 137 of file face-table.cpp.
signal::Signal<FaceTable, shared_ptr<Face> > nfd::FaceTable::afterAdd |
fires after a Face is added
Definition at line 78 of file face-table.hpp.
Referenced by addReserved(), and nfd::FaceManager::FaceManager().
signal::Signal<FaceTable, shared_ptr<Face> > nfd::FaceTable::beforeRemove |
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(), and nfd::FaceManager::FaceManager().