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::SectionIR Struct Reference

Intermediate representation of a member summary section. More...

#include <member.h>

Collaboration diagram for IR::SectionIR:

Public Member Functions

QJsonObject toJson () const
 \variable IR::SectionIR::id Stable ASCII identifier for anchor links, generated from the title via Utilities::asAsciiPrintable().

Public Attributes

QString id
QString title
QString singular
QString plural
QList< MemberIRmembers
QList< MemberIRreimplementedMembers
QList< InheritedMembersIRinheritedMembers

Detailed Description

Intermediate representation of a member summary section.

SectionIR groups members by category (such as "Public Functions" or "Properties") for summary table rendering. Each section carries a title, singular and plural forms for inherited-member links, and three member lists: primary members, reimplemented members, and inherited member summaries.

The reimplementedMembers and inheritedMembers arrays are omitted from JSON when empty.

Definition at line 85 of file member.h.

Member Function Documentation

◆ toJson()

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

\variable IR::SectionIR::id Stable ASCII identifier for anchor links, generated from the title via Utilities::asAsciiPrintable().

\variable IR::SectionIR::title Display title (such as "Public Functions" or "Properties").

\variable IR::SectionIR::singular Singular form of the member type (such as "function").

\variable IR::SectionIR::plural Plural form of the member type (such as "functions").

\variable IR::SectionIR::members Primary members in this section.

\variable IR::SectionIR::reimplementedMembers Members that reimplement a virtual function from a base class.

\variable IR::SectionIR::inheritedMembers Summaries of members inherited from base classes.

Converts the section to a QJsonObject for template rendering.

Emits id, title, singular, plural, and the members array. The reimplementedMembers and inheritedMembers arrays are omitted when empty.

Definition at line 401 of file member.cpp.

Member Data Documentation

◆ id

QString IR::SectionIR::id

Definition at line 86 of file member.h.

◆ inheritedMembers

QList<InheritedMembersIR> IR::SectionIR::inheritedMembers

Definition at line 92 of file member.h.

◆ members

QList<MemberIR> IR::SectionIR::members

Definition at line 90 of file member.h.

◆ plural

QString IR::SectionIR::plural

Definition at line 89 of file member.h.

◆ reimplementedMembers

QList<MemberIR> IR::SectionIR::reimplementedMembers

Definition at line 91 of file member.h.

◆ singular

QString IR::SectionIR::singular

Definition at line 88 of file member.h.

◆ title

QString IR::SectionIR::title

Definition at line 87 of file member.h.


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