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

#include <glslsymbol_p.h>

+ Inheritance diagram for GLSL::Scope:
+ Collaboration diagram for GLSL::Scope:

Public Member Functions

 Scope (Scope *sscope=nullptr)
 
Symbollookup (const QString &name) const
 
virtual QList< Symbol * > members () const
 
virtual void add (Symbol *symbol)=0
 
virtual Symbolfind (const QString &name) const =0
 
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 ()
 
virtual const Typetype () const =0
 

Detailed Description

Definition at line 56 of file glslsymbol_p.h.

Constructor & Destructor Documentation

◆ Scope()

Scope::Scope ( Scope * sscope = nullptr)

Definition at line 40 of file glslsymbol.cpp.

Member Function Documentation

◆ add()

virtual void GLSL::Scope::add ( Symbol * symbol)
pure virtual

Implemented in GLSL::Struct, GLSL::Block, GLSL::Namespace, GLSL::VectorType, GLSL::Function, and GLSL::OverloadSet.

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

+ Here is the caller graph for this function:

◆ asScope()

Scope * GLSL::Scope::asScope ( )
inlineoverridevirtual

Reimplemented from GLSL::Symbol.

Definition at line 67 of file glslsymbol_p.h.

◆ find()

virtual Symbol * GLSL::Scope::find ( const QString & name) const
pure virtual

Implemented in GLSL::Block, GLSL::Namespace, GLSL::VectorType, GLSL::Struct, GLSL::Function, and GLSL::OverloadSet.

Referenced by lookup().

+ Here is the caller graph for this function:

◆ lookup()

Symbol * Scope::lookup ( const QString & name) const

Definition at line 45 of file glslsymbol.cpp.

References find(), and GLSL::Symbol::scope().

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

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

◆ members()

QList< Symbol * > Scope::members ( ) const
virtual

Reimplemented in GLSL::Block, GLSL::Namespace, GLSL::VectorType, GLSL::Struct, and GLSL::Function.

Definition at line 55 of file glslsymbol.cpp.


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