Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
GLSL::Function Class Reference

#include <glsltypes_p.h>

+ Inheritance diagram for GLSL::Function:
+ Collaboration diagram for GLSL::Function:

Public Member Functions

 Function (Scope *scope=nullptr)
 
const TypereturnType () const
 
void setReturnType (const Type *returnType)
 
QVector< Argument * > arguments () const
 
void addArgument (Argument *arg)
 
int argumentCount () const
 
ArgumentargumentAt (int index) const
 
QString prettyPrint () const
 
QString toString () const override
 
const FunctionasFunctionType () const override
 
bool isEqualTo (const Type *other) const override
 
bool isLessThan (const Type *other) const override
 
FunctionasFunction () override
 
const Typetype () const override
 
Symbolfind (const QString &name) const override
 
QList< Symbol * > members () const override
 
void add (Symbol *symbol) override
 
- Public Member Functions inherited from GLSL::Type
virtual ~Type ()
 
virtual QString toString () const =0
 
virtual const UndefinedTypeasUndefinedType () const
 
virtual const VoidTypeasVoidType () const
 
virtual const BoolTypeasBoolType () const
 
virtual const IntTypeasIntType () const
 
virtual const UIntTypeasUIntType () const
 
virtual const FloatTypeasFloatType () const
 
virtual const DoubleTypeasDoubleType () const
 
virtual const ScalarTypeasScalarType () const
 
virtual const IndexTypeasIndexType () const
 
virtual const VectorTypeasVectorType () const
 
virtual const MatrixTypeasMatrixType () const
 
virtual const ArrayTypeasArrayType () const
 
virtual const SamplerTypeasSamplerType () const
 
virtual const OverloadSetasOverloadSetType () const
 
virtual const StructasStructType () const
 
virtual const FunctionasFunctionType () const
 
virtual bool isEqualTo (const Type *other) const =0
 
virtual bool isLessThan (const Type *other) const =0
 
- Public Member Functions inherited from GLSL::Scope
 Scope (Scope *sscope=nullptr)
 
Symbollookup (const QString &name) const
 
virtual QList< Symbol * > members () const
 
virtual void add (Symbol *symbol)=0
 
virtual Symbolfind (const QString &name) const =0
 
ScopeasScope () override
 
- Public Member Functions inherited from GLSL::Symbol
 Symbol (Scope *scope=nullptr)
 
virtual ~Symbol ()
 
Scopescope () const
 
void setScope (Scope *scope)
 
QString name () const
 
void setName (const QString &name)
 
virtual ScopeasScope ()
 
virtual StructasStruct ()
 
virtual FunctionasFunction ()
 
virtual ArgumentasArgument ()
 
virtual BlockasBlock ()
 
virtual VariableasVariable ()
 
virtual OverloadSetasOverloadSet ()
 
virtual NamespaceasNamespace ()
 
virtual const Typetype () const =0
 

Detailed Description

Definition at line 202 of file glsltypes_p.h.

Constructor & Destructor Documentation

◆ Function()

GLSL::Function::Function ( Scope scope = nullptr)
inline

Definition at line 205 of file glsltypes_p.h.

Member Function Documentation

◆ add()

void GLSL::Function::add ( Symbol symbol)
inlineoverridevirtual

Implements GLSL::Scope.

Definition at line 230 of file glsltypes_p.h.

References arg, and GLSL::Symbol::asArgument().

+ Here is the call graph for this function:

◆ addArgument()

void Function::addArgument ( Argument arg)

Definition at line 386 of file glsltypes.cpp.

References arg.

◆ argumentAt()

Argument * Function::argumentAt ( int  index) const

Definition at line 396 of file glsltypes.cpp.

◆ argumentCount()

int Function::argumentCount ( ) const

Definition at line 391 of file glsltypes.cpp.

◆ arguments()

QVector< Argument * > Function::arguments ( ) const

Definition at line 381 of file glsltypes.cpp.

◆ asFunction()

Function * GLSL::Function::asFunction ( )
inlineoverridevirtual

Reimplemented from GLSL::Symbol.

Definition at line 224 of file glsltypes_p.h.

◆ asFunctionType()

const Function * GLSL::Function::asFunctionType ( ) const
inlineoverridevirtual

Reimplemented from GLSL::Type.

Definition at line 219 of file glsltypes_p.h.

Referenced by GLSL::Semantic::visit().

+ Here is the caller graph for this function:

◆ find()

Symbol * Function::find ( const QString name) const
overridevirtual

Implements GLSL::Scope.

Definition at line 423 of file glsltypes.cpp.

References arg.

◆ isEqualTo()

bool Function::isEqualTo ( const Type other) const
overridevirtual

Implements GLSL::Type.

Definition at line 401 of file glsltypes.cpp.

References other(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ isLessThan()

bool Function::isLessThan ( const Type other) const
overridevirtual

Implements GLSL::Type.

Definition at line 407 of file glsltypes.cpp.

References other(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ members()

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

Reimplemented from GLSL::Scope.

Definition at line 413 of file glsltypes.cpp.

References arg.

◆ prettyPrint()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ returnType()

const Type * Function::returnType ( ) const

Definition at line 371 of file glsltypes.cpp.

Referenced by setReturnType().

+ Here is the caller graph for this function:

◆ setReturnType()

void Function::setReturnType ( const Type returnType)

Definition at line 376 of file glsltypes.cpp.

References returnType().

+ Here is the call graph for this function:

◆ toString()

QString Function::toString ( ) const
overridevirtual

Implements GLSL::Type.

Definition at line 347 of file glsltypes.cpp.

References prettyPrint().

+ Here is the call graph for this function:

◆ type()

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

Implements GLSL::Symbol.

Definition at line 225 of file glsltypes_p.h.


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