NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-network-region-table-helper.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDNSIM_HELPER_NDN_NETWORK_REGION_TABLE_HELPER_HPP
21 #define NDNSIM_HELPER_NDN_NETWORK_REGION_TABLE_HELPER_HPP
22 
23 #include "ns3/node-container.h"
24 
25 #include "ns3/ndnSIM/model/ndn-common.hpp"
26 
27 namespace ns3 {
28 namespace ndn {
29 
39 {
40 public:
41  static void
42  AddRegionName(Ptr<Node> node, const Name& regionName);
43 
44  static void
45  AddRegionName(NodeContainer& c, const Name& regionName);
46 
47  static void
48  AddRegionName(Ptr<Node> node, std::initializer_list<Name> regionNames);
49 
50  static void
51  AddRegionName(const NodeContainer& c, std::initializer_list<Name> regionNames);
52 
53  static void
54  RemoveRegionName(Ptr<Node> node, const Name& regionName);
55 
56  static void
57  RemoveRegionName(const NodeContainer& c, const Name& regionName);
58 
59  static void
60  RemoveRegionName(Ptr<Node> node, std::initializer_list<Name> regionNames);
61 
62  static void
63  RemoveRegionName(const NodeContainer& c, std::initializer_list<Name> regionNames);
64 
65  static void
66  EmptyNetworkRegionTable(Ptr<Node> node);
67 
68  static void
69  EmptyNetworkRegionTable(const NodeContainer& c);
70 };
71 
72 } // namespace ndn
73 } // namespace ns3
74 
75 #endif // NDNSIM_HELPER_NDN_NETWORK_REGION_TABLE_HELPER_HPP
Copyright (c) 2011-2015 Regents of the University of California.
static void AddRegionName(Ptr< Node > node, const Name &regionName)
Copyright (c) 2011-2015 Regents of the University of California.
static void RemoveRegionName(Ptr< Node > node, const Name &regionName)