GammaRay API Documentation  2.7.0
Public Member Functions | Friends | List of all members
GammaRay::EnumValue Class Reference

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

QDataStreamoperator<< (QDataStream &out, const EnumValue &v)
 
QDataStreamoperator>> (QDataStream &in, EnumValue &v)
 

Detailed Description

A target-independent representation of an enum or flag value.

Member Function Documentation

EnumId GammaRay::EnumValue::id ( ) const

The unique identifier of the definition of this enum.

See also
EnumDefinition
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.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
https://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
https://www.kdab.com/gammaray/