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 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
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 Struct * asStructType () 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 Struct * asStruct ()
virtual Argument * asArgument ()
virtual Block * asBlock ()
virtual Variable * asVariable ()
virtual OverloadSet * asOverloadSet ()
virtual Namespace * asNamespace ()

Detailed Description

Definition at line 204 of file glsltypes_p.h.

Constructor & Destructor Documentation

◆ Function()

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

Definition at line 207 of file glsltypes_p.h.

Member Function Documentation

◆ add()

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

Implements GLSL::Scope.

Definition at line 232 of file glsltypes_p.h.

◆ addArgument()

void Function::addArgument ( Argument * arg)

Definition at line 388 of file glsltypes.cpp.

◆ argumentAt()

Argument * Function::argumentAt ( int index) const

Definition at line 398 of file glsltypes.cpp.

◆ argumentCount()

int Function::argumentCount ( ) const

Definition at line 393 of file glsltypes.cpp.

◆ arguments()

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

Definition at line 383 of file glsltypes.cpp.

◆ asFunction()

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

Reimplemented from GLSL::Symbol.

Definition at line 226 of file glsltypes_p.h.

◆ asFunctionType()

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

Reimplemented from GLSL::Type.

Definition at line 221 of file glsltypes_p.h.

◆ find()

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

Implements GLSL::Scope.

Definition at line 425 of file glsltypes.cpp.

◆ isEqualTo()

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

Implements GLSL::Type.

Definition at line 403 of file glsltypes.cpp.

◆ isLessThan()

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

Implements GLSL::Type.

Definition at line 409 of file glsltypes.cpp.

◆ members()

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

Reimplemented from GLSL::Scope.

Definition at line 415 of file glsltypes.cpp.

◆ prettyPrint()

QString Function::prettyPrint ( ) const

Definition at line 354 of file glsltypes.cpp.

◆ returnType()

const Type * Function::returnType ( ) const

Definition at line 373 of file glsltypes.cpp.

◆ setReturnType()

void Function::setReturnType ( const Type * returnType)

Definition at line 378 of file glsltypes.cpp.

◆ toString()

QString Function::toString ( ) const
overridevirtual

Implements GLSL::Type.

Definition at line 349 of file glsltypes.cpp.

◆ type()

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

Implements GLSL::Symbol.

Definition at line 227 of file glsltypes_p.h.


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