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
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
regex-pseudo-matcher.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24
#ifndef NDN_UTIL_REGEX_REGEX_PSEUDO_MATCHER_HPP
25
#define NDN_UTIL_REGEX_REGEX_PSEUDO_MATCHER_HPP
26
27
#include "../../common.hpp"
28
#include "
regex-matcher.hpp
"
29
30
namespace
ndn
{
31
32
class
RegexPseudoMatcher
:
public
RegexMatcher
33
{
34
public
:
35
RegexPseudoMatcher
();
36
37
virtual
38
~RegexPseudoMatcher
()
39
{
40
}
41
42
virtual
void
43
compile
()
44
{
45
}
46
47
void
48
setMatchResult
(
const
std::string& str);
49
50
void
51
resetMatchResult
();
52
};
53
54
inline
55
RegexPseudoMatcher::RegexPseudoMatcher
()
56
:
RegexMatcher
(
""
,
EXPR_PSEUDO
)
57
{
58
}
59
60
inline
void
61
RegexPseudoMatcher::setMatchResult
(
const
std::string& str)
62
{
63
m_matchResult
.push_back(
name::Component
(reinterpret_cast<const uint8_t*>(str.c_str()),
64
str.size()));
65
}
66
67
inline
void
68
RegexPseudoMatcher::resetMatchResult
()
69
{
70
m_matchResult
.clear();
71
}
72
73
74
}
// namespace ndn
75
76
#endif // NDN_UTIL_REGEX_REGEX_PSEUDO_MATCHER_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::RegexPseudoMatcher::~RegexPseudoMatcher
virtual ~RegexPseudoMatcher()
Definition:
regex-pseudo-matcher.hpp:38
ndn::RegexPseudoMatcher::compile
virtual void compile()
Compile the regular expression to generate the more matchers when necessary.
Definition:
regex-pseudo-matcher.hpp:43
ndn::RegexMatcher::EXPR_PSEUDO
Definition:
regex-matcher.hpp:54
regex-matcher.hpp
ndn::RegexPseudoMatcher::resetMatchResult
void resetMatchResult()
Definition:
regex-pseudo-matcher.hpp:68
ndn::RegexMatcher::m_matchResult
std::vector< name::Component > m_matchResult
Definition:
regex-matcher.hpp:100
ndn::RegexPseudoMatcher::setMatchResult
void setMatchResult(const std::string &str)
Definition:
regex-pseudo-matcher.hpp:61
ndn::name::Component
Component holds a read-only name component value.
Definition:
name-component.hpp:47
ndn::RegexPseudoMatcher::RegexPseudoMatcher
RegexPseudoMatcher()
Definition:
regex-pseudo-matcher.hpp:55
ndn::RegexPseudoMatcher
Definition:
regex-pseudo-matcher.hpp:32
ndn::RegexMatcher
Definition:
regex-matcher.hpp:34
ndnSIM
ndn-cxx
src
util
regex
regex-pseudo-matcher.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13