blob: 573ee857f379e224b3084fa748381f67e182f5f8 [file] [log] [blame]
Junxiao Shicbba04c2014-01-26 14:21:22 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "pit-in-record.hpp"
8
Alexander Afanasyev18bbf812014-01-29 01:40:23 -08009namespace nfd {
Junxiao Shicbba04c2014-01-26 14:21:22 -070010namespace pit {
11
12InRecord::InRecord(shared_ptr<Face> face)
13 : FaceRecord(face)
14{
15}
16
17InRecord::InRecord(const InRecord& other)
18 : FaceRecord(other)
19{
20}
21
Junxiao Shif3c07812014-03-11 21:48:49 -070022void
23InRecord::update(const Interest& interest)
24{
25 this->FaceRecord::update(interest);
26 m_interest = const_cast<Interest&>(interest).shared_from_this();
27}
Junxiao Shicbba04c2014-01-26 14:21:22 -070028
29} // namespace pit
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080030} // namespace nfd