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::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 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
Public Member Functions inherited from GLSL::Scope
 Scope (Scope *sscope=nullptr)
Symbollookup (const QString &name) const
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 StructasStruct ()
virtual ArgumentasArgument ()
virtual BlockasBlock ()
virtual VariableasVariable ()
virtual OverloadSetasOverloadSet ()
virtual NamespaceasNamespace ()

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.

◆ addArgument()

void Function::addArgument ( Argument * arg)

Definition at line 386 of file glsltypes.cpp.

◆ 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.

◆ find()

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

Implements GLSL::Scope.

Definition at line 423 of file glsltypes.cpp.

◆ isEqualTo()

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

Implements GLSL::Type.

Definition at line 401 of file glsltypes.cpp.

◆ isLessThan()

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

Implements GLSL::Type.

Definition at line 407 of file glsltypes.cpp.

◆ members()

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

Reimplemented from GLSL::Scope.

Definition at line 413 of file glsltypes.cpp.

◆ prettyPrint()

QString Function::prettyPrint ( ) const

Definition at line 352 of file glsltypes.cpp.

◆ returnType()

const Type * Function::returnType ( ) const

Definition at line 371 of file glsltypes.cpp.

◆ setReturnType()

void Function::setReturnType ( const Type * returnType)

Definition at line 376 of file glsltypes.cpp.

◆ toString()

QString Function::toString ( ) const
overridevirtual

Implements GLSL::Type.

Definition at line 347 of file glsltypes.cpp.

◆ 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: