A wrapper for dictionary content, without operators that could affect inheritance patterns. More...
Public Member Functions | |
dictionaryContent ()=default | |
Default construct. More... | |
dictionaryContent (const dictionaryContent &)=default | |
Copy construct. More... | |
dictionaryContent (dictionaryContent &&)=default | |
Move construct. More... | |
dictionaryContent (const dictionary &dict) | |
Copy construct from dictionary. More... | |
dictionaryContent (dictionary &&dict) | |
Move construct from dictionary. More... | |
virtual | ~dictionaryContent ()=default |
Destructor. More... | |
const dictionary & | dict () const noexcept |
Read-access to the content. More... | |
void | dict (const dictionary &dict) |
Copy assign new content. More... | |
void | dict (dictionary &&dict) |
Move assign new content. More... | |
void | operator= (const dictionaryContent &)=delete |
No copy assignment. More... | |
void | operator= (dictionaryContent &&)=delete |
No move assignment. More... | |
Static Public Member Functions | |
static dictionary | copyDict (const dictionary &input, const wordList &allow=wordList(), const wordList &deny=wordList()) |
static dictionary | copyDict (const dictionary &input, const wordRes &allow, const wordRes &deny=wordRes()) |
A wrapper for dictionary content, without operators that could affect inheritance patterns.
Definition at line 49 of file dictionaryContent.H.
|
default |
Default construct.
|
default |
Copy construct.
|
default |
Move construct.
|
inlineexplicit |
Copy construct from dictionary.
Definition at line 70 of file dictionaryContent.H.
|
inlineexplicit |
Move construct from dictionary.
Definition at line 76 of file dictionaryContent.H.
|
virtualdefault |
Destructor.
|
static |
Copy construct a dictionary, filtered by simple allow/deny lists
An empty 'allow' list accepts everything not in the 'deny' list.
Definition at line 77 of file dictionaryContent.C.
References Foam::copyFilteredDict(), UList< T >::empty(), UList< T >::found(), and Foam::input().
|
static |
Copy construct a dictionary, filtered by a combination of allow/deny lists
An empty 'allow' list accepts everything not in the 'deny' list. A literal match has higher priority over a regex match.
input: ( abc apple wall wall1 wall2 ) allow: ( abc def "wall.*" ) deny: ( "[ab].*" wall ) result: (abc wall1 wall2)
Definition at line 112 of file dictionaryContent.C.
References Foam::copyFilteredDict(), UList< T >::empty(), Foam::input(), wordRe::LITERAL, wordRes::match(), wordRes::matched(), and wordRe::REGEX.
|
inlinenoexcept |
Read-access to the content.
Definition at line 125 of file dictionaryContent.H.
Referenced by dictionaryContent::dict(), codedFunctionObject::redirectFunctionObject(), codedFixedValueFvPatchField< Type >::redirectPatchField(), codedMixedFvPatchField< Type >::redirectPatchField(), and codedFixedValuePointPatchField< Type >::redirectPatchField().
|
inline |
Copy assign new content.
Definition at line 131 of file dictionaryContent.H.
References dictionaryContent::dict().
|
inline |
Move assign new content.
Definition at line 137 of file dictionaryContent.H.
References dictionaryContent::dict().
|
delete |
No copy assignment.
|
delete |
No move assignment.