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
content-store-impl.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #include "content-store-impl.hpp"
21 
22 #include "../../utils/trie/random-policy.hpp"
23 #include "../../utils/trie/lru-policy.hpp"
24 #include "../../utils/trie/fifo-policy.hpp"
25 #include "../../utils/trie/lfu-policy.hpp"
26 #include "../../utils/trie/multi-policy.hpp"
27 #include "../../utils/trie/aggregate-stats-policy.hpp"
28 
29 #define NS_OBJECT_ENSURE_REGISTERED_TEMPL(type, templ) \
30  static struct X##type##templ##RegistrationClass { \
31  X##type##templ##RegistrationClass() \
32  { \
33  ns3::TypeId tid = type<templ>::GetTypeId(); \
34  tid.GetParent(); \
35  } \
36  } x_##type##templ##RegistrationVariable
37 
38 namespace ns3 {
39 namespace ndn {
40 
41 using namespace ndnSIM;
42 
43 namespace cs {
44 
45 // explicit instantiation and registering
50 
55 
60 
65 
70 
71 typedef multi_policy_traits<boost::mpl::vector2<lru_policy_traits, aggregate_stats_policy_traits>>
73 typedef multi_policy_traits<boost::mpl::vector2<random_policy_traits,
74  aggregate_stats_policy_traits>>
76 typedef multi_policy_traits<boost::mpl::vector2<fifo_policy_traits, aggregate_stats_policy_traits>>
78 typedef multi_policy_traits<boost::mpl::vector2<lfu_policy_traits, aggregate_stats_policy_traits>>
80 
83 
86 
89 
92 
93 #ifdef DOXYGEN
94 // /**
95 // * \brief Content Store implementing LRU cache replacement policy
96 // */
98 };
99 
104 };
105 
110 };
111 
116 };
117 #endif
118 
119 } // namespace cs
120 } // namespace ndn
121 } // namespace ns3
Content Store implementing LRU cache replacement policy.
Content Store implementing FIFO cache replacement policy.
Content Store implementing Least Frequently Used cache replacement policy.
multi_policy_traits< boost::mpl::vector2< random_policy_traits, aggregate_stats_policy_traits > > RandomWithCountsTraits
multi_policy_traits< boost::mpl::vector2< lfu_policy_traits, aggregate_stats_policy_traits > > LfuWithCountsTraits
multi_policy_traits< boost::mpl::vector2< lru_policy_traits, aggregate_stats_policy_traits > > LruWithCountsTraits
#define NS_OBJECT_ENSURE_REGISTERED_TEMPL(type, templ)
Copyright (c) 2011-2015 Regents of the University of California.
Content Store implementing Random cache replacement policy.
multi_policy_traits< boost::mpl::vector2< fifo_policy_traits, aggregate_stats_policy_traits > > FifoWithCountsTraits