lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 87991df 2/8: Improve encapsulation


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 87991df 2/8: Improve encapsulation
Date: Mon, 30 Jan 2017 02:49:04 +0000 (UTC)

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

    Improve encapsulation
    
    realize_vector() establishes class invariants, so naturally it should
    be private.
---
 input_sequence.hpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/input_sequence.hpp b/input_sequence.hpp
index 0752e3f..62687f7 100644
--- a/input_sequence.hpp
+++ b/input_sequence.hpp
@@ -258,8 +258,6 @@ class LMI_SO InputSequence
     InputSequence(double value_to_retirement, double value_from_retirement);
     ~InputSequence();
 
-    void realize_vector();
-
     // SOMEDAY !! This probably ought to return a reference.
     std::vector<double> linear_number_representation() const;
     std::vector<std::string> linear_keyword_representation() const;
@@ -278,6 +276,8 @@ class LMI_SO InputSequence
         ) const;
 
   private:
+    void realize_vector();
+
     enum token_type
         {e_eof             = 0
         ,e_major_separator = ';'



reply via email to

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