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
strip-space.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_CXX_SECURITY_TRANSFORM_STRIP_SPACE_HPP
23
#define NDN_CXX_SECURITY_TRANSFORM_STRIP_SPACE_HPP
24
25
#include "
transform-base.hpp
"
26
#include <bitset>
27
#include <climits>
28
29
namespace
ndn
{
30
namespace
security
{
31
namespace
transform {
32
38
class
StripSpace
:
public
Transform
39
{
40
public
:
41
static
const
char
*
const
DEFAULT_WHITESPACES
;
42
43
explicit
44
StripSpace
(
const
char
* whitespaces = DEFAULT_WHITESPACES);
45
46
private
:
47
virtual
size_t
48
convert(
const
uint8_t* buf,
size_t
buflen)
final
;
49
50
private
:
51
static
constexpr
size_t
CHARMAP_SIZE = 1 << CHAR_BIT;
52
std::bitset<CHARMAP_SIZE> m_isWhitespace;
// char => whether char is whitespace
53
};
54
58
unique_ptr<Transform>
59
stripSpace
(
const
char
* whitespaces =
StripSpace::DEFAULT_WHITESPACES
);
60
61
}
// namespace transform
62
}
// namespace security
63
}
// namespace ndn
64
65
#endif // NDN_CXX_SECURITY_TRANSFORM_STRIP_SPACE_HPP
ndn::security::transform::StripSpace::StripSpace
StripSpace(const char *whitespaces=DEFAULT_WHITESPACES)
Definition:
strip-space.cpp:30
transform-base.hpp
There are three types of module in a transformation chain: Source, Transform, and Sink...
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::transform::stripSpace
unique_ptr< Transform > stripSpace(const char *whitespaces)
constructs a StripSpace transform
Definition:
strip-space.cpp:55
ndn::security::transform::StripSpace
strip whitespace characters from a stream
Definition:
strip-space.hpp:38
ndn::security::transform::Transform
Abstraction of an intermediate transformation module.
Definition:
transform-base.hpp:185
security
ndn::security::transform::StripSpace::DEFAULT_WHITESPACES
static const char *const DEFAULT_WHITESPACES
Definition:
strip-space.hpp:41
ndnSIM
ndn-cxx
src
security
transform
strip-space.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13