retdec
|
A representation of enum value. More...
#include <enum_type.h>
Public Types | |
using | ValueType = std::int64_t |
Type of enum value. More... | |
Public Member Functions | |
Value (const std::string &name, ValueType value) | |
Constructs a new enum value. More... | |
const std::string & | getName () const |
Returns enum value's name. More... | |
ValueType | getValue () const |
Returns enum value's value. More... | |
bool | operator== (const Value &other) const |
bool | operator!= (const Value &other) const |
Private Attributes | |
std::string | name |
ValueType | value |
A representation of enum value.
using retdec::ctypes::EnumType::Value::ValueType = std::int64_t |
Type of enum value.
retdec::ctypes::EnumType::Value::Value | ( | const std::string & | name, |
ValueType | value | ||
) |
Constructs a new enum value.
const std::string & retdec::ctypes::EnumType::Value::getName | ( | ) | const |
Returns enum value's name.
EnumType::Value::ValueType retdec::ctypes::EnumType::Value::getValue | ( | ) | const |
Returns enum value's value.
bool retdec::ctypes::EnumType::Value::operator!= | ( | const Value & | other | ) | const |
bool retdec::ctypes::EnumType::Value::operator== | ( | const Value & | other | ) | const |
|
private |
|
private |