#include <network-predicate.hpp>
Public Member Functions | |
NetworkPredicateBase () | |
virtual | ~NetworkPredicateBase () |
void | clear () |
Set the whitelist to "*" and clear the blacklist. More... | |
void | parseWhitelist (const boost::property_tree::ptree &list) |
void | parseBlacklist (const boost::property_tree::ptree &list) |
void | assign (std::initializer_list< std::pair< std::string, std::string >> whitelist, std::initializer_list< std::pair< std::string, std::string >> blacklist) |
bool | operator== (const NetworkPredicateBase &other) const |
bool | operator!= (const NetworkPredicateBase &other) const |
Protected Attributes | |
std::set< std::string > | m_whitelist |
std::set< std::string > | m_blacklist |
Definition at line 36 of file network-predicate.hpp.
nfd::face::NetworkPredicateBase::NetworkPredicateBase | ( | ) |
Definition at line 35 of file network-predicate.cpp.
References clear().
|
virtualdefault |
void nfd::face::NetworkPredicateBase::clear | ( | ) |
Set the whitelist to "*" and clear the blacklist.
Definition at line 43 of file network-predicate.cpp.
References m_blacklist, and m_whitelist.
Referenced by NetworkPredicateBase().
void nfd::face::NetworkPredicateBase::parseWhitelist | ( | const boost::property_tree::ptree & | list | ) |
Definition at line 102 of file network-predicate.cpp.
References m_whitelist.
void nfd::face::NetworkPredicateBase::parseBlacklist | ( | const boost::property_tree::ptree & | list | ) |
Definition at line 108 of file network-predicate.cpp.
References m_blacklist.
void nfd::face::NetworkPredicateBase::assign | ( | std::initializer_list< std::pair< std::string, std::string >> | whitelist, |
std::initializer_list< std::pair< std::string, std::string >> | blacklist | ||
) |
Definition at line 114 of file network-predicate.cpp.
References m_blacklist, and m_whitelist.
bool nfd::face::NetworkPredicateBase::operator== | ( | const NetworkPredicateBase & | other | ) | const |
Definition at line 166 of file network-predicate.cpp.
References m_blacklist, and m_whitelist.
Referenced by operator!=().
|
inline |
Definition at line 64 of file network-predicate.hpp.
References operator==().
|
protected |
Definition at line 83 of file network-predicate.hpp.
Referenced by assign(), clear(), nfd::face::NetworkInterfacePredicate::operator()(), nfd::face::IpAddressPredicate::operator()(), operator==(), and parseWhitelist().
|
protected |
Definition at line 84 of file network-predicate.hpp.
Referenced by assign(), clear(), nfd::face::NetworkInterfacePredicate::operator()(), nfd::face::IpAddressPredicate::operator()(), operator==(), and parseBlacklist().