Skip to content

Commit

Permalink
#2521 Added asignment operator with noexcept keyword to SSIDXData
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed May 11, 2023
1 parent 49f65b8 commit dc5ddfc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/libcode/vx_statistics/met_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,24 @@ void DMAPInfo::set_options(const int _baddeley_p, const double _baddeley_max_dis
n_full_points = _n_full_points;
}


////////////////////////////////////////////////////////////////////////


SSIDXData &SSIDXData::operator=(const SSIDXData &a) noexcept {
if ( this != &a ) {
ss_index_name = a.ss_index_name;
fcst_model = a.fcst_model;
ref_model = a.ref_model;
init_time = a.init_time;
n_term = a.n_term;
n_vld = a.n_vld;
ss_index = a.ss_index;
}
return *this;
}


////////////////////////////////////////////////////////////////////////
//
// Begin code for misc functions
Expand Down
5 changes: 4 additions & 1 deletion src/libcode/vx_statistics/met_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,13 @@ struct SSIDXData {
TimeArray init_time;

// Number of terms and number valid
int n_term, n_vld;
int n_term;
int n_vld;

// Skill score index value
double ss_index;

SSIDXData &operator=(const SSIDXData &a) noexcept;
};

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit dc5ddfc

Please sign in to comment.