34 const int &
id()
const {
return _id; }
44 operator std::string()
const {
return _name; }
56 bool operator==(
const std::string & value)
const;
57 bool operator!=(
const std::string & value)
const;
89 void setID(
const int &
id);
void setID(const int &id)
Method to change the ID of the item, but only if it is an INVALID_ID.
friend std::ostream & operator<<(std::ostream &out, const MooseEnumItem &item)
ostream operator for string printing.
const std::string & name() const
int _id
The numeric value for item.
std::string _name
Upper case name.
static const int INVALID_ID
bool operator!=(int value) const
MooseEnumItem & operator=(const MooseEnumItem &other)
std::string _raw_name
The name as provided in constructor.
bool operator==(const char *value) const
Comparison operators.
bool operator<(const MooseEnumItem &other) const
Less than operator.
bool operator==(unsigned short value) const
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
const std::string & rawName() const
bool operator!=(const char *value) const
const int & id() const
Return the numeric, name, or raw name.
Class for containing MooseEnum item information.
bool operator==(int value) const
void ErrorVector unsigned int
bool operator!=(unsigned short value) const