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

#include <glslsymbol_p.h>

+ Inheritance diagram for GLSL::Symbol:
+ Collaboration diagram for GLSL::Symbol:

Public Member Functions

 Symbol (Scope *scope=nullptr)
 
virtual ~Symbol ()
 
Scopescope () const
 
void setScope (Scope *scope)
 
QString name () const
 
void setName (const QString &name)
 
virtual ScopeasScope ()
 
virtual StructasStruct ()
 
virtual FunctionasFunction ()
 
virtual ArgumentasArgument ()
 
virtual BlockasBlock ()
 
virtual VariableasVariable ()
 
virtual OverloadSetasOverloadSet ()
 
virtual NamespaceasNamespace ()
 
virtual const Typetype () const =0
 

Detailed Description

Definition at line 28 of file glslsymbol_p.h.

Constructor & Destructor Documentation

◆ Symbol()

Symbol::Symbol ( Scope * scope = nullptr)

Definition at line 11 of file glslsymbol.cpp.

◆ ~Symbol()

Symbol::~Symbol ( )
virtual

Definition at line 16 of file glslsymbol.cpp.

Member Function Documentation

◆ asArgument()

virtual Argument * GLSL::Symbol::asArgument ( )
inlinevirtual

Reimplemented in GLSL::Argument.

Definition at line 43 of file glslsymbol_p.h.

Referenced by GLSL::Function::add().

+ Here is the caller graph for this function:

◆ asBlock()

virtual Block * GLSL::Symbol::asBlock ( )
inlinevirtual

Reimplemented in GLSL::Block.

Definition at line 44 of file glslsymbol_p.h.

◆ asFunction()

virtual Function * GLSL::Symbol::asFunction ( )
inlinevirtual

Reimplemented in GLSL::Function.

Definition at line 42 of file glslsymbol_p.h.

Referenced by GLSL::Namespace::add(), and GLSL::OverloadSet::add().

+ Here is the caller graph for this function:

◆ asNamespace()

virtual Namespace * GLSL::Symbol::asNamespace ( )
inlinevirtual

Reimplemented in GLSL::Namespace.

Definition at line 47 of file glslsymbol_p.h.

◆ asOverloadSet()

virtual OverloadSet * GLSL::Symbol::asOverloadSet ( )
inlinevirtual

Reimplemented in GLSL::OverloadSet.

Definition at line 46 of file glslsymbol_p.h.

Referenced by GLSL::Namespace::add().

+ Here is the caller graph for this function:

◆ asScope()

virtual Scope * GLSL::Symbol::asScope ( )
inlinevirtual

Reimplemented in GLSL::Scope.

Definition at line 40 of file glslsymbol_p.h.

◆ asStruct()

virtual Struct * GLSL::Symbol::asStruct ( )
inlinevirtual

Reimplemented in GLSL::Struct.

Definition at line 41 of file glslsymbol_p.h.

◆ asVariable()

virtual Variable * GLSL::Symbol::asVariable ( )
inlinevirtual

Reimplemented in GLSL::Variable.

Definition at line 45 of file glslsymbol_p.h.

◆ name()

QString Symbol::name ( ) const

Definition at line 30 of file glslsymbol.cpp.

Referenced by GLSL::Block::add(), GLSL::Namespace::add(), GLSL::VectorType::add(), GLSL::Struct::find(), GLSL::Function::find(), GLSL::Function::prettyPrint(), and setName().

+ Here is the caller graph for this function:

◆ scope()

Scope * Symbol::scope ( ) const

Definition at line 20 of file glslsymbol.cpp.

Referenced by GLSL::Scope::lookup(), setScope(), and GLSL::Semantic::visit().

+ Here is the caller graph for this function:

◆ setName()

void Symbol::setName ( const QString & name)

Definition at line 35 of file glslsymbol.cpp.

References name().

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

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

◆ setScope()

void Symbol::setScope ( Scope * scope)

Definition at line 25 of file glslsymbol.cpp.

References scope().

+ Here is the call graph for this function:

◆ type()

virtual const Type * GLSL::Symbol::type ( ) const
pure virtual

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