NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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:101
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 Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11