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

#include <glslsemantic_p.h>

Inheritance diagram for GLSL::Semantic:
Collaboration diagram for GLSL::Semantic:

Classes

struct  ExprResult

Public Member Functions

 Semantic ()
 ~Semantic () override
void translationUnit (TranslationUnitAST *ast, Scope *globalScope, Engine *engine)
ExprResult expression (ExpressionAST *ast, Scope *scope, Engine *engine)

Protected Member Functions

EngineswitchEngine (Engine *engine)
ScopeswitchScope (Scope *scope)
bool implicitCast (const Type *type, const Type *target) const
ExprResult expression (ExpressionAST *ast)
void statement (StatementAST *ast)
const Typetype (TypeAST *ast)
void declaration (DeclarationAST *ast)
ExprResult functionIdentifier (FunctionIdentifierAST *ast)
Symbolfield (StructTypeAST::Field *ast)
void parameterDeclaration (ParameterDeclarationAST *ast, Function *fun)
bool visit (TranslationUnitAST *ast) override
bool visit (FunctionIdentifierAST *ast) override
bool visit (StructTypeAST::Field *ast) override
bool visit (IdentifierExpressionAST *ast) override
bool visit (LiteralExpressionAST *ast) override
bool visit (BinaryExpressionAST *ast) override
bool visit (UnaryExpressionAST *ast) override
bool visit (TernaryExpressionAST *ast) override
bool visit (AssignmentExpressionAST *ast) override
bool visit (MemberAccessExpressionAST *ast) override
bool visit (FunctionCallExpressionAST *ast) override
bool visit (DeclarationExpressionAST *ast) override
bool visit (ExpressionStatementAST *ast) override
bool visit (CompoundStatementAST *ast) override
bool visit (IfStatementAST *ast) override
bool visit (WhileStatementAST *ast) override
bool visit (DoStatementAST *ast) override
bool visit (ForStatementAST *ast) override
bool visit (JumpStatementAST *ast) override
bool visit (ReturnStatementAST *ast) override
bool visit (SwitchStatementAST *ast) override
bool visit (CaseLabelStatementAST *ast) override
bool visit (DeclarationStatementAST *ast) override
bool visit (BasicTypeAST *ast) override
bool visit (NamedTypeAST *ast) override
bool visit (ArrayTypeAST *ast) override
bool visit (StructTypeAST *ast) override
bool visit (QualifiedTypeAST *ast) override
bool visit (LayoutQualifierAST *ast) override
bool visit (PrecisionDeclarationAST *ast) override
bool visit (ParameterDeclarationAST *ast) override
bool visit (VariableDeclarationAST *ast) override
bool visit (TypeDeclarationAST *ast) override
bool visit (TypeAndVariableDeclarationAST *ast) override
bool visit (InvariantDeclarationAST *ast) override
bool visit (InitDeclarationAST *ast) override
bool visit (FunctionDeclarationAST *ast) override
Protected Member Functions inherited from GLSL::Visitor
 Visitor ()
virtual ~Visitor ()
void accept (AST *ast)
virtual bool preVisit (AST *)
virtual void postVisit (AST *)
virtual void endVisit (TranslationUnitAST *)
virtual void endVisit (IdentifierExpressionAST *)
virtual void endVisit (LiteralExpressionAST *)
virtual void endVisit (BinaryExpressionAST *)
virtual void endVisit (UnaryExpressionAST *)
virtual void endVisit (TernaryExpressionAST *)
virtual void endVisit (AssignmentExpressionAST *)
virtual void endVisit (MemberAccessExpressionAST *)
virtual void endVisit (FunctionCallExpressionAST *)
virtual void endVisit (FunctionIdentifierAST *)
virtual void endVisit (DeclarationExpressionAST *)
virtual void endVisit (ExpressionStatementAST *)
virtual void endVisit (CompoundStatementAST *)
virtual void endVisit (IfStatementAST *)
virtual void endVisit (WhileStatementAST *)
virtual void endVisit (DoStatementAST *)
virtual void endVisit (ForStatementAST *)
virtual void endVisit (JumpStatementAST *)
virtual void endVisit (ReturnStatementAST *)
virtual void endVisit (SwitchStatementAST *)
virtual void endVisit (CaseLabelStatementAST *)
virtual void endVisit (DeclarationStatementAST *)
virtual void endVisit (BasicTypeAST *)
virtual void endVisit (NamedTypeAST *)
virtual void endVisit (ArrayTypeAST *)
virtual void endVisit (StructTypeAST *)
virtual void endVisit (StructTypeAST::Field *)
virtual void endVisit (LayoutQualifierAST *)
virtual void endVisit (QualifiedTypeAST *)
virtual void endVisit (PrecisionDeclarationAST *)
virtual void endVisit (ParameterDeclarationAST *)
virtual void endVisit (VariableDeclarationAST *)
virtual void endVisit (TypeDeclarationAST *)
virtual void endVisit (TypeAndVariableDeclarationAST *)
virtual void endVisit (InvariantDeclarationAST *)
virtual void endVisit (InitDeclarationAST *)
virtual void endVisit (FunctionDeclarationAST *)

Detailed Description

Definition at line 25 of file glslsemantic_p.h.

Constructor & Destructor Documentation

◆ Semantic()

Semantic::Semantic ( )

Definition at line 15 of file glslsemantic.cpp.

◆ ~Semantic()

Semantic::~Semantic ( )
override

Definition at line 22 of file glslsemantic.cpp.

Member Function Documentation

◆ declaration()

void Semantic::declaration ( DeclarationAST * ast)
protected

Definition at line 63 of file glslsemantic.cpp.

◆ expression() [1/2]

Semantic::ExprResult Semantic::expression ( ExpressionAST * ast)
protected

Definition at line 40 of file glslsemantic.cpp.

◆ expression() [2/2]

Semantic::ExprResult Semantic::expression ( ExpressionAST * ast,
Scope * scope,
Engine * engine )

Definition at line 82 of file glslsemantic.cpp.

◆ field()

Symbol * Semantic::field ( StructTypeAST::Field * ast)
protected

Definition at line 117 of file glslsemantic.cpp.

◆ functionIdentifier()

Semantic::ExprResult Semantic::functionIdentifier ( FunctionIdentifierAST * ast)
protected

Definition at line 95 of file glslsemantic.cpp.

◆ implicitCast()

bool Semantic::implicitCast ( const Type * type,
const Type * target ) const
protected

Definition at line 285 of file glslsemantic.cpp.

◆ parameterDeclaration()

void Semantic::parameterDeclaration ( ParameterDeclarationAST * ast,
Function * fun )
protected

Definition at line 127 of file glslsemantic.cpp.

◆ statement()

void Semantic::statement ( StatementAST * ast)
protected

Definition at line 49 of file glslsemantic.cpp.

◆ switchEngine()

Engine * Semantic::switchEngine ( Engine * engine)
protected

Definition at line 26 of file glslsemantic.cpp.

◆ switchScope()

Scope * Semantic::switchScope ( Scope * scope)
protected

Definition at line 33 of file glslsemantic.cpp.

◆ translationUnit()

void Semantic::translationUnit ( TranslationUnitAST * ast,
Scope * globalScope,
Engine * engine )

Definition at line 68 of file glslsemantic.cpp.

◆ type()

const Type * Semantic::type ( TypeAST * ast)
protected

Definition at line 54 of file glslsemantic.cpp.

◆ visit() [1/37]

bool Semantic::visit ( ArrayTypeAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 731 of file glslsemantic.cpp.

◆ visit() [2/37]

bool Semantic::visit ( AssignmentExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 257 of file glslsemantic.cpp.

◆ visit() [3/37]

bool Semantic::visit ( BasicTypeAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 488 of file glslsemantic.cpp.

◆ visit() [4/37]

bool Semantic::visit ( BinaryExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 192 of file glslsemantic.cpp.

◆ visit() [5/37]

bool Semantic::visit ( CaseLabelStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 474 of file glslsemantic.cpp.

◆ visit() [6/37]

bool Semantic::visit ( CompoundStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 411 of file glslsemantic.cpp.

◆ visit() [7/37]

bool Semantic::visit ( DeclarationExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 394 of file glslsemantic.cpp.

◆ visit() [8/37]

bool Semantic::visit ( DeclarationStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 480 of file glslsemantic.cpp.

◆ visit() [9/37]

bool Semantic::visit ( DoStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 439 of file glslsemantic.cpp.

◆ visit() [10/37]

bool Semantic::visit ( ExpressionStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 405 of file glslsemantic.cpp.

◆ visit() [11/37]

bool Semantic::visit ( ForStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 446 of file glslsemantic.cpp.

◆ visit() [12/37]

bool Semantic::visit ( FunctionCallExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 339 of file glslsemantic.cpp.

◆ visit() [13/37]

bool Semantic::visit ( FunctionDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 832 of file glslsemantic.cpp.

◆ visit() [14/37]

bool Semantic::visit ( FunctionIdentifierAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 144 of file glslsemantic.cpp.

◆ visit() [15/37]

bool Semantic::visit ( IdentifierExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 160 of file glslsemantic.cpp.

◆ visit() [16/37]

bool Semantic::visit ( IfStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 424 of file glslsemantic.cpp.

◆ visit() [17/37]

bool Semantic::visit ( InitDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 823 of file glslsemantic.cpp.

◆ visit() [18/37]

bool Semantic::visit ( InvariantDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 817 of file glslsemantic.cpp.

◆ visit() [19/37]

bool Semantic::visit ( JumpStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 455 of file glslsemantic.cpp.

◆ visit() [20/37]

bool GLSL::Semantic::visit ( LayoutQualifierAST * ast)
inlineoverrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 102 of file glslsemantic_p.h.

◆ visit() [21/37]

bool Semantic::visit ( LiteralExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 171 of file glslsemantic.cpp.

◆ visit() [22/37]

bool Semantic::visit ( MemberAccessExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 264 of file glslsemantic.cpp.

◆ visit() [23/37]

bool Semantic::visit ( NamedTypeAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 716 of file glslsemantic.cpp.

◆ visit() [24/37]

bool Semantic::visit ( ParameterDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 778 of file glslsemantic.cpp.

◆ visit() [25/37]

bool Semantic::visit ( PrecisionDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 771 of file glslsemantic.cpp.

◆ visit() [26/37]

bool Semantic::visit ( QualifiedTypeAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 757 of file glslsemantic.cpp.

◆ visit() [27/37]

bool Semantic::visit ( ReturnStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 461 of file glslsemantic.cpp.

◆ visit() [28/37]

bool Semantic::visit ( StructTypeAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 740 of file glslsemantic.cpp.

◆ visit() [29/37]

bool Semantic::visit ( StructTypeAST::Field * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 151 of file glslsemantic.cpp.

◆ visit() [30/37]

bool Semantic::visit ( SwitchStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 467 of file glslsemantic.cpp.

◆ visit() [31/37]

bool Semantic::visit ( TernaryExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 247 of file glslsemantic.cpp.

◆ visit() [32/37]

bool Semantic::visit ( TranslationUnitAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 137 of file glslsemantic.cpp.

◆ visit() [33/37]

bool Semantic::visit ( TypeAndVariableDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 810 of file glslsemantic.cpp.

◆ visit() [34/37]

bool Semantic::visit ( TypeDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 803 of file glslsemantic.cpp.

◆ visit() [35/37]

bool Semantic::visit ( UnaryExpressionAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 240 of file glslsemantic.cpp.

◆ visit() [36/37]

bool Semantic::visit ( VariableDeclarationAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 785 of file glslsemantic.cpp.

◆ visit() [37/37]

bool Semantic::visit ( WhileStatementAST * ast)
overrideprotectedvirtual

Reimplemented from GLSL::Visitor.

Definition at line 432 of file glslsemantic.cpp.


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