Flow123d
release_3.0.0-973-g92f55e826
|
Go to the documentation of this file.
21 #include <boost/algorithm/string/replace.hpp>
28 OLD_ASSERT(&add_field==found_field,
"Another field of the same name exists when adding field: %s\n",
29 add_field.
name().c_str());
39 for(
auto field_ptr : other.
field_list) this->operator +=(*field_ptr);
47 for(
auto name : names) set += (*this)[name];
53 FieldSet FieldSet::subset( FieldFlag::Flags::Mask mask)
const {
63 string rec_name = equation_name +
":Data";
80 std::shared_ptr<Input::Type::TypeBase> field_type_ptr;
92 if (default_val !=
"") {
93 boost::replace_all(default_val,
"\"",
"\\\"");
134 auto &
field = (*this)[dest_field_name];
150 if (found_field)
return *found_field;
152 THROW(ExcUnknownField() << FieldCommon::EI_Field(field_name));
158 bool changed_all=
false;
166 bool changed_all=
false;
181 bool is_jump =
false;
FieldCommon & units(const UnitSI &units)
Set basic units of the field.
FieldCommon & operator[](const std::string &field_name) const
bool is_jump_time() const
bool set_time(const TimeStep &time, LimitSide limit_side)
bool is_constant(Region reg) const
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library.
virtual void copy_from(const FieldCommon &other)=0
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.
virtual bool set_time(const TimeStep &time, LimitSide limit_side)=0
FieldCommon & flags(FieldFlag::Flags::Mask mask)
std::ostream & operator<<(std::ostream &stream, const FieldSet &set)
static string field_value_shape()
static string field_unit()
static IT::Record field_descriptor_record(const string &record_name)
std::vector< FieldCommon * > field_list
List of all fields.
virtual std::string get_value_attribute() const =0
Representation of one time step..
Common abstract parent of all Field<...> classes.
static const std::string field_descriptor_record_description(const string &record_name)
Container for various descendants of FieldCommonBase.
bool is_multifield() const
FieldCommon & input_default(const string &input_default)
virtual IT::Instance get_input_type()=0
static string field_default_value()
virtual IT::Array get_multifield_input_type()=0
static constexpr Mask declare_input
The field can be set from input. The key in input field descriptor is declared. (default on)
const std::string & input_name() const
void set_field(const std::string &dest_field_name, FieldCommon &source)
FieldCommon & description(const string &description)
Input::Type::Record make_field_descriptor_type(const std::string &equation_name) const
virtual bool is_constant(Region reg)=0
FieldCommon * field(const std::string &field_name) const
FieldCommon & name(const string &name)