Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ComponentAndInstantiationsParameterFinder.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: ComponentAndInstantiationsParameterFinder.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Mikko Teuho
6// Date: 02.04.2020
7//
8// Description:
9// The implementation for finding parameters from the full component with the correct ID.
10//-----------------------------------------------------------------------------
11
12#ifndef COMPONENTANDINSTANTIATIONSPARAMETERFINDER_H
13#define COMPONENTANDINSTANTIATIONSPARAMETERFINDER_H
14
15#include <KactusAPI/KactusAPIGlobal.h>
16
18
19class Component;
20
21//-----------------------------------------------------------------------------
23//-----------------------------------------------------------------------------
25{
26
27public:
28
34 explicit ComponentAndInstantiationsParameterFinder(QSharedPointer<Component const> component) noexcept;
35
39 = delete;
40
45
51 QStringList getAllParameterIds() const final;
52
58 int getNumberOfParameters() const final;
59
65 QList<QSharedPointer<Parameter> > allInstantiationsParameters() const;
66
67private:
68
76 QSharedPointer<Parameter> searchParameter(QStringView parameterId) const final;
77};
78
79#endif // COMPONENTPARAMETERFINDER_H
QStringList getAllParameterIds() const final
ComponentAndInstantiationsParameterFinder(const ComponentAndInstantiationsParameterFinder &other)=delete
No copying. No assignment.
~ComponentAndInstantiationsParameterFinder() final=default
ComponentAndInstantiationsParameterFinder(QSharedPointer< Component const > component) noexcept
QList< QSharedPointer< Parameter > > allInstantiationsParameters() const
ComponentAndInstantiationsParameterFinder & operator=(const ComponentAndInstantiationsParameterFinder &other)=delete
ComponentParameterFinder(QSharedPointer< Component const > component) noexcept