nfd::face::NetworkPredicateBase Class Referenceabstract

#include <daemon/face/network-predicate.hpp>

+ Inheritance diagram for nfd::face::NetworkPredicateBase:
+ Collaboration diagram for nfd::face::NetworkPredicateBase:

Public Member Functions

 NetworkPredicateBase ()
 
virtual ~NetworkPredicateBase ()
 
void assign (std::initializer_list< std::pair< std::string, std::string >> whitelist, std::initializer_list< std::pair< std::string, std::string >> blacklist)
 
void clear ()
 Set the whitelist to "*" and clear the blacklist. More...
 
bool operator!= (const NetworkPredicateBase &other) const
 
bool operator== (const NetworkPredicateBase &other) const
 
void parseBlacklist (const boost::property_tree::ptree &list)
 
void parseWhitelist (const boost::property_tree::ptree &list)
 

Protected Attributes

std::set< std::string > m_blacklist
 
std::set< std::string > m_whitelist
 

Detailed Description

Definition at line 36 of file network-predicate.hpp.

Constructor & Destructor Documentation

◆ NetworkPredicateBase()

nfd::face::NetworkPredicateBase::NetworkPredicateBase ( )

Definition at line 35 of file network-predicate.cpp.

◆ ~NetworkPredicateBase()

nfd::face::NetworkPredicateBase::~NetworkPredicateBase ( )
virtualdefault

Member Function Documentation

◆ assign()

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.

◆ clear()

void nfd::face::NetworkPredicateBase::clear ( )

Set the whitelist to "*" and clear the blacklist.

Definition at line 43 of file network-predicate.cpp.

◆ operator!=()

bool nfd::face::NetworkPredicateBase::operator!= ( const NetworkPredicateBase other) const
inline

Definition at line 64 of file network-predicate.hpp.

◆ operator==()

bool nfd::face::NetworkPredicateBase::operator== ( const NetworkPredicateBase other) const

Definition at line 166 of file network-predicate.cpp.

◆ parseBlacklist()

void nfd::face::NetworkPredicateBase::parseBlacklist ( const boost::property_tree::ptree &  list)

Definition at line 108 of file network-predicate.cpp.

◆ parseWhitelist()

void nfd::face::NetworkPredicateBase::parseWhitelist ( const boost::property_tree::ptree &  list)

Definition at line 102 of file network-predicate.cpp.

Member Data Documentation

◆ m_blacklist

std::set<std::string> nfd::face::NetworkPredicateBase::m_blacklist
protected

Definition at line 84 of file network-predicate.hpp.

◆ m_whitelist

std::set<std::string> nfd::face::NetworkPredicateBase::m_whitelist
protected

Definition at line 83 of file network-predicate.hpp.