GammaRay API Documentation 3.0.1
Public Member Functions | 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)
 Create a new enum value for EnumDefinition with id and value value.
 
EnumId id () const
 The unique identifier of the definition of this enum.
 
bool isValid () const
 Returns true if this instance refers to a valid EnumDefinition.
 
void setValue (int value)
 Sets the numeric value of this enum value.
 
int value () const
 Returns the numeric value of this enum value.
 

Detailed Description

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

Member Function Documentation

◆ id()

EnumId GammaRay::EnumValue::id ( ) const

The unique identifier of the definition of this enum.

See also
EnumDefinition

© 2010-2023 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated on Tue Dec 26 2023 00:01:47 for GammaRay API Documentation by doxygen 1.9.8