QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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
19
20//
21// QgsProcessingModelChildResult
22//
23
25
26
27//
28// QgsProcessingModelResult
29//
30
32
34{
35 mChildResults.clear();
36 mExecutedChildren.clear();
37 mRawChildInputs.clear();
38 mRawChildOutputs.clear();
39}
40
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}
Encapsulates the results of running a Processing model.
void clear()
Clears any existing results.
void mergeWith(const QgsProcessingModelResult &other)
Merges this set of results with an other set of results.