NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
pit-in-record.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_TABLE_PIT_IN_RECORD_HPP
27 #define NFD_DAEMON_TABLE_PIT_IN_RECORD_HPP
28 
29 #include "pit-face-record.hpp"
30 
31 namespace nfd {
32 namespace pit {
33 
36 class InRecord : public FaceRecord
37 {
38 public:
39  explicit
40  InRecord(Face& face);
41 
42  void
43  update(const Interest& interest);
44 
45  const Interest&
46  getInterest() const;
47 
48 private:
49  shared_ptr<const Interest> m_interest;
50 };
51 
52 inline const Interest&
54 {
55  BOOST_ASSERT(static_cast<bool>(m_interest));
56  return *m_interest;
57 }
58 
59 } // namespace pit
60 } // namespace nfd
61 
62 #endif // NFD_DAEMON_TABLE_PIT_IN_RECORD_HPP
InRecord(Face &face)
const Interest & getInterest() const
contains information about an Interest from an incoming face
represents an Interest packet
Definition: interest.hpp:42
ndn Face
Definition: face-impl.hpp:41
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
contains information about an Interest on an incoming or outgoing face
void update(const Interest &interest)