Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
GLSL::VectorType Class Reference

#include <glsltypes_p.h>

+ Inheritance diagram for GLSL::VectorType:
+ Collaboration diagram for GLSL::VectorType:

Public Member Functions

 VectorType (const Type *elementType, int dimension)
 
QString toString () const override
 
const TypeelementType () const
 
int dimension () const
 
QList< Symbol * > members () const override
 
void add (Symbol *symbol) override
 
Symbolfind (const QString &name) const override
 
const Typetype () const override
 
const VectorTypeasVectorType () const override
 
bool isEqualTo (const Type *other) const override
 
bool isLessThan (const Type *other) const override
 
- Public Member Functions inherited from GLSL::IndexType
 IndexType (const Type *indexElementType)
 
const TypeindexElementType () const
 
const IndexTypeasIndexType () const 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 MatrixTypeasMatrixType () const
 
virtual const ArrayTypeasArrayType () const
 
virtual const SamplerTypeasSamplerType () const
 
virtual const OverloadSetasOverloadSetType () const
 
virtual const StructasStructType () const
 
virtual const FunctionasFunctionType () 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 FunctionasFunction ()
 
virtual ArgumentasArgument ()
 
virtual BlockasBlock ()
 
virtual VariableasVariable ()
 
virtual OverloadSetasOverloadSet ()
 
virtual NamespaceasNamespace ()
 

Friends

class Engine
 

Detailed Description

Definition at line 112 of file glsltypes_p.h.

Constructor & Destructor Documentation

◆ VectorType()

GLSL::VectorType::VectorType ( const Type * elementType,
int dimension )
inline

Definition at line 115 of file glsltypes_p.h.

Member Function Documentation

◆ add()

void VectorType::add ( Symbol * symbol)
overridevirtual

Implements GLSL::Scope.

Definition at line 132 of file glsltypes.cpp.

References GLSL::Symbol::name().

+ Here is the call graph for this function:

◆ asVectorType()

const VectorType * GLSL::VectorType::asVectorType ( ) const
inlineoverridevirtual

Reimplemented from GLSL::Type.

Definition at line 128 of file glsltypes_p.h.

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

+ Here is the caller graph for this function:

◆ dimension()

int GLSL::VectorType::dimension ( ) const
inline

Definition at line 120 of file glsltypes_p.h.

Referenced by isLessThan().

+ Here is the caller graph for this function:

◆ elementType()

const Type * GLSL::VectorType::elementType ( ) const
inline

Definition at line 119 of file glsltypes_p.h.

Referenced by isEqualTo(), isLessThan(), and toString().

+ Here is the caller graph for this function:

◆ find()

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

Implements GLSL::Scope.

Definition at line 137 of file glsltypes.cpp.

◆ isEqualTo()

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

Implements GLSL::Type.

Definition at line 216 of file glsltypes.cpp.

References elementType(), and other().

+ Here is the call graph for this function:

◆ isLessThan()

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

Implements GLSL::Type.

Definition at line 230 of file glsltypes.cpp.

References dimension(), elementType(), other(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ members()

QList< Symbol * > GLSL::VectorType::members ( ) const
inlineoverridevirtual

Reimplemented from GLSL::Scope.

Definition at line 122 of file glsltypes_p.h.

◆ toString()

QString VectorType::toString ( ) const
overridevirtual

Implements GLSL::Type.

Definition at line 118 of file glsltypes.cpp.

References GLSL::Type::asBoolType(), GLSL::Type::asDoubleType(), GLSL::Type::asIntType(), GLSL::Type::asUIntType(), elementType(), and QString::fromLatin1().

+ Here is the call graph for this function:

◆ type()

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

Implements GLSL::Symbol.

Definition at line 126 of file glsltypes_p.h.

Friends And Related Symbol Documentation

◆ Engine

friend class Engine
friend

Definition at line 136 of file glsltypes_p.h.


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