GammaRay API Documentation
2.7.0
|
A target-independent representation of an enum or flag value. More...
#include <enumvalue.h>
Public Member Functions | |
EnumValue (EnumId id, int value) | |
EnumId | id () const |
The unique identifier of the definition of this enum. More... | |
bool | isValid () const |
Returns true if this instance refers to a valid EnumDefinition. More... | |
void | setValue (int value) |
Sets the numeric value of this enum value. More... | |
int | value () const |
Returns the numeric value of this enum value. More... | |
Friends | |
QDataStream & | operator<< (QDataStream &out, const EnumValue &v) |
QDataStream & | operator>> (QDataStream &in, EnumValue &v) |
A target-independent representation of an enum or flag value.
EnumId GammaRay::EnumValue::id | ( | ) | const |
The unique identifier of the definition of this enum.
bool GammaRay::EnumValue::isValid | ( | ) | const |
Returns true
if this instance refers to a valid EnumDefinition.
void GammaRay::EnumValue::setValue | ( | int | value | ) |
Sets the numeric value of this enum value.
int GammaRay::EnumValue::value | ( | ) | const |
Returns the numeric value of this enum value.