42#ifndef Foam_functionObjects_fieldSelection_H
43#define Foam_functionObjects_fieldSelection_H
67 public List<fieldInfo>
72 template<
class Container>
73 bool resetFieldFiltersImpl(
const Container&
names);
76 fieldSelection(
const fieldSelection&) =
delete;
103 explicit fieldSelection
106 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.
bool set(const label i, bool val=true)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const List< fieldInfo > & selection() const noexcept
The current field selection.
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.
virtual bool read(const dictionary &dict)
Read the fieldSelection data from dictionary.
virtual bool resetFieldFilters(const HashSet< wordRe > &names)
Reset the field filters to the given field names.
HashSet< wordRe > filters() const
Return the current 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.
wordList selectionNames() const
Return the current field selection, in sorted order.
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.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
List< word > wordList
List of word.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.