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::Engine Class Reference

#include <glslengine_p.h>

+ Collaboration diagram for GLSL::Engine:

Public Member Functions

 Engine ()
 
 ~Engine ()
 
const QStringidentifier (const QString &s)
 
const QStringidentifier (const char *s, int n)
 
std::unordered_set< QStringidentifiers () const
 
const QStringnumber (const QString &s)
 
const QStringnumber (const char *s, int n)
 
std::unordered_set< QStringnumbers () const
 
const UndefinedTypeundefinedType ()
 
const VoidTypevoidType ()
 
const BoolTypeboolType ()
 
const IntTypeintType ()
 
const UIntTypeuintType ()
 
const FloatTypefloatType ()
 
const DoubleTypedoubleType ()
 
const SamplerTypesamplerType (int kind)
 
const VectorTypevectorType (const Type *elementType, int dimension)
 
const MatrixTypematrixType (const Type *elementType, int columns, int rows)
 
const ArrayTypearrayType (const Type *elementType)
 
NamespacenewNamespace ()
 
StructnewStruct (Scope *scope=nullptr)
 
BlocknewBlock (Scope *scope=nullptr)
 
FunctionnewFunction (Scope *scope=nullptr)
 
ArgumentnewArgument (Function *function, const QString &name, const Type *type)
 
VariablenewVariable (Scope *scope, const QString &name, const Type *type, int qualifiers=0)
 
MemoryPoolpool ()
 
bool blockDiagnosticMessages (bool block)
 
QList< DiagnosticMessagediagnosticMessages () const
 
void clearDiagnosticMessages ()
 
void addDiagnosticMessage (const DiagnosticMessage &m)
 
void warning (int line, const QString &message)
 
void error (int line, const QString &message)
 

Detailed Description

Definition at line 79 of file glslengine_p.h.

Constructor & Destructor Documentation

◆ Engine()

Engine::Engine ( )

Definition at line 58 of file glslengine.cpp.

◆ ~Engine()

Engine::~Engine ( )

Definition at line 63 of file glslengine.cpp.

References qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ addDiagnosticMessage()

void Engine::addDiagnosticMessage ( const DiagnosticMessage & m)

Definition at line 180 of file glslengine.cpp.

Referenced by error(), and warning().

+ Here is the caller graph for this function:

◆ arrayType()

const ArrayType * Engine::arrayType ( const Type * elementType)

Definition at line 164 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ blockDiagnosticMessages()

bool Engine::blockDiagnosticMessages ( bool block)

Definition at line 261 of file glslengine.cpp.

◆ boolType()

const BoolType * Engine::boolType ( )

Definition at line 115 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ clearDiagnosticMessages()

void Engine::clearDiagnosticMessages ( )

Definition at line 175 of file glslengine.cpp.

◆ diagnosticMessages()

QList< DiagnosticMessage > Engine::diagnosticMessages ( ) const

Definition at line 170 of file glslengine.cpp.

◆ doubleType()

const DoubleType * Engine::doubleType ( )

Definition at line 139 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ error()

void Engine::error ( int line,
const QString & message )

Definition at line 195 of file glslengine.cpp.

References addDiagnosticMessage(), GLSL::DiagnosticMessage::Error, line, and GLSL::DiagnosticMessage::setKind().

Referenced by GLSL::Semantic::functionIdentifier(), GLSL::Semantic::visit(), GLSL::Semantic::visit(), GLSL::Semantic::visit(), GLSL::Semantic::visit(), GLSL::Semantic::visit(), and GLSL::Semantic::visit().

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

◆ floatType()

const FloatType * Engine::floatType ( )

Definition at line 133 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ identifier() [1/2]

const QString * Engine::identifier ( const char * s,
int n )

Definition at line 73 of file glslengine.cpp.

References QString::fromLatin1().

+ Here is the call graph for this function:

◆ identifier() [2/2]

const QString * Engine::identifier ( const QString & s)

Definition at line 68 of file glslengine.cpp.

Referenced by GLSL::Parser::parse().

+ Here is the caller graph for this function:

◆ identifiers()

std::unordered_set< QString > Engine::identifiers ( ) const

Definition at line 78 of file glslengine.cpp.

◆ intType()

const IntType * Engine::intType ( )

Definition at line 121 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ matrixType()

const MatrixType * Engine::matrixType ( const Type * elementType,
int columns,
int rows )

Definition at line 158 of file glslengine.cpp.

References vectorType().

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

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

◆ newArgument()

Argument * Engine::newArgument ( Function * function,
const QString & name,
const Type * type )

Definition at line 242 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ newBlock()

Block * Engine::newBlock ( Scope * scope = nullptr)

Definition at line 228 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ newFunction()

Function * Engine::newFunction ( Scope * scope = nullptr)

Definition at line 235 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ newNamespace()

Namespace * Engine::newNamespace ( )

Definition at line 214 of file glslengine.cpp.

◆ newStruct()

Struct * Engine::newStruct ( Scope * scope = nullptr)

Definition at line 221 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ newVariable()

Variable * Engine::newVariable ( Scope * scope,
const QString & name,
const Type * type,
int qualifiers = 0 )

Definition at line 251 of file glslengine.cpp.

References var.

Referenced by GLSL::Semantic::field(), and GLSL::Semantic::visit().

+ Here is the caller graph for this function:

◆ number() [1/2]

const QString * Engine::number ( const char * s,
int n )

Definition at line 88 of file glslengine.cpp.

References QString::fromLatin1().

+ Here is the call graph for this function:

◆ number() [2/2]

const QString * Engine::number ( const QString & s)

Definition at line 83 of file glslengine.cpp.

◆ numbers()

std::unordered_set< QString > Engine::numbers ( ) const

Definition at line 93 of file glslengine.cpp.

◆ pool()

MemoryPool * Engine::pool ( )

Definition at line 98 of file glslengine.cpp.

◆ samplerType()

const SamplerType * Engine::samplerType ( int kind)

Definition at line 145 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ uintType()

const UIntType * Engine::uintType ( )

Definition at line 127 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ undefinedType()

const UndefinedType * Engine::undefinedType ( )

Definition at line 103 of file glslengine.cpp.

Referenced by GLSL::Semantic::expression(), and GLSL::Semantic::type().

+ Here is the caller graph for this function:

◆ vectorType()

const VectorType * Engine::vectorType ( const Type * elementType,
int dimension )

Definition at line 150 of file glslengine.cpp.

Referenced by matrixType(), and GLSL::Semantic::visit().

+ Here is the caller graph for this function:

◆ voidType()

const VoidType * Engine::voidType ( )

Definition at line 109 of file glslengine.cpp.

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

+ Here is the caller graph for this function:

◆ warning()

void Engine::warning ( int line,
const QString & message )

Definition at line 186 of file glslengine.cpp.

References addDiagnosticMessage(), line, GLSL::DiagnosticMessage::setKind(), and GLSL::DiagnosticMessage::Warning.

+ Here is the call graph for this function:

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