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
registered-prefix.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_DETAIL_REGISTERED_PREFIX_HPP
23
#define NDN_DETAIL_REGISTERED_PREFIX_HPP
24
25
#include "../common.hpp"
26
#include "../name.hpp"
27
#include "../interest.hpp"
28
29
#include "
interest-filter-record.hpp
"
30
#include "
mgmt/nfd/command-options.hpp
"
31
#include "
mgmt/nfd/control-parameters.hpp
"
32
33
namespace
ndn
{
34
38
class
RegisteredPrefix
: noncopyable
39
{
40
public
:
41
RegisteredPrefix
(
const
Name
& prefix,
42
shared_ptr<InterestFilterRecord> filter,
43
const
nfd::CommandOptions
& options)
44
: m_prefix(prefix)
45
, m_filter(filter)
46
, m_options(options)
47
{
48
}
49
50
const
Name
&
51
getPrefix
()
const
52
{
53
return
m_prefix;
54
}
55
56
const
shared_ptr<InterestFilterRecord>&
57
getFilter
()
const
58
{
59
return
m_filter;
60
}
61
62
const
nfd::CommandOptions
&
63
getCommandOptions
()
const
64
{
65
return
m_options;
66
}
67
68
private
:
69
Name
m_prefix;
70
shared_ptr<InterestFilterRecord> m_filter;
71
nfd::CommandOptions
m_options;
72
};
73
77
class
RegisteredPrefixId;
78
82
class
MatchRegisteredPrefixId
83
{
84
public
:
85
explicit
86
MatchRegisteredPrefixId
(
const
RegisteredPrefixId* registeredPrefixId)
87
: m_id(registeredPrefixId)
88
{
89
}
90
91
bool
92
operator()
(
const
shared_ptr<RegisteredPrefix>& registeredPrefix)
const
93
{
94
return
reinterpret_cast<
const
RegisteredPrefixId*
>
(registeredPrefix.get()) == m_id;
95
}
96
97
private
:
98
const
RegisteredPrefixId* m_id;
99
};
100
101
}
// namespace ndn
102
103
#endif // NDN_DETAIL_REGISTERED_PREFIX_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::RegisteredPrefix::getFilter
const shared_ptr< InterestFilterRecord > & getFilter() const
Definition:
registered-prefix.hpp:57
ndn::MatchRegisteredPrefixId::operator()
bool operator()(const shared_ptr< RegisteredPrefix > ®isteredPrefix) const
Definition:
registered-prefix.hpp:92
ndn::MatchRegisteredPrefixId::MatchRegisteredPrefixId
MatchRegisteredPrefixId(const RegisteredPrefixId *registeredPrefixId)
Definition:
registered-prefix.hpp:86
ndn::RegisteredPrefix
stores information about a prefix registered in NDN forwarder
Definition:
registered-prefix.hpp:38
ndn::RegisteredPrefix::getCommandOptions
const nfd::CommandOptions & getCommandOptions() const
Definition:
registered-prefix.hpp:63
ndn::RegisteredPrefix::getPrefix
const Name & getPrefix() const
Definition:
registered-prefix.hpp:51
ndn::nfd::CommandOptions
contains options for ControlCommand execution
Definition:
command-options.hpp:43
control-parameters.hpp
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
interest-filter-record.hpp
ndn::RegisteredPrefix::RegisteredPrefix
RegisteredPrefix(const Name &prefix, shared_ptr< InterestFilterRecord > filter, const nfd::CommandOptions &options)
Definition:
registered-prefix.hpp:41
command-options.hpp
ndn::MatchRegisteredPrefixId
Functor to match RegisteredPrefixId.
Definition:
registered-prefix.hpp:82
ndnSIM
ndn-cxx
src
detail
registered-prefix.hpp
Generated on Wed Jan 11 2017 18:17:13 for ndnSIM by
1.8.13