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 ()
 
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...
 
void parseBlacklist (const boost::property_tree::ptree &list)
 
void parseWhitelist (const boost::property_tree::ptree &list)
 

Protected Member Functions

 NetworkPredicateBase (const NetworkPredicateBase &)=delete
 
 NetworkPredicateBase (NetworkPredicateBase &&)=default
 
 ~NetworkPredicateBase ()=default
 
NetworkPredicateBaseoperator= (const NetworkPredicateBase &)=delete
 
NetworkPredicateBaseoperator= (NetworkPredicateBase &&)=default
 

Protected Attributes

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

Friends

bool operator== (const NetworkPredicateBase &lhs, const NetworkPredicateBase &rhs)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ NetworkPredicateBase() [1/3]

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

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

◆ NetworkPredicateBase() [2/3]

nfd::face::NetworkPredicateBase::NetworkPredicateBase ( const NetworkPredicateBase )
protecteddelete

◆ NetworkPredicateBase() [3/3]

nfd::face::NetworkPredicateBase::NetworkPredicateBase ( NetworkPredicateBase &&  )
protecteddefault

◆ ~NetworkPredicateBase()

nfd::face::NetworkPredicateBase::~NetworkPredicateBase ( )
protecteddefault

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 113 of file network-predicate.cpp.

◆ clear()

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

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

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

◆ operator=() [1/2]

NetworkPredicateBase& nfd::face::NetworkPredicateBase::operator= ( const NetworkPredicateBase )
protecteddelete

◆ operator=() [2/2]

NetworkPredicateBase& nfd::face::NetworkPredicateBase::operator= ( NetworkPredicateBase &&  )
protecteddefault

◆ parseBlacklist()

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

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

◆ parseWhitelist()

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

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

Friends And Related Function Documentation

◆ operator==

bool operator== ( const NetworkPredicateBase lhs,
const NetworkPredicateBase rhs 
)
friend

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

Member Data Documentation

◆ m_blacklist

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

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

◆ m_whitelist

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

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