NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 
32 {
33 
34 }
35 
36 std::ostream&
37 operator<<(std::ostream& os, const RibUpdate::Action action)
38 {
39  switch (action) {
41  os << "REGISTER";
42  break;
44  os << "UNREGISTER";
45  break;
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
const Route & getRoute() const
Definition: rib-update.hpp:114
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Definition: fib-update.hpp:74
Action getAction() const
Definition: rib-update.hpp:88
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
const Name & getName() const
Definition: rib-update.hpp:101
An update triggered by a face destruction notification.
Definition: rib-update.hpp:51