NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API 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::getRoute
const Route & getRoute() const
Definition:
rib-update.hpp:114
nfd::rib::operator<<
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Definition:
fib-update.hpp:74
nfd::rib::RibUpdate
RibUpdate.
Definition:
rib-update.hpp:40
nfd::rib::RibUpdate::getName
const Name & getName() const
Definition:
rib-update.hpp:101
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::RibUpdate::UNREGISTER
Definition:
rib-update.hpp:45
nfd::rib::RibUpdate::Action
Action
Definition:
rib-update.hpp:43
rib-update.hpp
nfd::rib::RibUpdate::REGISTER
Definition:
rib-update.hpp:44
nfd::rib::RibUpdate::REMOVE_FACE
An update triggered by a face destruction notification.
Definition:
rib-update.hpp:51
nfd::rib::RibUpdate::RibUpdate
RibUpdate()
Definition:
rib-update.cpp:31
nfd::rib::RibUpdate::getAction
Action getAction() const
Definition:
rib-update.hpp:88
ndnSIM
NFD
rib
rib-update.cpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14