]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make a few arguments constant for more efficiency and consistency.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Mar 2007 20:17:41 +0000 (20:17 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Mar 2007 20:17:41 +0000 (20:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@14594 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function_parser.h
deal.II/base/source/function_parser.cc

index 80f5d073e452b0e012d37c53a0fe64a120977bf7..10eb0158be6d2cf39b3c9ca053f969aad3212462 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2005, 2006 by the deal.II authors
+//    Copyright (C) 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -360,9 +360,9 @@ class FunctionParser : public Function<dim>
                                       * default for this parameter is false,
                                       * i.e. use radians and not degrees.
                                       */
-    void initialize (const std::string vars,
-                     const std::vector<std::string> expressions,
-                     const ConstMap constants,
+    void initialize (const std::string              &vars,
+                     const std::vector<std::string> &expressions,
+                     const ConstMap                 &constants,
                      const bool time_dependent = false,
                      const bool use_degrees = false);
   
@@ -378,9 +378,9 @@ class FunctionParser : public Function<dim>
                                       * parsed does not match the number of
                                       * components of the base function.
                                       */
-    void initialize (const std::string vars,
-                     const std::string expression,
-                     const ConstMap constants,
+    void initialize (const std::string &vars,
+                     const std::string &expression,
+                     const ConstMap    &constants,
                      const bool time_dependent = false,
                      const bool use_degrees = false);
   
index a98a7a4e11763e8f058e24ac2b19bd4219d83cd8..7953dc5dd4efa793b532e7adb03287827468df91 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2005, 2006 by the deal.II authors
+//    Copyright (C) 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -54,9 +54,9 @@ FunctionParser<dim>::~FunctionParser()
 #ifndef DEAL_II_DISABLE_PARSER
 
 template <int dim>
-void FunctionParser<dim>::initialize (const std::string variables,
-                                     const std::vector<std::string> expressions,
-                                     const std::map<std::string, double> constants,
+void FunctionParser<dim>::initialize (const std::string                   &variables,
+                                     const std::vector<std::string>      &expressions,
+                                     const std::map<std::string, double> &constants,
                                      const bool time_dependent,
                                      const bool use_degrees)
 {
@@ -126,9 +126,9 @@ void FunctionParser<dim>::initialize (const std::string variables,
 
 
 template <int dim>
-void FunctionParser<dim>::initialize (const std::string variables,
-                                     const std::string expression,
-                                     const std::map<std::string, double> constants,
+void FunctionParser<dim>::initialize (const std::string &variables,
+                                     const std::string &expression,
+                                     const std::map<std::string, double> &constants,
                                      const bool time_dependent,
                                      const bool use_degrees)
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.