WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
26f94558
Commit
26f94558
authored
Mar 01, 2011
by
Thomas Egger
Browse files
Added more comments to the operator= in MeteoData.cc
parent
ede63969
Changes
1
Hide whitespace changes
Inline
Side-by-side
meteoio/MeteoData.cc
View file @
26f94558
...
...
@@ -188,11 +188,10 @@ MeteoData& MeteoData::operator=(const MeteoData& rhs)
for
(
unsigned
int
ii
=
MeteoData
::
lastparam
+
1
;
ii
<
rhs
.
getNrOfParameters
();
ii
++
)
{
//for the extraparameters other measures are necessary
tmpit
=
rhs
.
meteoparam
.
find
(
ii
);
const
string
&
name
=
meteoparamname
[
ii
];
double
*
val
=
&
extraparameters
[
name
];
meteoparam
[
ii
]
=
val
;
mapParameterByName
[
name
]
=
val
;
const
string
&
name
=
meteoparamname
[
ii
];
//get the name of that extra parameter
double
*
val
=
&
extraparameters
[
name
];
//copy the pointer
meteoparam
[
ii
]
=
val
;
//copy pointer into meteoparam
mapParameterByName
[
name
]
=
val
;
//copy pointer into mapParameterByName
}
nrOfAllParameters
=
meteoparam
.
size
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment