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)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
contains information about an Interest from an incoming face
contains information about an Interest on an incoming or outgoing face
const Interest & getInterest() const
void update(const Interest &interest)