42#ifndef functionObjects_fieldSelection_H
43#define functionObjects_fieldSelection_H
57namespace functionObjects
66 public List<fieldInfo>
103 const bool includeComponents =
false
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A HashTable with keys but without contents that is similar to std::unordered_set.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Helper class to manage field selections.
virtual bool updateSelection()
Update the selection.
virtual bool containsPattern() const
Return whether the field names contain a pattern.
virtual bool checkSelection()
Check that all requested fielda have been found.
const objectRegistry & obr_
Reference to the database.
const bool includeComponents_
Flag to indicate whether components are allowed.
const List< fieldInfo > & selection() const
virtual bool read(const dictionary &dict)
Read the fieldSelection data from dictionary.
wordHashSet selectionNames() const
Return the current field selection.
virtual bool resetFieldFilters(const HashSet< wordRe > &names)
Reset the field filters to the given field names.
HashSet< wordRe > filters() const
Return the cuurent filters.
virtual ~fieldSelection()=default
Destructor.
virtual void clearSelection()
Clear the current selection.
void addRegistered(DynamicList< fieldInfo > &set) const
Add registered objects of a given type.
List< fieldInfo > selection_
Current field selection.
Registry of regIOobjects.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.