Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
IR::EnumValueIR Struct Reference

Intermediate representation of a single enum value. More...

#include <member.h>

Collaboration diagram for IR::EnumValueIR:

Public Member Functions

QJsonObject toJson () const
 \variable IR::EnumValueIR::name Enumerator name.

Public Attributes

QString name
QString value
QString since

Detailed Description

Intermediate representation of a single enum value.

EnumValueIR captures the name, explicit initializer, and version information for one enumerator. Templates use this to render enum value tables in class documentation.

JSON output omits value and since when their respective strings are empty.

Definition at line 27 of file member.h.

Member Function Documentation

◆ toJson()

QJsonObject IR::EnumValueIR::toJson ( ) const
nodiscard

\variable IR::EnumValueIR::name Enumerator name.

\variable IR::EnumValueIR::value Explicit initializer expression, empty if the compiler assigns the value.

\variable IR::EnumValueIR::since Qt version that introduced this enumerator, empty if unversioned.

Converts the enum value to a QJsonObject for template rendering.

Always emits name. The value and since keys are omitted when their respective strings are empty.

Definition at line 93 of file member.cpp.

Member Data Documentation

◆ name

QString IR::EnumValueIR::name

Definition at line 28 of file member.h.

Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().

◆ since

QString IR::EnumValueIR::since

Definition at line 30 of file member.h.

◆ value

QString IR::EnumValueIR::value

Definition at line 29 of file member.h.


The documentation for this struct was generated from the following files: