blob: 573ee857f379e224b3084fa748381f67e182f5f8 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "pit-in-record.hpp"
namespace nfd {
namespace pit {
InRecord::InRecord(shared_ptr<Face> face)
: FaceRecord(face)
{
}
InRecord::InRecord(const InRecord& other)
: FaceRecord(other)
{
}
void
InRecord::update(const Interest& interest)
{
this->FaceRecord::update(interest);
m_interest = const_cast<Interest&>(interest).shared_from_this();
}
} // namespace pit
} // namespace nfd