![]() |
Qt 6.x
The Qt SDK
|
#include <glsltypes_p.h>
Public Member Functions | |
Function (Scope *scope=nullptr) | |
const Type * | returnType () const |
void | setReturnType (const Type *returnType) |
QVector< Argument * > | arguments () const |
void | addArgument (Argument *arg) |
int | argumentCount () const |
Argument * | argumentAt (int index) const |
QString | prettyPrint () const |
QString | toString () const override |
const Function * | asFunctionType () const override |
bool | isEqualTo (const Type *other) const override |
bool | isLessThan (const Type *other) const override |
Function * | asFunction () override |
const Type * | type () const override |
Symbol * | find (const QString &name) const override |
QList< Symbol * > | members () const override |
void | add (Symbol *symbol) override |
![]() | |
virtual | ~Type () |
virtual QString | toString () const =0 |
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 Struct * | asStructType () const |
virtual const Function * | asFunctionType () const |
virtual bool | isEqualTo (const Type *other) const =0 |
virtual bool | isLessThan (const Type *other) const =0 |
![]() | |
Scope (Scope *sscope=nullptr) | |
Symbol * | lookup (const QString &name) const |
virtual QList< Symbol * > | members () const |
virtual void | add (Symbol *symbol)=0 |
virtual Symbol * | find (const QString &name) const =0 |
Scope * | asScope () override |
![]() | |
Symbol (Scope *scope=nullptr) | |
virtual | ~Symbol () |
Scope * | scope () const |
void | setScope (Scope *scope) |
QString | name () const |
void | setName (const QString &name) |
virtual Scope * | asScope () |
virtual Struct * | asStruct () |
virtual Function * | asFunction () |
virtual Argument * | asArgument () |
virtual Block * | asBlock () |
virtual Variable * | asVariable () |
virtual OverloadSet * | asOverloadSet () |
virtual Namespace * | asNamespace () |
virtual const Type * | type () const =0 |
Definition at line 202 of file glsltypes_p.h.
Definition at line 205 of file glsltypes_p.h.
Implements GLSL::Scope.
Definition at line 230 of file glsltypes_p.h.
References arg, and GLSL::Symbol::asArgument().
Definition at line 386 of file glsltypes.cpp.
References arg.
Argument * Function::argumentAt | ( | int | index | ) | const |
Definition at line 396 of file glsltypes.cpp.
int Function::argumentCount | ( | ) | const |
Definition at line 391 of file glsltypes.cpp.
Definition at line 381 of file glsltypes.cpp.
|
inlineoverridevirtual |
Reimplemented from GLSL::Symbol.
Definition at line 224 of file glsltypes_p.h.
|
inlineoverridevirtual |
Reimplemented from GLSL::Type.
Definition at line 219 of file glsltypes_p.h.
Referenced by GLSL::Semantic::visit().
|
overridevirtual |
Implements GLSL::Type.
Definition at line 401 of file glsltypes.cpp.
References other(), and Q_UNUSED.
|
overridevirtual |
Implements GLSL::Type.
Definition at line 407 of file glsltypes.cpp.
References other(), and Q_UNUSED.
QString Function::prettyPrint | ( | ) | const |
Definition at line 352 of file glsltypes.cpp.
References arg, i, GLSL::Symbol::name(), and GLSL::Type::toString().
Referenced by toString().
const Type * Function::returnType | ( | ) | const |
Definition at line 371 of file glsltypes.cpp.
Referenced by setReturnType().
Definition at line 376 of file glsltypes.cpp.
References returnType().
|
overridevirtual |
Implements GLSL::Type.
Definition at line 347 of file glsltypes.cpp.
References prettyPrint().
|
inlineoverridevirtual |
Implements GLSL::Symbol.
Definition at line 225 of file glsltypes_p.h.