QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
qgsprocessingmodelresult.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprocessingmodelresult.cpp
3
----------------------
4
begin : April 2024
5
copyright : (C) 2024 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#include "
qgsprocessingmodelresult.h
"
19
20
//
21
// QgsProcessingModelChildResult
22
//
23
24
QgsProcessingModelChildAlgorithmResult::QgsProcessingModelChildAlgorithmResult
() =
default
;
25
26
27
//
28
// QgsProcessingModelResult
29
//
30
31
QgsProcessingModelResult::QgsProcessingModelResult
() =
default
;
32
33
void
QgsProcessingModelResult::clear
()
34
{
35
mChildResults.clear();
36
mExecutedChildren.clear();
37
mRawChildInputs.clear();
38
mRawChildOutputs.clear();
39
}
40
41
void
QgsProcessingModelResult::mergeWith
(
const
QgsProcessingModelResult
&other )
42
{
43
for
(
auto
it = other.mChildResults.constBegin(); it != other.mChildResults.constEnd(); ++it )
44
{
45
mChildResults.insert( it.key(), it.value() );
46
}
47
mExecutedChildren.unite( other.mExecutedChildren );
48
for
(
auto
it = other.mRawChildInputs.constBegin(); it != other.mRawChildInputs.constEnd(); ++it )
49
{
50
mRawChildInputs.insert( it.key(), it.value() );
51
}
52
for
(
auto
it = other.mRawChildOutputs.constBegin(); it != other.mRawChildOutputs.constEnd(); ++it )
53
{
54
mRawChildOutputs.insert( it.key(), it.value() );
55
}
56
}
QgsProcessingModelChildAlgorithmResult::QgsProcessingModelChildAlgorithmResult
QgsProcessingModelChildAlgorithmResult()
QgsProcessingModelResult::clear
void clear()
Clears any existing results.
Definition
qgsprocessingmodelresult.cpp:33
QgsProcessingModelResult::mergeWith
void mergeWith(const QgsProcessingModelResult &other)
Merges this set of results with an other set of results.
Definition
qgsprocessingmodelresult.cpp:41
QgsProcessingModelResult::QgsProcessingModelResult
QgsProcessingModelResult()
qgsprocessingmodelresult.h
Generated on
for QGIS API Documentation by
1.17.0