NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::NetworkPredicateBase Class Referenceabstract

#include <network-predicate.hpp>

Inheritance diagram for nfd::NetworkPredicateBase:
Collaboration diagram for nfd::NetworkPredicateBase:

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ NetworkPredicateBase()

nfd::NetworkPredicateBase::NetworkPredicateBase ( )

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

References clear().

◆ ~NetworkPredicateBase()

nfd::NetworkPredicateBase::~NetworkPredicateBase ( )
virtualdefault

Member Function Documentation

◆ clear()

void nfd::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().

◆ parseWhitelist()

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

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

References m_whitelist.

Referenced by nfd::face::TcpFactory::processConfig().

◆ parseBlacklist()

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

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

References m_blacklist.

Referenced by nfd::face::TcpFactory::processConfig().

◆ assign()

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.

References m_blacklist, and m_whitelist.

Referenced by nfd::face::TcpFactory::processConfig().

◆ operator==()

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

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

References m_blacklist, and m_whitelist.

Referenced by operator!=().

◆ operator!=()

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

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

References operator==().

Member Data Documentation

◆ m_whitelist

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

◆ m_blacklist

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

The documentation for this class was generated from the following files: