18 const std::string & name,
19 const std::string & separator)
20 : _tag(tag), _name(
name), _combined(tag +
name), _separator(separator)
28 std::size_t idx0 =
name.find(
"::");
29 std::size_t idx1 =
name.rfind(
"/");
32 if (idx0 != std::string::npos)
39 else if (idx1 != std::string::npos)
57 : _tag(rhs._tag), _name(rhs._name), _combined(rhs._combined), _separator(rhs._separator)
75 return !(*
this == rhs);
88 return stream << obj.
_name;
97 mooseError(
"The supplied name cannot be empty, to allow for any name to be supplied use the " 100 mooseError(
"The supplied tag cannot be empty, to allow for any tag to be supplied use the '*' " std::string name(const ElemQuality q)
const std::string & name() const
Return the name.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
virtual void check()
Check that the name and tag are supplied correctly.
bool operator<(const MooseObjectName &rhs) const
bool operator!=(const MooseObjectName &rhs) const
std::ostream & operator<<(std::ostream &stream, const MooseObjectName &obj)
bool operator==(const MooseObjectName &rhs) const
Comparison operators.
MooseObjectName()
A constructor for use by MooseObjectParameterName.
A class for storing the names of MooseObject by tag and object name.