2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2015-03-25 22:32:46 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2015-03-25 22:32:46 +02:00
|
|
|
|
2015-11-19 13:49:26 +01:00
|
|
|
#include <cplusplus/TypeVisitor.h>
|
|
|
|
|
#include <cplusplus/NameVisitor.h>
|
|
|
|
|
#include <cplusplus/FullySpecifiedType.h>
|
|
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
|
#include <QPair>
|
|
|
|
|
#include <QSharedPointer>
|
2015-03-25 22:32:46 +02:00
|
|
|
|
|
|
|
|
namespace CPlusPlus {
|
|
|
|
|
|
2015-11-19 13:49:26 +01:00
|
|
|
class CPLUSPLUS_EXPORT DeprecatedGenTemplateInstance
|
2015-03-25 22:32:46 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2015-11-19 13:49:26 +01:00
|
|
|
typedef QList< QPair<const Identifier *, FullySpecifiedType> > Substitution;
|
2015-03-25 22:32:46 +02:00
|
|
|
|
2015-11-19 13:49:26 +01:00
|
|
|
public:
|
|
|
|
|
static FullySpecifiedType instantiate(const Name *className, Symbol *candidate, QSharedPointer<Control> control);
|
2015-03-25 22:32:46 +02:00
|
|
|
|
2015-11-19 13:49:26 +01:00
|
|
|
private:
|
|
|
|
|
DeprecatedGenTemplateInstance(QSharedPointer<Control> control, const Substitution &substitution);
|
|
|
|
|
FullySpecifiedType gen(Symbol *symbol);
|
2015-03-25 22:32:46 +02:00
|
|
|
|
2015-11-19 13:49:26 +01:00
|
|
|
private:
|
|
|
|
|
QSharedPointer<Control> _control;
|
|
|
|
|
const Substitution _substitution;
|
2015-03-25 22:32:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace CPlusPlus
|