|
Mantid
|
#include <EnumeratedString.h>
Public Member Functions | |
| const char * | c_str () const |
| EnumeratedString () | |
| EnumeratedString (const E e) | |
| EnumeratedString (const EnumeratedString &es) | |
| EnumeratedString (const std::string &s) | |
| operator E () const | |
| operator std::string () const | |
| bool | operator!= (const char *s) const |
| bool | operator!= (const E e) const |
| bool | operator!= (const EnumeratedString &es) const |
| template<typename OtherEnumType , const std::vector< std::string > * OtherEnumStrings> | |
| bool | operator!= (const EnumeratedString< OtherEnumType, OtherEnumStrings > &other) const |
| bool | operator!= (const std::string &s) const |
| EnumeratedString & | operator= (const EnumeratedString &other)=default |
| EnumeratedString & | operator= (const std::string &s) |
| EnumeratedString & | operator= (E e) |
| bool | operator== (const char *s) const |
| bool | operator== (const E e) const |
| bool | operator== (const EnumeratedString &es) const |
| template<typename OtherEnumType , const std::vector< std::string > * OtherEnumStrings> | |
| bool | operator== (const EnumeratedString< OtherEnumType, OtherEnumStrings > &) const |
| bool | operator== (const std::string &s) const |
Static Public Member Functions | |
| static size_t | size () |
Private Member Functions | |
| void | ensureCompatibleSize () |
| E | findEFromString (const std::string &s) |
Private Attributes | |
| std::string | name |
| E | value |
Definition at line 33 of file EnumeratedString.h.
|
inline |
| class | E an enum, the final value must be enum_count (i.e. enum class Fruit {apple, orange, enum_count}) |
| a | pointer to a static vector of string names for each enum The enum and string array must have same order. |
| an | optional pointer to a statically defined string comparator. |
Definition at line 46 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::ensureCompatibleSize().
|
inline |
Definition at line 48 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::ensureCompatibleSize(), and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=().
|
inline |
Definition at line 53 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::ensureCompatibleSize(), and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=().
|
inline |
Definition at line 58 of file EnumeratedString.h.
|
inline |
Definition at line 116 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
inlineprivate |
Definition at line 132 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
Referenced by Mantid::Kernel::EnumeratedString< E, names, stringComparator >::EnumeratedString(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::EnumeratedString(), and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::EnumeratedString().
|
inlineprivate |
Definition at line 124 of file EnumeratedString.h.
Referenced by Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=().
|
inline |
Definition at line 61 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 62 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
inline |
Definition at line 101 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
inline |
Definition at line 95 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 104 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 112 of file EnumeratedString.h.
|
inline |
Definition at line 98 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
default |
|
inline |
|
inline |
Definition at line 66 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name, and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 100 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
inline |
Definition at line 94 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 103 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::value.
|
inline |
Definition at line 107 of file EnumeratedString.h.
|
inline |
Definition at line 97 of file EnumeratedString.h.
References Mantid::Kernel::EnumeratedString< E, names, stringComparator >::name.
|
inlinestatic |
Definition at line 117 of file EnumeratedString.h.
|
private |
Definition at line 121 of file EnumeratedString.h.
Referenced by Mantid::Kernel::EnumeratedString< E, names, stringComparator >::c_str(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::ensureCompatibleSize(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator std::string(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator!=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator!=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator==(), and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator==().
|
private |
Definition at line 120 of file EnumeratedString.h.
Referenced by Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator E(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator!=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator!=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator=(), Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator==(), and Mantid::Kernel::EnumeratedString< E, names, stringComparator >::operator==().