FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
b
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
Functions
d
f
g
l
m
n
o
p
t
v
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
c
e
g
h
k
m
n
o
r
s
Related Functions
c
d
e
h
i
m
o
p
r
s
v
Source
Files
Symbols
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
singular_db_funcs.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Cisco and/or its affiliates.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
#ifndef __VOM_INST_DB_FUNCS_H__
17
#define __VOM_INST_DB_FUNCS_H__
18
19
#include <ostream>
20
21
#include "
singular_db.hpp
"
22
23
/**
24
* A set of helper function to iterate over objects in the DB.
25
* These functions are delcared not as DB member functions so that
26
* the template instatiation of the DB does not require the definitions
27
* of the functions used to be declared.
28
*/
29
namespace
VOM
{
30
/**
31
* Print each of the objects in the DB into the stream provided
32
*/
33
template
<
typename
DB>
34
void
35
db_dump
(
const
DB& db, std::ostream& os)
36
{
37
for
(
const
auto
entry : db) {
38
os <<
"key: "
<< entry.first << std::endl;
39
os <<
" "
<< entry.second.lock()->to_string() << std::endl;
40
}
41
}
42
};
43
44
/*
45
* fd.io coding-style-patch-verification: OFF
46
*
47
* Local Variables:
48
* eval: (c-set-style "mozilla")
49
* End:
50
*/
51
52
#endif
VOM
The VPP Object Model (VOM) library.
Definition:
acl_binding.cpp:19
VOM::db_dump
void db_dump(const DB &db, std::ostream &os)
Print each of the objects in the DB into the stream provided.
Definition:
singular_db_funcs.hpp:35
singular_db.hpp
extras
deprecated
vom
vom
singular_db_funcs.hpp
Generated on Sat Jan 8 2022 10:34:48 for FD.io VPP by
1.8.17