Go to the documentation of this file.
18 template <
typename Key>
44 return black.count(element) > 0 || (!
white.empty() &&
white.count(element) == 0);
61 os <<
"Blacklist (" << bw.
black.size() <<
"): ";
62 for (
const auto& e : bw.
black)
68 os <<
"Whitelist (" << bw.
white.size() <<
"):";
69 for (
const auto& e : bw.
white)
friend std::ostream & operator<<(std::ostream &os, const BlackWhitelist< K > &bw)
bool isExcluded(const Key &element) const
An element is excluded if (1) it is in the blacklist, or (2) it is not in the non-empty whitelist.
std::set< Key > black
Elements in this list are always excluded.
bool isIncluded(const Key &element) const
An element is included if (1) it is not in the blacklist, and (2) the whitelist is empty or it contai...
BlackWhitelist()=default
Construct an empty blacklist and whitelist.
std::set< Key > white
If not empty, only these elements are included.
A combination of blacklist and whitelist.
std::ostream & operator<<(std::ostream &os, const PythonApplicationManager::Paths &paths)
This file offers overloads of toIce() and fromIce() functions for STL container types.