codedMixedFvPatchField, codedFixedValuePointPatchField: Updated and simplified using the new CodedBase class

reducing code duplication and maintenance overhead.
This commit is contained in:
Henry Weller
2020-02-07 00:05:27 +00:00
parent 6a2ecb4d04
commit a728a69c59
18 changed files with 175 additions and 499 deletions

View File

@ -86,23 +86,26 @@ class codedBase
protected:
//- Update library as required
void updateLibrary(const word& name) const;
void updateLibrary() const;
//- Adapt the context for the current object
virtual void prepare(dynamicCode&, const dynamicCodeContext&) const = 0;
//- Name of the dynamically generated CodedType
virtual const word& codeName() const = 0;
//- Return a description (type + name) for the output
virtual string description() const = 0;
//- Clear any redirected objects
virtual void clearRedirect() const = 0;
//- Get the dictionary to initialize the codeContext
virtual const dictionary& codeDict() const = 0;
//- Get the keywords associated with source code
virtual const wordList& codeKeys() const = 0;
//- Adapt the context for the current object
virtual void prepare(dynamicCode&, const dynamicCodeContext&) const = 0;
//- Clear any redirected objects
virtual void clearRedirect() const = 0;
public: