NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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
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
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
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
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
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
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
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
in-memory-storage-entry.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
in-memory-storage-entry.hpp
"
23
24
namespace
ndn
{
25
namespace
util {
26
27
InMemoryStorageEntry::InMemoryStorageEntry
()
28
: m_isFresh(true)
29
{
30
}
31
32
void
33
InMemoryStorageEntry::release
()
34
{
35
m_dataPacket.reset();
36
m_markStaleEventId.reset();
37
}
38
39
void
40
InMemoryStorageEntry::setData
(
const
Data
& data)
41
{
42
m_dataPacket = data.shared_from_this();
43
m_isFresh =
true
;
44
}
45
46
void
47
InMemoryStorageEntry::setMarkStaleEventId
(unique_ptr<scheduler::ScopedEventId>&& markStaleEventId)
48
{
49
m_markStaleEventId = std::move(markStaleEventId);
50
}
51
52
void
53
InMemoryStorageEntry::markStale
()
54
{
55
m_isFresh =
false
;
56
}
57
58
}
// namespace util
59
}
// namespace ndn
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::util::InMemoryStorageEntry::release
void release()
Releases reference counts on shared objects.
Definition:
in-memory-storage-entry.cpp:33
ndn::util::InMemoryStorageEntry::markStale
void markStale()
Disable the data from satisfying interest with MustBeFresh.
Definition:
in-memory-storage-entry.cpp:53
in-memory-storage-entry.hpp
ndn::util::InMemoryStorageEntry::setMarkStaleEventId
void setMarkStaleEventId(unique_ptr< scheduler::ScopedEventId > &&eventId)
Set eventId for the markStale event.
Definition:
in-memory-storage-entry.cpp:47
ndn::util::InMemoryStorageEntry::InMemoryStorageEntry
InMemoryStorageEntry()
Create an entry.
Definition:
in-memory-storage-entry.cpp:27
ndn::Data
represents a Data packet
Definition:
data.hpp:37
ndn::util::InMemoryStorageEntry::setData
void setData(const Data &data)
Changes the content of in-memory storage entry.
Definition:
in-memory-storage-entry.cpp:40
ndnSIM
ndn-cxx
src
util
in-memory-storage-entry.cpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13