MooseEnumItem that automatically creates the ID and doesn't allow the ID to be assigned. More...
#include <ReporterMode.h>
Public Member Functions | |
ReporterMode (const std::string &key) | |
bool | operator< (const MooseEnumItem &other) const |
Less than operator. More... | |
void | setID (const int &id) |
Method to change the ID of the item, but only if it is an INVALID_ID. More... | |
const int & | id () const |
Return the numeric, name, or raw name. More... | |
const std::string & | name () const |
const std::string & | rawName () const |
operator int () const | |
Operator to allow this class to be used directly as a string for int. More... | |
operator std::string () const | |
bool | operator== (const char *value) const |
Comparison operators. More... | |
bool | operator== (const std::string &value) const |
bool | operator== (int value) const |
bool | operator== (unsigned short value) const |
bool | operator== (const MooseEnumItem &) const |
bool | operator!= (const char *value) const |
bool | operator!= (const std::string &value) const |
bool | operator!= (int value) const |
bool | operator!= (unsigned short value) const |
bool | operator!= (const MooseEnumItem &) const |
Static Public Attributes | |
static const int | INVALID_ID = std::numeric_limits<int>::min() |
Static Private Attributes | |
static int | ID_COUNTER = 0 |
MooseEnumItem that automatically creates the ID and doesn't allow the ID to be assigned.
This protects user from hitting an ID collision when creating custom modes.
Definition at line 44 of file ReporterMode.h.
ReporterMode::ReporterMode | ( | const std::string & | key | ) |
Definition at line 16 of file ReporterMode.C.
|
inlineinherited |
Return the numeric, name, or raw name.
Definition at line 34 of file MooseEnumItem.h.
Referenced by MooseEnumBase::addEnumerationItem(), AttribExecOns::AttribExecOns(), MooseEnum::compareCurrent(), MooseEnumBase::find(), MooseEnum::getEnum(), MooseEnum::isValid(), MooseEnum::operator int(), MooseEnumItem::operator!=(), MooseEnumItem::operator==(), and MooseEnumItem::setID().
|
inlineinherited |
Definition at line 35 of file MooseEnumItem.h.
Referenced by MooseEnumBase::addEnumerationItem(), MooseEnumBase::checkDeprecated(), MooseEnum::compareCurrent(), TransientBase::constrainDTFromMultiApp(), Moose::createMapFromVectorAndMultiMooseEnum(), MooseEnumBase::find(), FEProblemBase::joinAndFinalize(), MooseEnumItem::operator!=(), MooseEnum::operator!=(), MooseEnumItem::operator==(), MooseEnum::operator==(), and ComputeDiracThread::printGeneralExecutionInformation().
|
inlineinherited |
Operator to allow this class to be used directly as a string for int.
Definition at line 43 of file MooseEnumItem.h.
|
inlineinherited |
Definition at line 44 of file MooseEnumItem.h.
|
inherited |
Definition at line 43 of file MooseEnumItem.C.
|
inherited |
Definition at line 57 of file MooseEnumItem.C.
|
inlineinherited |
Definition at line 60 of file MooseEnumItem.h.
|
inlineinherited |
Definition at line 63 of file MooseEnumItem.h.
|
inherited |
Definition at line 70 of file MooseEnumItem.C.
|
inlineinherited |
Less than operator.
This is required for this class to work in maps and sets.
Definition at line 72 of file MooseEnumItem.h.
|
inherited |
Comparison operators.
The comparison operators using the char * and string are case sensitive.
Definition at line 36 of file MooseEnumItem.C.
|
inherited |
Definition at line 50 of file MooseEnumItem.C.
|
inlineinherited |
Definition at line 59 of file MooseEnumItem.h.
|
inlineinherited |
Definition at line 62 of file MooseEnumItem.h.
|
inherited |
Definition at line 64 of file MooseEnumItem.C.
|
inlineinherited |
Definition at line 36 of file MooseEnumItem.h.
Referenced by MooseEnum::operator std::string(), and operator<<().
Method to change the ID of the item, but only if it is an INVALID_ID.
An error is produced if the ID is valid and this method is called.
This is needed to allow ExecFlagType objects to be created without an ID being provided, the ID is assigned when ExecFlagEnum::addAvailableFlags is called.
Definition at line 83 of file MooseEnumItem.C.
|
staticprivate |
Definition at line 51 of file ReporterMode.h.
Definition at line 21 of file MooseEnumItem.h.
Referenced by MooseEnum::assign(), MooseEnum::isValid(), and MooseEnumItem::setID().