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
glslsymbol.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "glslsymbol_p.h"
5#include <QStringList>
6
8
9using namespace GLSL;
10
12 : _scope(scope)
13{
14}
15
19
21{
22 return _scope;
23}
24
26{
27 _scope = scope;
28}
29
31{
32 return _name;
33}
34
36{
37 _name = name;
38}
39
40Scope::Scope(Scope *enclosingScope)
41 : Symbol(enclosingScope)
42{
43}
44
46{
47 if (Symbol *s = find(name))
48 return s;
49 if (Scope *s = scope())
50 return s->lookup(name);
51
52 return nullptr;
53}
54
55QList<Symbol *> Scope::members() const
56{
57 return QList<Symbol *>();
58}
59
Scope(Scope *sscope=nullptr)
Symbol * lookup(const QString &name) const
virtual QList< Symbol * > members() const
virtual Symbol * find(const QString &name) const =0
Scope * scope() const
virtual ~Symbol()
void setScope(Scope *scope)
void setName(const QString &name)
QString name() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Definition glsl_p.h:22
Combined button and popup list for selecting options.
GLuint name
GLdouble s
[6]
Definition qopenglext.h:235
Symbol()=default