NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
network-interface-predicate.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_CORE_NETWORK_INTERFACE_PREDICATE_HPP
27 #define NFD_CORE_NETWORK_INTERFACE_PREDICATE_HPP
28 
29 #include "common.hpp"
30 
31 namespace nfd {
32 
34 
46 {
47 public:
49 
53  void
54  clear();
55 
56  void
57  parseWhitelist(const boost::property_tree::ptree& list);
58 
59  void
60  parseBlacklist(const boost::property_tree::ptree& list);
61 
62  bool
63  operator()(const NetworkInterfaceInfo& nic) const;
64 
65 private:
66  std::set<std::string> m_whitelist;
67  std::set<std::string> m_blacklist;
68 };
69 
70 } // namespace nfd
71 
72 #endif // NFD_CORE_NETWORK_INTERFACE_PREDICATE_HPP
contains information about a network interface
void parseWhitelist(const boost::property_tree::ptree &list)
Represents a predicate to accept or reject a NetworkInterfaceInfo.
void clear()
Set the whitelist to "*" and clear the blacklist.
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
bool operator()(const NetworkInterfaceInfo &nic) const
void parseBlacklist(const boost::property_tree::ptree &list)
NetworkInterfaceInfo
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...