blob: c7145d7236c8ce5b8f9d12bb77ed2d47b3b6bcbd [file] [log] [blame]
Junxiao Shi65d00722014-02-17 10:50:20 -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#ifndef NFD_TABLE_MEASUREMENTS_ENTRY_HPP
8#define NFD_TABLE_MEASUREMENTS_ENTRY_HPP
9
10#include "common.hpp"
11#include "strategy-info-host.hpp"
12#include "core/scheduler.hpp"
13
14namespace nfd {
15
16class Measurements;
17
18namespace measurements {
19
20/** \class Entry
21 * \brief represents a Measurements entry
22 */
23class Entry : public StrategyInfoHost, noncopyable
24{
25public:
26 explicit
27 Entry(const Name& name);
28
29 const Name&
30 getName() const;
31
32private:
33 Name m_name;
34
35private: // lifetime
36 time::Point m_expiry;
37 EventId m_cleanup;
38
39 friend class ::nfd::Measurements;
40};
41
42inline const Name&
43Entry::getName() const
44{
45 return m_name;
46}
47
48} // namespace measurements
49} // namespace nfd
50
51#endif // NFD_TABLE_MEASUREMENTS_ENTRY_HPP