[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d7f3337 09/24: Move a block of code as just a
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d7f3337 09/24: Move a block of code as just announced |
Date: |
Wed, 30 Dec 2020 18:46:58 -0500 (EST) |
branch: master
commit d7f33371225f7f40fb3461dd7abea095ab9e37ab
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Move a block of code as just announced
This is assuredly safe: it relies on a const member
product_database const database_;
and "length" consistency is asserted.
---
ihs_basicval.cpp | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 7996696..c05b54e 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -143,6 +143,15 @@ BasicValues::BasicValues
);
yare_input_.DeathBenefitOption .assign(1, z.value());
+ int const db_len = database().length();
+ yare_input_.ExtraMonthlyCustodialFee .resize(db_len);
+ yare_input_.ExtraCompensationOnAssets .resize(db_len);
+ yare_input_.ExtraCompensationOnPremium.resize(db_len);
+ yare_input_.CurrentCoiMultiplier .assign(db_len, 1.0);
+ yare_input_.SpecifiedAmount .assign(db_len,
yare_input_.SpecifiedAmount [0]);
+ yare_input_.DeathBenefitOption .assign(db_len,
yare_input_.DeathBenefitOption[0]);
+ yare_input_.FlatExtra .resize(db_len);
+
GPTServerInit();
}
@@ -272,15 +281,6 @@ void BasicValues::GPTServerInit()
Length = EndtAge - IssueAge;
LMI_ASSERT(database().length() == Length);
- int const db_len = database().length();
- yare_input_.ExtraMonthlyCustodialFee .resize(db_len);
- yare_input_.ExtraCompensationOnAssets .resize(db_len);
- yare_input_.ExtraCompensationOnPremium.resize(db_len);
- yare_input_.CurrentCoiMultiplier .assign(db_len, 1.0);
- yare_input_.SpecifiedAmount .assign(db_len,
yare_input_.SpecifiedAmount [0]);
- yare_input_.DeathBenefitOption .assign(db_len,
yare_input_.DeathBenefitOption[0]);
- yare_input_.FlatExtra .resize(db_len);
-
database().query_into(DB_LedgerType , ledger_type_);
database().query_into(DB_Nonillustrated, nonillustrated_);
bool no_longer_issued = database().query<bool>(DB_NoLongerIssued);
- [lmi-commits] [lmi] master f2efed6 01/24: Guard against accidental Ctrl-D, (continued)
- [lmi-commits] [lmi] master f2efed6 01/24: Guard against accidental Ctrl-D, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master bf59b33 06/24: Resolve or demote some more marked defects [326], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 30412af 04/24: Report a range error when a range error is caught [336], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e7c9da0 08/24: Prepare to move a block of code, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 53e98ab 13/24: Fix defect introduced 20100723T2339Z: wrong jurisdiction [326], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e4c790a 18/24: Expunge a defect marker [324], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d89a676 22/24: Refactor to avoid a header-only implementation, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3121c90 23/24: Conditionally use H.R. 6800's 7702 transitional rates, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3ee0c70 15/24: Make two member functions identical, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d7f3337 09/24: Move a block of code as just announced,
Greg Chicares <=
- [lmi-commits] [lmi] master d4e0291 10/24: Refactor, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 71d750e 14/24: Make two member functions almost identical, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master a473a82 17/24: Expunge a duplicative member function [325], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 2bc3d08 02/24: Move an enum, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master b3cbe37 11/24: Move another block of code, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 9180696 16/24: Change a member's type-specifier, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3ee62a7 19/24: Read product data files earlier, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 7930f69 20/24: Set 7702 and 7702A interest rates OAOO, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d6701e8 21/24: Split a unit-test TU in twain, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e1047b3 24/24: Record speed measurements, Greg Chicares, 2020/12/30