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
33
class
NetworkInterfaceInfo
;
34
45
class
NetworkInterfacePredicate
46
{
47
public
:
48
NetworkInterfacePredicate
();
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
nfd::NetworkInterfaceInfo
contains information about a network interface
Definition:
network-interface.hpp:41
nfd::NetworkInterfacePredicate::NetworkInterfacePredicate
NetworkInterfacePredicate()
Definition:
network-interface-predicate.cpp:34
nfd::NetworkInterfacePredicate::parseWhitelist
void parseWhitelist(const boost::property_tree::ptree &list)
Definition:
network-interface-predicate.cpp:86
common.hpp
nfd::NetworkInterfacePredicate
Represents a predicate to accept or reject a NetworkInterfaceInfo.
Definition:
network-interface-predicate.hpp:45
nfd::NetworkInterfacePredicate::clear
void clear()
Set the whitelist to "*" and clear the blacklist.
Definition:
network-interface-predicate.cpp:40
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::NetworkInterfacePredicate::operator()
bool operator()(const NetworkInterfaceInfo &nic) const
Definition:
network-interface-predicate.cpp:116
nfd::NetworkInterfacePredicate::parseBlacklist
void parseBlacklist(const boost::property_tree::ptree &list)
Definition:
network-interface-predicate.cpp:92
NetworkInterfaceInfo
NetworkInterfaceInfo
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
network-interface.cpp:51
ndnSIM
NFD
core
network-interface-predicate.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13