lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5584] Remove obsolete code; move and improve documentatio


From: Greg Chicares
Subject: [lmi-commits] [5584] Remove obsolete code; move and improve documentation
Date: Fri, 26 Oct 2012 13:10:36 +0000

Revision: 5584
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5584
Author:   chicares
Date:     2012-10-26 13:10:32 +0000 (Fri, 26 Oct 2012)
Log Message:
-----------
Remove obsolete code; move and improve documentation

Modified Paths:
--------------
    lmi/trunk/input_harmonization.cpp
    lmi/trunk/mc_enum.cpp

Modified: lmi/trunk/input_harmonization.cpp
===================================================================
--- lmi/trunk/input_harmonization.cpp   2012-10-25 09:30:12 UTC (rev 5583)
+++ lmi/trunk/input_harmonization.cpp   2012-10-26 13:10:32 UTC (rev 5584)
@@ -622,34 +622,6 @@
     Payment           .enable(mce_solve_ee_prem != SolveType);
     CorporationPayment.enable(mce_solve_er_prem != SolveType);
 
-    IndividualPaymentMode.allow_all(true);
-    // TODO ?? Should the following be permitted? If so, then either
-    // enumerators must always be simple zero-based ordinals, or
-    // arguments to allow() must be values instead of ordinals.
-//    IndividualPaymentMode.allow(mce_annual    , true);
-//    IndividualPaymentMode.allow(mce_semiannual, true);
-//    IndividualPaymentMode.allow(mce_quarterly , true);
-//    IndividualPaymentMode.allow(mce_monthly   , true);
-
-/*
-    // TODO ?? WX PORT !! Figure out how to do this properly:
-
-    if(is_indv_mode_sequence_empty)
-        {
-        MODE_ANNUAL     ->SetCheck(BF_CHECKED);
-        MODE_SEMI       ->SetCheck(BF_UNCHECKED);
-        MODE_QUARTERLY  ->SetCheck(BF_UNCHECKED);
-        MODE_MONTHLY    ->SetCheck(BF_UNCHECKED);
-        }
-    if(!is_indv_mode_simply_representable)
-        {
-        MODE_ANNUAL     ->EnableWindow(false);
-        MODE_SEMI       ->EnableWindow(false);
-        MODE_QUARTERLY  ->EnableWindow(false);
-        MODE_MONTHLY    ->EnableWindow(false);
-        }
-*/
-
     GeneralAccountRateType .allow(mce_credited_rate , true);
     GeneralAccountRateType .allow(mce_earned_rate, mce_no == 
UseCurrentDeclaredRate && (anything_goes || 
database_->Query(DB_AllowGenAcctEarnRate)));
 

Modified: lmi/trunk/mc_enum.cpp
===================================================================
--- lmi/trunk/mc_enum.cpp       2012-10-25 09:30:12 UTC (rev 5583)
+++ lmi/trunk/mc_enum.cpp       2012-10-26 13:10:32 UTC (rev 5584)
@@ -35,6 +35,14 @@
 {
 }
 
+/// Permit or forbid a particular enumerative choice.
+///
+/// The 'index' argument is the index of the enumerator within the
+/// enumeration (i.e, what ordinal() returns), which does not
+/// necessarily equal the value of the enumerator.
+///
+/// Throws (via at()) if 'index' is out of range.
+
 void mc_enum_base::allow(int index, bool b)
 {
     allowed_.at(index) = b;




reply via email to

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