42 #ifndef Foam_functionObjects_fieldSelection_H 43 #define Foam_functionObjects_fieldSelection_H 58 namespace functionObjects
67 public List<fieldInfo>
72 template<
class Container>
73 bool resetFieldFiltersImpl(
const Container&
names);
106 const bool includeComponents =
false List< fieldInfo > selection_
Current field selection.
virtual bool checkSelection()
Check that all requested fielda have been found.
A HashTable with keys but without contents that is similar to std::unordered_set. ...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
virtual bool containsPattern() const
Return whether the field names contain a pattern.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
wordList selectionNames() const
Return the current field selection, in sorted order.
void addRegistered(DynamicList< fieldInfo > &set) const
Add registered objects of a given type.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
virtual bool updateSelection()
Update the selection.
const bool includeComponents_
Flag to indicate whether components are allowed.
HashSet< wordRe > filters() const
Return the current filters.
const objectRegistry & obr_
Reference to the database.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
virtual void clearSelection()
Clear the current selection.
virtual bool read(const dictionary &dict)
Read the fieldSelection data from dictionary.
const List< fieldInfo > & selection() const noexcept
The current field selection.
virtual bool resetFieldFilters(const HashSet< wordRe > &names)
Reset the field filters to the given field names.
Helper class to manage field selections.
Registry of regIOobjects.
virtual ~fieldSelection()=default
Destructor.