35template<
class UnaryPredicate>
39 const UnaryPredicate& pred
96 [&](
const std::string& key) {
return !deny.
found(key); }
106 [&](
const std::string& key) {
return allow.
found(key); }
131 [&](
const std::string& key) {
return !deny.
match(key); }
142 [&](
const std::string& key) {
return allow.
match(key); }
150 [&](
const std::string& key)
152 const auto result = allow.
matched(key);
virtual const fileName & name() const
Return the name of the stream.
bool found(const T &val, label pos=0) const
True if the value if found in the list.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
static dictionary copyDict(const dictionary &input, const wordList &allow=wordList(), const wordList &deny=wordList())
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const fileName & name() const noexcept
The dictionary name.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
A keyword and a list of tokens is an 'entry'.
A class for handling keywords in dictionaries.
@ REGEX
Regular expression.
A List of wordRe with additional matching capabilities.
wordRe::compOption matched(const std::string &text) const
Smart match in the list of matchers, returning the match type.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
static Istream & input(Istream &is, IntRange< T > &range)
static dictionary copyFilteredDict(const dictionary &input, const UnaryPredicate &pred)