Flow123d
jenkins-Flow123d-linux-release-multijob-282
|
#include <field.hh>
Public Member Functions | |
virtual FieldBasePtr | create_field (Input::Record rec, const FieldCommon &field) |
Factory class that creates an instance of FieldBase for field with name field_name
based on data in field descriptor rec
.
Default implementation in method create_field
just reads key given by field_name
and creates instance using FieldBase<...>::function_factory
. Function should return empty SharedField (that is shared_ptr to FieldBase).
Implementation of these descendants is necessary: 1) for backward compatibility with old BCD input files 2) for setting pressure values are piezometric head values Note for future: We pass through parameter field
information about field that holds the factory which are necessary for interpreting user input and create particular field instance. It would be clearer to pass these information when the factory is assigned to a field. Moreover some information may not be set to field at all but directly passed to the factory.
|
virtual |
Default method that creates an instance of FieldBase for field.
Reads key given by field_name
and creates the field instance using FieldBase<...>::function_factory
.
Reimplemented in OldBcdInput::FieldFactory< spacedim, Value >, MultiField< spacedim, Value >::MultiFieldFactory, and FieldAddPotential< spacedim, Value >::FieldFactory.
Definition at line 475 of file field.impl.hh.