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
GLSL::Struct Class Reference

#include <glsltypes_p.h>

Inheritance diagram for GLSL::Struct:
Collaboration diagram for GLSL::Struct:

Public Member Functions

 Struct (Scope *scope=nullptr)
QList< Symbol * > members () const override
void add (Symbol *member) override
Symbol * find (const QString &name) const override
QString toString () const override
const Struct * asStructType () const override
bool isEqualTo (const Type *other) const override
bool isLessThan (const Type *other) const override
Struct * asStruct () override
const Type * type () const override
Public Member Functions inherited from GLSL::Type
virtual ~Type ()
virtual const UndefinedType * asUndefinedType () const
virtual const VoidType * asVoidType () const
virtual const BoolType * asBoolType () const
virtual const IntType * asIntType () const
virtual const UIntType * asUIntType () const
virtual const FloatType * asFloatType () const
virtual const DoubleType * asDoubleType () const
virtual const ScalarType * asScalarType () const
virtual const IndexType * asIndexType () const
virtual const VectorType * asVectorType () const
virtual const MatrixType * asMatrixType () const
virtual const ArrayType * asArrayType () const
virtual const SamplerType * asSamplerType () const
virtual const OverloadSet * asOverloadSetType () const
virtual const Function * asFunctionType () const
Public Member Functions inherited from GLSL::Scope
 Scope (Scope *sscope=nullptr)
Symbol * lookup (const QString &name) const
Scope * asScope () override
Public Member Functions inherited from GLSL::Symbol
 Symbol (Scope *scope=nullptr)
virtual ~Symbol ()
Scope * scope () const
void setScope (Scope *scope)
QString name () const
void setName (const QString &name)
virtual Function * asFunction ()
virtual Argument * asArgument ()
virtual Block * asBlock ()
virtual Variable * asVariable ()
virtual OverloadSet * asOverloadSet ()
virtual Namespace * asNamespace ()

Detailed Description

Definition at line 180 of file glsltypes_p.h.

Constructor & Destructor Documentation

◆ Struct()

GLSL::Struct::Struct ( Scope * scope = nullptr)
inline

Definition at line 183 of file glsltypes_p.h.

Member Function Documentation

◆ add()

void Struct::add ( Symbol * member)
overridevirtual

Implements GLSL::Scope.

Definition at line 322 of file glsltypes.cpp.

◆ asStruct()

Struct * GLSL::Struct::asStruct ( )
inlineoverridevirtual

Reimplemented from GLSL::Symbol.

Definition at line 197 of file glsltypes_p.h.

◆ asStructType()

const Struct * GLSL::Struct::asStructType ( ) const
inlineoverridevirtual

Reimplemented from GLSL::Type.

Definition at line 192 of file glsltypes_p.h.

◆ find()

Symbol * Struct::find ( const QString & name) const
overridevirtual

Implements GLSL::Scope.

Definition at line 327 of file glsltypes.cpp.

◆ isEqualTo()

bool Struct::isEqualTo ( const Type * other) const
overridevirtual

Implements GLSL::Type.

Definition at line 336 of file glsltypes.cpp.

◆ isLessThan()

bool Struct::isLessThan ( const Type * other) const
overridevirtual

Implements GLSL::Type.

Definition at line 342 of file glsltypes.cpp.

◆ members()

QList< Symbol * > Struct::members ( ) const
overridevirtual

Reimplemented from GLSL::Scope.

Definition at line 312 of file glsltypes.cpp.

◆ toString()

QString GLSL::Struct::toString ( ) const
inlineoverridevirtual

Implements GLSL::Type.

Definition at line 191 of file glsltypes_p.h.

◆ type()

const Type * GLSL::Struct::type ( ) const
inlineoverridevirtual

Implements GLSL::Symbol.

Definition at line 198 of file glsltypes_p.h.


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