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

#include <glslsymbol_p.h>

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

Public Member Functions

 Scope (Scope *sscope=nullptr)
Symbol * lookup (const QString &name) const
virtual QList< Symbol * > members () const
virtual void add (Symbol *symbol)=0
virtual Symbol * find (const QString &name) const =0
Scope * asScope () override
Public Member Functions inherited from GLSL::Symbol
 Symbol (Scope *scope=nullptr)
virtual ~Symbol ()
Scope * scope () const
void setScope (Scope *scope)
QString name () const
void setName (const QString &name)
virtual Struct * asStruct ()
virtual Function * asFunction ()
virtual Argument * asArgument ()
virtual Block * asBlock ()
virtual Variable * asVariable ()
virtual OverloadSet * asOverloadSet ()
virtual Namespace * asNamespace ()
virtual const Type * type () const =0

Detailed Description

Definition at line 58 of file glslsymbol_p.h.

Constructor & Destructor Documentation

◆ Scope()

Scope::Scope ( Scope * sscope = nullptr)

Definition at line 42 of file glslsymbol.cpp.

Member Function Documentation

◆ add()

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

◆ asScope()

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

Reimplemented from GLSL::Symbol.

Definition at line 69 of file glslsymbol_p.h.

◆ find()

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

◆ lookup()

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

Definition at line 47 of file glslsymbol.cpp.

◆ members()

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

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

Definition at line 57 of file glslsymbol.cpp.


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