NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 
37 class InRecord : public FaceRecord
38 {
39 public:
40  explicit
41  InRecord(shared_ptr<Face> face);
42 
43  void
44  update(const Interest& interest);
45 
46  const Interest&
47  getInterest() const;
48 
49 private:
50  shared_ptr<const Interest> m_interest;
51 };
52 
53 inline const Interest&
55 {
56  BOOST_ASSERT(static_cast<bool>(m_interest));
57  return *m_interest;
58 }
59 
60 } // namespace pit
61 } // namespace nfd
62 
63 #endif // NFD_DAEMON_TABLE_PIT_IN_RECORD_HPP
const Interest & getInterest() const
contains information about an Interest from an incoming face
represents an Interest packet
Definition: interest.hpp:45
InRecord(shared_ptr< Face > face)
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
contains information about an Interest on an incoming or outgoing face
void update(const Interest &interest)