From e3550a8fc050b236351368513354cb22692ed28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 4 Sep 2018 17:28:47 +0200 Subject: [PATCH] Various fixes in comments --- src/ModFile.hh | 2 +- src/macro/MacroValue.hh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ModFile.hh b/src/ModFile.hh index f15ccbd8..6b6d9c82 100644 --- a/src/ModFile.hh +++ b/src/ModFile.hh @@ -52,7 +52,7 @@ public: ExternalFunctionsTable external_functions_table; //! Numerical constants table NumericalConstants num_constants; - //! Var Model Table used for storing info about trend component models + //! Var Model Table used for storing info about VAR models VarModelTable var_model_table; //! Trend Component Model Table used for storing info about trend component models TrendComponentModelTable trend_component_model_table; diff --git a/src/macro/MacroValue.hh b/src/macro/MacroValue.hh index acb6447d..b696d15e 100644 --- a/src/macro/MacroValue.hh +++ b/src/macro/MacroValue.hh @@ -73,7 +73,7 @@ public: //! Less comparison /*! Returns an IntMV, equal to 0 or 1 */ virtual shared_ptr<IntMV> is_less(const MacroValuePtr &mv) noexcept(false); - //! Greater comparision + //! Greater comparison /*! Returns an IntMV, equal to 0 or 1 */ virtual shared_ptr<IntMV> is_greater(const MacroValuePtr &mv) noexcept(false); //! Less or equal comparison @@ -202,7 +202,7 @@ public: shared_ptr<IntMV> is_equal(const MacroValuePtr &mv) override; //! Subscripting operator /*! Argument must be an ArrayMV<int>. Indexes begin at 1. - If argument is a one-element array, returns an IntMV or StringMV. + If argument is a one-element array, returns the corresponding array element. Otherwise returns an array. */ MacroValuePtr subscript(const MacroValuePtr &mv) noexcept(false) override; //! Returns a string containing the concatenation of string representations of elements @@ -236,9 +236,8 @@ public: shared_ptr<IntMV> is_equal(const MacroValuePtr &mv) override; //! Subscripting operator - /*! Argument must be an ArrayMV<int>. Indexes begin at 1. Returns a StringMV. */ + /*! Argument must be an ArrayMV<int>. Indexes begin at 1. */ MacroValuePtr subscript(const MacroValuePtr &mv) noexcept(false) override; - //! Returns underlying string value string toString() override; string print() override; shared_ptr<IntMV> length() noexcept(false) override; -- GitLab