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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
j
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
_
a
c
e
i
r
s
t
v
+
Enumerator
a
c
d
e
f
i
k
l
m
n
p
r
s
u
v
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
o
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
a
d
e
f
i
l
m
n
o
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
content-store-nocache.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#include "
content-store-nocache.hpp
"
21
22
#include "ns3/log.h"
23
#include "ns3/packet.h"
24
25
NS_LOG_COMPONENT_DEFINE(
"ndn.cs.Nocache"
);
26
27
namespace
ns3
{
28
namespace
ndn
{
29
namespace
cs {
30
31
NS_OBJECT_ENSURE_REGISTERED
(
Nocache
);
32
33
TypeId
34
Nocache::GetTypeId
(
void
)
35
{
36
static
TypeId tid = TypeId(
"ns3::ndn::cs::Nocache"
)
37
.SetGroupName(
"Ndn"
)
38
.SetParent<
ContentStore
>()
39
.AddConstructor<Nocache>();
40
41
return
tid;
42
}
43
44
Nocache::Nocache
()
45
{
46
}
47
48
Nocache::~Nocache
()
49
{
50
}
51
52
shared_ptr<Data>
53
Nocache::Lookup
(shared_ptr<const Interest> interest)
54
{
55
this->
m_cacheMissesTrace
(interest);
56
return
0;
57
}
58
59
bool
60
Nocache::Add
(shared_ptr<const Data> data)
61
{
62
return
false
;
63
}
64
65
void
66
Nocache::Print
(std::ostream& os)
const
67
{
68
}
69
70
uint32_t
71
Nocache::GetSize
()
const
72
{
73
return
0;
74
}
75
76
Ptr<cs::Entry>
77
Nocache::Begin
()
78
{
79
return
0;
80
}
81
82
Ptr<cs::Entry>
83
Nocache::End
()
84
{
85
return
0;
86
}
87
88
Ptr<cs::Entry>
Nocache::Next
(Ptr<cs::Entry>)
89
{
90
return
0;
91
}
92
93
}
// namespace cs
94
}
// namespace ndn
95
}
// namespace ns3
ns3::ndn::cs::Nocache::Add
virtual bool Add(shared_ptr< const Data > data)
Add a new content to the content store.
Definition:
content-store-nocache.cpp:60
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::cs::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(Nocache)
ns3::ndn::cs::Nocache::End
virtual Ptr< cs::Entry > End()
Return item next after last (no order guaranteed)
Definition:
content-store-nocache.cpp:83
ns3::ndn::ContentStore::m_cacheMissesTrace
TracedCallback< shared_ptr< const Interest > > m_cacheMissesTrace
trace of cache misses
Definition:
ndn-content-store.hpp:189
Nocache
ndn cs Nocache
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-nocache.cpp:25
ns3::ndn::cs::Nocache::Lookup
virtual shared_ptr< Data > Lookup(shared_ptr< const Interest > interest)
Find corresponding CS entry for the given interest.
Definition:
content-store-nocache.cpp:53
ns3::ndn::cs::Nocache::GetTypeId
static TypeId GetTypeId()
Interface ID.
Definition:
content-store-nocache.cpp:34
ns3::ndn::cs::Nocache::Nocache
Nocache()
Default constructor.
Definition:
content-store-nocache.cpp:44
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
content-store-nocache.hpp
ns3::ndn::cs::Nocache::Begin
virtual Ptr< cs::Entry > Begin()
Return first element of content store (no order guaranteed)
Definition:
content-store-nocache.cpp:77
ns3::ndn::cs::Nocache::Print
virtual void Print(std::ostream &os) const
Print out content store entries.
Definition:
content-store-nocache.cpp:66
ns3::ndn::cs::Nocache::~Nocache
virtual ~Nocache()
Virtual destructor.
Definition:
content-store-nocache.cpp:48
ns3::ndn::cs::Nocache::Next
virtual Ptr< cs::Entry > Next(Ptr< cs::Entry >)
Definition:
content-store-nocache.cpp:88
ns3::ndn::cs::Nocache::GetSize
virtual uint32_t GetSize() const
Get number of entries in content store.
Definition:
content-store-nocache.cpp:71
ns3::ndn::ContentStore
Base class for NDN content store.
Definition:
ndn-content-store.hpp:100
ndnSIM
model
cs
content-store-nocache.cpp
Generated on Sun Feb 24 2019 22:16:05 for ndnSIM by
1.8.15