measurements-entry.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
27 #define NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
28 
29 #include "strategy-info-host.hpp"
30 #include "core/scheduler.hpp"
31 
32 namespace nfd {
33 
34 namespace name_tree {
35 class Entry;
36 } // namespace name_tree
37 
38 namespace measurements {
39 
42 class Entry : public StrategyInfoHost, noncopyable
43 {
44 public:
45  explicit
46  Entry(const Name& name);
47 
48  const Name&
49  getName() const
50  {
51  return m_name;
52  }
53 
54 private:
55  Name m_name;
56  time::steady_clock::TimePoint m_expiry;
57  scheduler::EventId m_cleanup;
58 
59  name_tree::Entry* m_nameTreeEntry;
60 
61  friend class Measurements;
62  friend class name_tree::Entry;
63 };
64 
65 } // namespace measurements
66 } // namespace nfd
67 
68 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
const Name & getName() const
represents a Measurements entry
base class for an entity onto which StrategyInfo items may be placed
represents the Measurements table
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
an entry in the name tree