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::Type Class Referenceabstract

#include <glsltype_p.h>

+ Inheritance diagram for GLSL::Type:
+ Collaboration diagram for GLSL::Type:

Public Member Functions

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
 

Detailed Description

Definition at line 25 of file glsltype_p.h.

Constructor & Destructor Documentation

◆ ~Type()

Type::~Type ( )
virtual

Definition at line 10 of file glsltype.cpp.

Member Function Documentation

◆ asArrayType()

virtual const ArrayType * GLSL::Type::asArrayType ( ) const
inlinevirtual

Reimplemented in GLSL::ArrayType.

Definition at line 43 of file glsltype_p.h.

◆ asBoolType()

virtual const BoolType * GLSL::Type::asBoolType ( ) const
inlinevirtual

Reimplemented in GLSL::BoolType.

Definition at line 34 of file glsltype_p.h.

Referenced by GLSL::VectorType::toString(), and GLSL::MatrixType::toString().

+ Here is the caller graph for this function:

◆ asDoubleType()

virtual const DoubleType * GLSL::Type::asDoubleType ( ) const
inlinevirtual

Reimplemented in GLSL::DoubleType.

Definition at line 38 of file glsltype_p.h.

Referenced by GLSL::VectorType::toString(), and GLSL::MatrixType::toString().

+ Here is the caller graph for this function:

◆ asFloatType()

virtual const FloatType * GLSL::Type::asFloatType ( ) const
inlinevirtual

Reimplemented in GLSL::FloatType.

Definition at line 37 of file glsltype_p.h.

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

+ Here is the caller graph for this function:

◆ asFunctionType()

virtual const Function * GLSL::Type::asFunctionType ( ) const
inlinevirtual

Reimplemented in GLSL::Function.

Definition at line 48 of file glsltype_p.h.

◆ asIndexType()

virtual const IndexType * GLSL::Type::asIndexType ( ) const
inlinevirtual

Reimplemented in GLSL::IndexType.

Definition at line 40 of file glsltype_p.h.

◆ asIntType()

virtual const IntType * GLSL::Type::asIntType ( ) const
inlinevirtual

Reimplemented in GLSL::IntType.

Definition at line 35 of file glsltype_p.h.

Referenced by GLSL::Semantic::implicitCast(), GLSL::VectorType::toString(), and GLSL::MatrixType::toString().

+ Here is the caller graph for this function:

◆ asMatrixType()

virtual const MatrixType * GLSL::Type::asMatrixType ( ) const
inlinevirtual

Reimplemented in GLSL::MatrixType.

Definition at line 42 of file glsltype_p.h.

◆ asOverloadSetType()

virtual const OverloadSet * GLSL::Type::asOverloadSetType ( ) const
inlinevirtual

Reimplemented in GLSL::OverloadSet.

Definition at line 45 of file glsltype_p.h.

◆ asSamplerType()

virtual const SamplerType * GLSL::Type::asSamplerType ( ) const
inlinevirtual

Reimplemented in GLSL::SamplerType.

Definition at line 44 of file glsltype_p.h.

◆ asScalarType()

virtual const ScalarType * GLSL::Type::asScalarType ( ) const
inlinevirtual

Reimplemented in GLSL::ScalarType.

Definition at line 39 of file glsltype_p.h.

◆ asStructType()

virtual const Struct * GLSL::Type::asStructType ( ) const
inlinevirtual

Reimplemented in GLSL::Struct.

Definition at line 47 of file glsltype_p.h.

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

+ Here is the caller graph for this function:

◆ asUIntType()

virtual const UIntType * GLSL::Type::asUIntType ( ) const
inlinevirtual

Reimplemented in GLSL::UIntType.

Definition at line 36 of file glsltype_p.h.

Referenced by GLSL::Semantic::implicitCast(), GLSL::VectorType::toString(), and GLSL::MatrixType::toString().

+ Here is the caller graph for this function:

◆ asUndefinedType()

virtual const UndefinedType * GLSL::Type::asUndefinedType ( ) const
inlinevirtual

Reimplemented in GLSL::UndefinedType.

Definition at line 32 of file glsltype_p.h.

◆ asVectorType()

virtual const VectorType * GLSL::Type::asVectorType ( ) const
inlinevirtual

Reimplemented in GLSL::VectorType.

Definition at line 41 of file glsltype_p.h.

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

+ Here is the caller graph for this function:

◆ asVoidType()

virtual const VoidType * GLSL::Type::asVoidType ( ) const
inlinevirtual

Reimplemented in GLSL::VoidType.

Definition at line 33 of file glsltype_p.h.

◆ isEqualTo()

virtual bool GLSL::Type::isEqualTo ( const Type * other) const
pure virtual

Implemented in GLSL::UndefinedType, GLSL::VoidType, GLSL::BoolType, GLSL::IntType, GLSL::UIntType, GLSL::FloatType, GLSL::DoubleType, GLSL::VectorType, GLSL::MatrixType, GLSL::ArrayType, GLSL::Struct, GLSL::Function, GLSL::SamplerType, and GLSL::OverloadSet.

Referenced by GLSL::ArrayType::isEqualTo().

+ Here is the caller graph for this function:

◆ isLessThan()

◆ toString()

virtual QString GLSL::Type::toString ( ) const
pure virtual

Implemented in GLSL::UndefinedType, GLSL::VoidType, GLSL::BoolType, GLSL::IntType, GLSL::UIntType, GLSL::FloatType, GLSL::DoubleType, GLSL::VectorType, GLSL::MatrixType, GLSL::ArrayType, GLSL::Struct, GLSL::Function, GLSL::SamplerType, and GLSL::OverloadSet.

Referenced by GLSL::Function::prettyPrint(), and GLSL::ArrayType::toString().

+ Here is the caller graph for this function:

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