NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
measurements-entry.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
26 #define NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
27 
28 #include "common.hpp"
29 #include "strategy-info-host.hpp"
30 #include "core/scheduler.hpp"
31 
32 namespace nfd {
33 
34 class NameTree;
35 
36 namespace name_tree {
37 class Entry;
38 }
39 
40 class Measurements;
41 
42 namespace measurements {
43 
47 class Entry : public StrategyInfoHost, noncopyable
48 {
49 public:
50  explicit
51  Entry(const Name& name);
52 
53  const Name&
54  getName() const;
55 
56 private:
57  Name m_name;
58 
59 private: // lifetime
60  time::steady_clock::TimePoint m_expiry;
61  EventId m_cleanup;
62  shared_ptr<name_tree::Entry> m_nameTreeEntry;
63 
64  friend class nfd::NameTree;
65  friend class nfd::name_tree::Entry;
66  friend class nfd::Measurements;
67 };
68 
69 inline const Name&
71 {
72  return m_name;
73 }
74 
75 } // namespace measurements
76 } // namespace nfd
77 
78 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
const Name & getName() const
base class for an entity onto which StrategyInfo objects may be placed
std::shared_ptr< ns3::EventId > EventId
Definition: scheduler.hpp:39
represents a Measurements entry
Class Name Tree.
Definition: name-tree.hpp:79
NameTree
Definition: name-tree.cpp:36
Name Tree Entry Class.