NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerations
+
Enumerator
a
c
d
e
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
m
n
p
r
s
t
Typedefs
+
Macros
d
e
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
content-store-with-probability.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#include "
content-store-with-probability.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
27
#define NS_OBJECT_ENSURE_REGISTERED_TEMPL(type, templ) \
28
static struct X##type##templ##RegistrationClass { \
29
X##type##templ##RegistrationClass() \
30
{ \
31
ns3::TypeId tid = type<templ>::GetTypeId(); \
32
tid.GetParent(); \
33
} \
34
} x_##type##templ##RegistrationVariable
35
36
namespace
ns3
{
37
namespace
ndn
{
38
39
using namespace
ndnSIM
;
40
41
namespace
cs {
42
43
// explicit instantiation and registering
47
template
class
ContentStoreWithProbability<lru_policy_traits>;
48
52
template
class
ContentStoreWithProbability<random_policy_traits>;
53
57
template
class
ContentStoreWithProbability<fifo_policy_traits>;
58
62
template
class
ContentStoreWithProbability<lfu_policy_traits>;
63
64
NS_OBJECT_ENSURE_REGISTERED_TEMPL
(ContentStoreWithProbability, lru_policy_traits);
65
NS_OBJECT_ENSURE_REGISTERED_TEMPL
(ContentStoreWithProbability, random_policy_traits);
66
NS_OBJECT_ENSURE_REGISTERED_TEMPL
(ContentStoreWithProbability, fifo_policy_traits);
67
68
NS_OBJECT_ENSURE_REGISTERED_TEMPL
(ContentStoreWithProbability, lfu_policy_traits);
69
70
#ifdef DOXYGEN
71
// /**
72
// * \brief Content Store with freshness implementing LRU cache replacement policy
73
// */
74
class
Probability::Lru
:
public
ContentStoreWithProbability<lru_policy_traits>
{
75
};
76
80
class
Probability::Fifo
:
public
ContentStoreWithProbability<fifo_policy_traits>
{
81
};
82
86
class
Probability::Random
:
public
ContentStoreWithProbability<random_policy_traits>
{
87
};
88
92
class
Probability::Lfu
:
public
ContentStoreWithProbability<lfu_policy_traits>
{
93
};
94
95
#endif
96
97
}
// namespace cs
98
}
// namespace ndn
99
}
// namespace ns3
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::cs::Probability::Lru
Content Store with freshness implementing LRU cache replacement policy.
Definition:
content-store-with-probability.cpp:74
ns3::ndn::cs::Probability::Random
Content Store with freshness implementing Random cache replacement policy.
Definition:
content-store-with-probability.cpp:86
ns3::ndn::cs::ContentStoreWithProbability< lru_policy_traits >
NS_OBJECT_ENSURE_REGISTERED_TEMPL
#define NS_OBJECT_ENSURE_REGISTERED_TEMPL(type, templ)
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-with-probability.cpp:27
content-store-with-probability.hpp
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ndnSIM
ns3::ndn::cs::Probability::Fifo
Content Store with freshness implementing FIFO cache replacement policy.
Definition:
content-store-with-probability.cpp:80
ns3::ndn::cs::Probability::Lfu
Content Store with freshness implementing Least Frequently Used cache replacement policy...
Definition:
content-store-with-probability.cpp:92
ndnSIM
model
cs
content-store-with-probability.cpp
Generated on Tue Aug 7 2018 16:19:16 for ndnSIM by
1.8.14