Junxiao Shi | cbba04c | 2014-01-26 14:21:22 -0700 | [diff] [blame] | 1 | /* -*- 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 Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 9 | namespace nfd { |
Junxiao Shi | cbba04c | 2014-01-26 14:21:22 -0700 | [diff] [blame] | 10 | namespace pit { |
| 11 | |
| 12 | InRecord::InRecord(shared_ptr<Face> face) |
| 13 | : FaceRecord(face) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | InRecord::InRecord(const InRecord& other) |
| 18 | : FaceRecord(other) |
| 19 | { |
| 20 | } |
| 21 | |
Junxiao Shi | f3c0781 | 2014-03-11 21:48:49 -0700 | [diff] [blame^] | 22 | void |
| 23 | InRecord::update(const Interest& interest) |
| 24 | { |
| 25 | this->FaceRecord::update(interest); |
| 26 | m_interest = const_cast<Interest&>(interest).shared_from_this(); |
| 27 | } |
Junxiao Shi | cbba04c | 2014-01-26 14:21:22 -0700 | [diff] [blame] | 28 | |
| 29 | } // namespace pit |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 30 | } // namespace nfd |