26 #ifndef NFD_DAEMON_FW_FACE_TABLE_HPP
27 #define NFD_DAEMON_FW_FACE_TABLE_HPP
31 #include <boost/range/adaptor/indirected.hpp>
32 #include <boost/range/adaptor/map.hpp>
50 add(shared_ptr<Face> face);
67 size()
const noexcept;
70 using FaceMap = std::map<FaceId, shared_ptr<Face>>;
71 using ForwardRange = boost::indirected_range<const boost::select_second_const_range<FaceMap>>;
93 addImpl(shared_ptr<Face> face,
FaceId faceId);
99 getForwardRange()
const;
const_iterator end() const
size_t size() const noexcept
Return the total number of faces.
signal::Signal< FaceTable, Face > beforeRemove
Fires immediately before a face is removed.
std::map< FaceId, shared_ptr< Face > > FaceMap
signal::Signal< FaceTable, Face > afterAdd
Fires immediately after a face is added.
boost::indirected_range< const boost::select_second_const_range< FaceMap > > ForwardRange
Face * get(FaceId id) const noexcept
Get face by FaceId.
const_iterator begin() const
void add(shared_ptr< Face > face)
Add a face.
void addReserved(shared_ptr< Face > face, FaceId faceId)
Add a special face with a reserved FaceId.
boost::range_iterator< ForwardRange >::type const_iterator
Generalization of a network interface.
constexpr FaceId FACEID_RESERVED_MAX
Upper bound of reserved FaceIds.
uint64_t FaceId
Identifies a face.