nfd::NetworkPredicateBase Class Referenceabstract

#include <core/network-predicate.hpp>

+ Inheritance diagram for nfd::NetworkPredicateBase:
+ Collaboration diagram for nfd::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 34 of file network-predicate.hpp.

Constructor & Destructor Documentation

nfd::NetworkPredicateBase::NetworkPredicateBase ( )

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

nfd::NetworkPredicateBase::~NetworkPredicateBase ( )
virtualdefault

Member Function Documentation

void nfd::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 109 of file network-predicate.cpp.

void nfd::NetworkPredicateBase::clear ( )

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

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

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

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

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

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

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

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

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

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

Member Data Documentation

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

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

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

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