NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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 "common.hpp"
30 #include "strategy-info-host.hpp"
31 #include "core/scheduler.hpp"
32 
33 namespace nfd {
34 
35 class NameTree;
36 
37 namespace name_tree {
38 class Entry;
39 }
40 
41 class Measurements;
42 
43 namespace measurements {
44 
48 class Entry : public StrategyInfoHost, noncopyable
49 {
50 public:
51  explicit
52  Entry(const Name& name);
53 
54  const Name&
55  getName() const;
56 
57 private:
58  Name m_name;
59 
60 private: // lifetime
62  scheduler::EventId m_cleanup;
63  shared_ptr<name_tree::Entry> m_nameTreeEntry;
64 
65  friend class nfd::NameTree;
66  friend class nfd::name_tree::Entry;
67  friend class nfd::Measurements;
68 };
69 
70 inline const Name&
72 {
73  return m_name;
74 }
75 
76 } // namespace measurements
77 } // namespace nfd
78 
79 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ENTRY_HPP
const Name & getName() const
time_point TimePoint
Definition: time.hpp:108
base class for an entity onto which StrategyInfo objects may be placed
represents the Measurements table
represents a Measurements entry
std::shared_ptr< ns3::EventId > EventId
Definition: scheduler.hpp:39
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Class Name Tree.
Definition: name-tree.hpp:79
Name abstraction to represent an absolute name.
Definition: name.hpp:46
NameTree
Definition: name-tree.cpp:36
Name Tree Entry Class.