[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b83bdf0 7/7: Improve concinnity
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b83bdf0 7/7: Improve concinnity |
Date: |
Sun, 23 Aug 2020 18:00:52 -0400 (EDT) |
branch: master
commit b83bdf004daac1e49acd28682f3be47bb6922eed
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve concinnity
Moved two mutators out of the header, to conform to the pattern of the
other member functions (accessors in the header; mutators not).
---
outlay.cpp | 10 ++++++++++
outlay.hpp | 10 ----------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/outlay.cpp b/outlay.cpp
index 88ab2fb..9c1e422 100644
--- a/outlay.cpp
+++ b/outlay.cpp
@@ -49,6 +49,16 @@ modal_outlay::modal_outlay
{
}
+void modal_outlay::set_external_1035_amount(double z)
+{
+ external_1035_amount_ = round_gross_premium_(z);
+}
+
+void modal_outlay::set_internal_1035_amount(double z)
+{
+ internal_1035_amount_ = round_gross_premium_(z);
+}
+
void modal_outlay::set_ee_modal_premiums(double z, int from_year, int to_year)
{
z = round_gross_premium_(z);
diff --git a/outlay.hpp b/outlay.hpp
index f8baf36..9bc6044 100644
--- a/outlay.hpp
+++ b/outlay.hpp
@@ -128,14 +128,4 @@ inline std::vector<double> const&
modal_outlay::new_cash_loans() const
return new_cash_loans_;
}
-inline void modal_outlay::set_external_1035_amount(double z)
-{
- external_1035_amount_ = round_gross_premium_(z);
-}
-
-inline void modal_outlay::set_internal_1035_amount(double z)
-{
- internal_1035_amount_ = round_gross_premium_(z);
-}
-
#endif // outlay_hpp
- [lmi-commits] [lmi] master updated (d9955ce -> b83bdf0), Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master 9cbb041 1/7: Prefer 'git switch' to optionless 'git checkout', Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master 9553083 4/7: Prepare to round in class modal_outlay, Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master a92e5c3 5/7: Overload rounding function objects to handle vectors, Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master 7ac2bd0 2/7: Say why a header is included, Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master 2ceaa93 3/7: Change order of loans and withdrawals in class modal_outlay, Greg Chicares, 2020/08/23
- [lmi-commits] [lmi] master b83bdf0 7/7: Improve concinnity,
Greg Chicares <=
- [lmi-commits] [lmi] master 5afe8dc 6/7: Round values in class modal_outlay, Greg Chicares, 2020/08/23