lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master fe695aa 2/4: Split excessively-long lines


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fe695aa 2/4: Split excessively-long lines
Date: Mon, 5 Nov 2018 19:33:45 -0500 (EST)

branch: master
commit fe695aaa9735d6245cbfca5890a63aecea5310bb
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Split excessively-long lines
    
    Soon, function names will change, some becoming longer, so it's better
    to limit lines to eighty characters now. Copyright notices are an
    exception because they are parsed for the years they contain, which is
    easier when they don't span multiple lines.
---
 database.cpp | 11 +++++++++--
 database.hpp |  6 +++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/database.cpp b/database.cpp
index 09f84f0..022d1a3 100644
--- a/database.cpp
+++ b/database.cpp
@@ -93,7 +93,11 @@ database_index product_database::index() const
 
 /// Query database; write result into vector argument.
 
-void product_database::Query(std::vector<double>& dst, e_database_key k, 
database_index const& i) const
+void product_database::Query
+    (std::vector<double>&  dst
+    ,e_database_key        k
+    ,database_index const& i
+    ) const
 {
     int const local_length = maturity_age_ - 
i.index_vector()[e_axis_issue_age];
     LMI_ASSERT(0 < local_length && local_length <= methuselah);
@@ -154,7 +158,10 @@ double product_database::Query(e_database_key k) const
 ///  - DB_PremTaxLoad (what the insurer charges the customer)
 /// may be equivalent when premium tax is passed through as a load.
 
-bool product_database::are_equivalent(e_database_key k0, e_database_key k1) 
const
+bool product_database::are_equivalent
+    (e_database_key k0
+    ,e_database_key k1
+    ) const
 {
     database_entity const& e0 = entity_from_key(k0);
     database_entity const& e1 = entity_from_key(k1);
diff --git a/database.hpp b/database.hpp
index 6b48909..12b0722 100644
--- a/database.hpp
+++ b/database.hpp
@@ -64,7 +64,11 @@ class LMI_SO product_database final
     int length() const;
     database_index index() const;
 
-    void Query(std::vector<double>&, e_database_key, database_index const&) 
const;
+    void Query
+        (std::vector<double>&
+        ,e_database_key
+        ,database_index const&
+        ) const;
     void Query(std::vector<double>&, e_database_key) const;
 
     double Query(e_database_key, database_index const&) const;



reply via email to

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