| /* -*- 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_FACE_RECORD_HPP |
| #define NFD_TABLE_PIT_FACE_RECORD_HPP |
| #include "strategy-info-host.hpp" |
| * \brief contains information about an Interest |
| * on an incoming or outgoing face |
| * \note This is an implementation detail to extract common functionality |
| * of InRecord and OutRecord |
| class FaceRecord : public StrategyInfoHost |
| FaceRecord(shared_ptr<Face> face); |
| FaceRecord(const FaceRecord& other); |
| /** \brief gives the time point this record expires |
| * \return getLastRenewed() + InterestLifetime |
| /// updates lastNonce, lastRenewed, expiry fields |
| update(const Interest& interest); |
| time::Point m_lastRenewed; |
| FaceRecord::getFace() const |
| FaceRecord::getLastNonce() const |
| FaceRecord::getLastRenewed() const |
| FaceRecord::getExpiry() const |
| #endif // NFD_TABLE_PIT_FACE_RECORD_HPP |