NFD: Named Data Networking Forwarding Daemon 0.7.1 documentation
rib-update.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
rib-update.hpp
"
27
28
namespace
nfd
{
29
namespace
rib {
30
31
RibUpdate::RibUpdate
()
32
{
33
34
}
35
36
std::ostream&
37
operator<<
(std::ostream& os,
const
RibUpdate::Action
action)
38
{
39
switch
(action) {
40
case
RibUpdate::REGISTER
:
41
os <<
"REGISTER"
;
42
break
;
43
case
RibUpdate::UNREGISTER
:
44
os <<
"UNREGISTER"
;
45
break
;
46
case
RibUpdate::REMOVE_FACE
:
47
os <<
"REMOVE_FACE"
;
48
break
;
49
}
50
51
return
os;
52
}
53
54
std::ostream&
55
operator<<
(std::ostream& os,
const
RibUpdate
& update)
56
{
57
os <<
"RibUpdate {\n"
;
58
os <<
" Name: "
<< update.
getName
() <<
"\n"
;
59
os <<
" Action: "
<< update.
getAction
() <<
"\n"
;
60
os <<
" "
<< update.
getRoute
() <<
"\n"
;
61
os <<
"}"
;
62
63
return
os;
64
}
65
66
67
}
// namespace rib
68
}
// namespace nfd
nfd::rib::RibUpdate::RibUpdate
RibUpdate()
Definition:
rib-update.cpp:31
nfd::rib::RibUpdate::getName
const Name & getName() const
Definition:
rib-update.hpp:101
nfd::rib::RibUpdate::UNREGISTER
Definition:
rib-update.hpp:45
nfd::rib::RibUpdate::REGISTER
Definition:
rib-update.hpp:44
nfd::rib::operator<<
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Definition:
fib-update.hpp:74
nfd::rib::RibUpdate::REMOVE_FACE
An update triggered by a face destruction notification.
Definition:
rib-update.hpp:51
nfd::rib::RibUpdate::Action
Action
Definition:
rib-update.hpp:43
nfd::rib::RibUpdate::getAction
Action getAction() const
Definition:
rib-update.hpp:88
nfd
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
nfd::rib::RibUpdate
RibUpdate.
Definition:
rib-update.hpp:40
rib-update.hpp
nfd::rib::RibUpdate::getRoute
const Route & getRoute() const
Definition:
rib-update.hpp:114
daemon
rib
rib-update.cpp
Generated on Thu Oct 8 2020 17:06:00 for NFD: Named Data Networking Forwarding Daemon by
1.8.13