Files
NFD/daemon/table/pit-in-record.hpp
T
Junxiao Shi f3c0781d22 fw: refine pipelines, dispatch to strategy
refs #1345 #1255

Change-Id: If1cfc26049f87318103fc09c3b211ebf1eb3ebaa
2014-03-11 22:33:15 -07:00

47 lines
886 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#ifndef NFD_TABLE_PIT_IN_RECORD_HPP
#define NFD_TABLE_PIT_IN_RECORD_HPP
#include "pit-face-record.hpp"
namespace nfd {
namespace pit {
/** \class InRecord
* \brief contains information about an Interest from an incoming face
*/
class InRecord : public FaceRecord
{
public:
explicit
InRecord(shared_ptr<Face> face);
InRecord(const InRecord& other);
void
update(const Interest& interest);
const Interest&
getInterest() const;
private:
shared_ptr<Interest> m_interest;
};
inline const Interest&
InRecord::getInterest() const
{
BOOST_ASSERT(static_cast<bool>(m_interest));
return *m_interest;
}
} // namespace pit
} // namespace nfd
#endif // NFD_TABLE_PIT_IN_RECORD_HPP