codedMixedFvPatchField, codedFixedValuePointPatchField: Updated and simplified using the new CodedBase class
reducing code duplication and maintenance overhead.
This commit is contained in:
@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user