lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a07a61b8 13/13: Declutter


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a07a61b8 13/13: Declutter
Date: Wed, 27 Jul 2022 15:16:34 -0400 (EDT)

branch: master
commit a07a61b8b82d64b5f167ccac3b58a7878d5f695d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Declutter
    
    Removed needless blocks of defaulted special members.
---
 dbvalue.hpp            |  6 ------
 fund_data.hpp          |  7 -------
 gpt_server.hpp         |  6 ------
 illustrator.hpp        |  6 ------
 ledger.hpp             |  6 ------
 mec_server.hpp         |  6 ------
 product_data.hpp       | 10 ++--------
 rounding_rules.hpp     |  6 ------
 rtti_lmi.hpp           |  6 ------
 stratified_charges.hpp | 12 +++---------
 test_coding_rules.cpp  |  8 --------
 yare_input.hpp         |  6 ------
 12 files changed, 5 insertions(+), 80 deletions(-)

diff --git a/dbvalue.hpp b/dbvalue.hpp
index a0b0d5e0..cfc03c69 100644
--- a/dbvalue.hpp
+++ b/dbvalue.hpp
@@ -76,12 +76,6 @@ class LMI_SO database_entity final
         ,std::string const& gloss = std::string()
         );
 
-    database_entity(database_entity const&) = default;
-    database_entity(database_entity&&) = default;
-    database_entity& operator=(database_entity const&) = default;
-    database_entity& operator=(database_entity&&) = default;
-    ~database_entity() = default;
-
     bool operator==(database_entity const&) const;
 
     void reshape(std::vector<int> const& dims);
diff --git a/fund_data.hpp b/fund_data.hpp
index d7691a51..37198395 100644
--- a/fund_data.hpp
+++ b/fund_data.hpp
@@ -46,12 +46,6 @@ class LMI_SO FundInfo final
         ,std::string const& gloss = std::string()
         );
 
-    FundInfo(FundInfo const&) = default;
-    FundInfo(FundInfo&&) = default;
-    FundInfo& operator=(FundInfo const&) = default;
-    FundInfo& operator=(FundInfo&&) = default;
-    ~FundInfo() = default;
-
     double ScalarIMF() const;
     std::string const& ShortName() const;
     std::string const& LongName() const;
@@ -69,7 +63,6 @@ class LMI_SO FundData final
 {
   public:
     explicit FundData(fs::path const& a_Filename);
-    ~FundData() = default;
 
     static void write_funds_files();
     static void write_proprietary_funds_files();
diff --git a/gpt_server.hpp b/gpt_server.hpp
index 57ae847b..72c44018 100644
--- a/gpt_server.hpp
+++ b/gpt_server.hpp
@@ -46,12 +46,6 @@ class LMI_SO gpt_server final
   public:
     explicit gpt_server(mcenum_emission);
 
-    gpt_server(gpt_server const&) = default;
-    gpt_server(gpt_server&&) = default;
-    gpt_server& operator=(gpt_server const&) = default;
-    gpt_server& operator=(gpt_server&&) = default;
-    ~gpt_server() = default;
-
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, gpt_input const&);
 
diff --git a/illustrator.hpp b/illustrator.hpp
index 27832e49..758e1a99 100644
--- a/illustrator.hpp
+++ b/illustrator.hpp
@@ -41,12 +41,6 @@ class LMI_SO illustrator final
   public:
     explicit illustrator(mcenum_emission);
 
-    illustrator(illustrator const&) = default;
-    illustrator(illustrator&&) = default;
-    illustrator& operator=(illustrator const&) = default;
-    illustrator& operator=(illustrator&&) = default;
-    ~illustrator() = default;
-
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, Input const&);
     bool operator()(fs::path const&, std::vector<Input> const&);
diff --git a/ledger.hpp b/ledger.hpp
index 338b9e73..66856941 100644
--- a/ledger.hpp
+++ b/ledger.hpp
@@ -73,12 +73,6 @@ class LMI_SO Ledger final
         ,bool               is_composite
         );
 
-    Ledger(Ledger const&) = default;
-    Ledger(Ledger&&) = default;
-    Ledger& operator=(Ledger const&) = default;
-    Ledger& operator=(Ledger&&) = default;
-    ~Ledger() = default;
-
     void ZeroInforceAfterLapse();
     Ledger& PlusEq(Ledger const& a_Addend);
 
diff --git a/mec_server.hpp b/mec_server.hpp
index af9b8bef..f2980b16 100644
--- a/mec_server.hpp
+++ b/mec_server.hpp
@@ -46,12 +46,6 @@ class LMI_SO mec_server final
   public:
     explicit mec_server(mcenum_emission);
 
-    mec_server(mec_server const&) = default;
-    mec_server(mec_server&&) = default;
-    mec_server& operator=(mec_server const&) = default;
-    mec_server& operator=(mec_server&&) = default;
-    ~mec_server() = default;
-
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, mec_input const&);
 
diff --git a/product_data.hpp b/product_data.hpp
index e0e03a69..8dfc6869 100644
--- a/product_data.hpp
+++ b/product_data.hpp
@@ -49,12 +49,6 @@ class glossed_string final
         ,std::string const& gloss = std::string()
         );
 
-    glossed_string(glossed_string const&) = default;
-    glossed_string(glossed_string&&) = default;
-    glossed_string& operator=(glossed_string const&) = default;
-    glossed_string& operator=(glossed_string&&) = default;
-    ~glossed_string() = default;
-
     glossed_string& operator=(std::string const&);
 
     bool operator==(glossed_string const&) const;
@@ -63,8 +57,8 @@ class glossed_string final
     std::string const& gloss() const;
 
   private:
-    std::string datum_;
-    std::string gloss_;
+    std::string datum_ {};
+    std::string gloss_ {};
 };
 
 class product_data;
diff --git a/rounding_rules.hpp b/rounding_rules.hpp
index 9aa57e67..c92b48e8 100644
--- a/rounding_rules.hpp
+++ b/rounding_rules.hpp
@@ -47,12 +47,6 @@ class LMI_SO rounding_parameters final
         ,std::string const& gloss = std::string()
         );
 
-    rounding_parameters(rounding_parameters const&) = default;
-    rounding_parameters(rounding_parameters&&) = default;
-    rounding_parameters& operator=(rounding_parameters const&) = default;
-    rounding_parameters& operator=(rounding_parameters&&) = default;
-    ~rounding_parameters() = default;
-
     bool operator==(rounding_parameters const&) const;
 
     int                       decimals() const;
diff --git a/rtti_lmi.hpp b/rtti_lmi.hpp
index 3570937f..0a38941a 100644
--- a/rtti_lmi.hpp
+++ b/rtti_lmi.hpp
@@ -125,12 +125,6 @@ class TypeInfo final
   public:
     TypeInfo(std::type_info const& z): ti_(&z) {}
 
-    TypeInfo(TypeInfo const&) = default;
-    TypeInfo(TypeInfo&&) = default;
-    TypeInfo& operator=(TypeInfo const&) = default;
-    TypeInfo& operator=(TypeInfo&&) = default;
-    ~TypeInfo() = default;
-
     bool operator==(TypeInfo const& z) const {return *z.ti_ == *ti_;}
     bool  operator<(TypeInfo const& z) const {return ti_->before(*z.ti_);}
 
diff --git a/stratified_charges.hpp b/stratified_charges.hpp
index 4c02d510..cdf27254 100644
--- a/stratified_charges.hpp
+++ b/stratified_charges.hpp
@@ -76,12 +76,6 @@ class LMI_SO stratified_entity final
         ,std::string const&         gloss = std::string()
         );
 
-    stratified_entity(stratified_entity const&) = default;
-    stratified_entity(stratified_entity&&) = default;
-    stratified_entity& operator=(stratified_entity const&) = default;
-    stratified_entity& operator=(stratified_entity&&) = default;
-    ~stratified_entity() = default;
-
     bool operator==(stratified_entity const&) const;
 
     void read (xml::element const& node);
@@ -94,9 +88,9 @@ class LMI_SO stratified_entity final
     std::vector<double> const& values() const;
     std::string const&         gloss () const;
 
-    std::vector<double> limits_;
-    std::vector<double> values_;
-    std::string         gloss_;
+    std::vector<double> limits_ {};
+    std::vector<double> values_ {};
+    std::string         gloss_  {};
 };
 
 /// Rates that depend upon the amount they're multiplied by.
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index b8c3125d..8409704e 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -1167,14 +1167,6 @@ void enforce_taboos(file const& f)
 class statistics
 {
   public:
-    statistics() = default;
-
-    statistics(statistics const&) = default;
-    statistics(statistics&&) = default;
-    statistics& operator=(statistics const&) = default;
-    statistics& operator=(statistics&&) = default;
-    ~statistics() = default;
-
     statistics& operator+=(statistics const&);
 
     static statistics analyze_file(file const&);
diff --git a/yare_input.hpp b/yare_input.hpp
index 67a66f2d..b202f59d 100644
--- a/yare_input.hpp
+++ b/yare_input.hpp
@@ -55,12 +55,6 @@ class yare_input final
   public:
     explicit yare_input(Input const&);
 
-    yare_input(yare_input const&) = default;
-    yare_input(yare_input&&) = default;
-    yare_input& operator=(yare_input const&) = default;
-    yare_input& operator=(yare_input&&) = default;
-    ~yare_input() = default;
-
     int                               IssueAge                        ;
     int                               RetirementAge                   ;
     mcenum_gender                     Gender                          ;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]