15 const std::set<ExecFlagType> & flags)
16 : _execute_flags(flags)
26 for (
const auto & pair : item->
_pairs)
28 if (type_check &&
type() != pair.second->type())
33 "' and cannot be connected to the parameter (",
35 ") with a different type of '",
39 _pairs.emplace_back(pair.first, pair.second);
48 unsigned int index = 0;
50 std::ostringstream oss;
51 for (
const auto & pair :
_pairs)
59 pair.second->print(oss);
60 oss <<
" <" << pair.second->type() <<
">" <<
'\n';
69 return _pairs[0].second->type();
94 std::ostringstream oss;
96 for (
const auto & pair :
_pairs)
99 pair.second->print(oss);
100 oss <<
" <" << pair.second->type() <<
">\n";
108 return stream << obj.
dump();
std::string name(const ElemQuality q)
std::string indent(unsigned int spaces)
Create empty string for indenting.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
void connect(ControllableItem *item, bool type_check=true)
Connects the supplied item with this item to allow for multiple parameters to be changed by one...
virtual const MooseObjectParameterName & name() const
Return the name of the master parameter.
ControllableAlias(const MooseObjectParameterName &name, ControllableItem *)
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
virtual std::string dump(unsigned int indent=0) const
Returns a string displaying the parameter name and current value.
std::vector< std::pair< MooseObjectParameterName, libMesh::Parameters::Value * > > _pairs
List of names for this item.
std::ostream & operator<<(std::ostream &stream, const ControllableItem &obj)
std::string type() const
Return the type of the master parameter.
An intermediate object for building a "controllable item", where an "item" can refer to multiple inpu...
ControllableItem()
Constructor for creating an empty item (see ControllableAlias)
A class for storing an input parameter name.
virtual std::string dump(unsigned int indent=0) const override
Returns a string displaying the parameter name and current value.
virtual const MooseObjectParameterName & name() const override
Return the name of the master parameter.
MooseObjectParameterName _name