From: bangerth Date: Mon, 27 Aug 2007 20:04:33 +0000 (+0000) Subject: Make a number of parameters constant references X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec69021017af3bbb36073f46660721fe062a951f;p=dealii-svn.git Make a number of parameters constant references git-svn-id: https://svn.dealii.org/trunk@15074 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/data_out_base.h b/deal.II/base/include/base/data_out_base.h index 1337080818..4392ad6318 100644 --- a/deal.II/base/include/base/data_out_base.h +++ b/deal.II/base/include/base/data_out_base.h @@ -492,7 +492,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -547,7 +547,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -605,7 +605,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -686,7 +686,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -1017,7 +1017,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -1081,7 +1081,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -1146,7 +1146,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -1205,7 +1205,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for @@ -1281,7 +1281,7 @@ class DataOutBase * The flags thus obtained overwrite * all previous contents of this object. */ - void parse_parameters (ParameterHandler &prm); + void parse_parameters (const ParameterHandler &prm); /** * Determine an estimate for diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 72ea137964..a5165e86ac 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -321,7 +321,7 @@ void DataOutBase::DXFlags::declare_parameters (ParameterHandler &prm) -void DataOutBase::DXFlags::parse_parameters (ParameterHandler &prm) +void DataOutBase::DXFlags::parse_parameters (const ParameterHandler &prm) { write_neighbors = prm.get_bool ("Write neighbors"); //TODO:[GK] Read the new parameters @@ -352,7 +352,7 @@ void DataOutBase::UcdFlags::declare_parameters (ParameterHandler &prm) -void DataOutBase::UcdFlags::parse_parameters (ParameterHandler &prm) +void DataOutBase::UcdFlags::parse_parameters (const ParameterHandler &prm) { write_preamble = prm.get_bool ("Write preamble"); } @@ -373,7 +373,7 @@ void DataOutBase::GnuplotFlags::declare_parameters (ParameterHandler &/*prm*/) -void DataOutBase::GnuplotFlags::parse_parameters (ParameterHandler &/*prm*/) +void DataOutBase::GnuplotFlags::parse_parameters (const ParameterHandler &/*prm*/) {} @@ -407,7 +407,7 @@ void DataOutBase::PovrayFlags::declare_parameters (ParameterHandler &prm) -void DataOutBase::PovrayFlags::parse_parameters (ParameterHandler &prm) +void DataOutBase::PovrayFlags::parse_parameters (const ParameterHandler &prm) { smooth = prm.get_bool ("Use smooth triangles"); bicubic_patch = prm.get_bool ("Use bicubic patches"); @@ -630,7 +630,7 @@ void DataOutBase::EpsFlags::declare_parameters (ParameterHandler &prm) -void DataOutBase::EpsFlags::parse_parameters (ParameterHandler &prm) +void DataOutBase::EpsFlags::parse_parameters (const ParameterHandler &prm) { height_vector = prm.get_integer ("Index of vector for height"); color_vector = prm.get_integer ("Index of vector for color"); @@ -682,7 +682,7 @@ void DataOutBase::GmvFlags::declare_parameters (ParameterHandler &/*prm*/) -void DataOutBase::GmvFlags::parse_parameters (ParameterHandler &/*prm*/) +void DataOutBase::GmvFlags::parse_parameters (const ParameterHandler &/*prm*/) {} @@ -709,7 +709,7 @@ void DataOutBase::TecplotFlags::declare_parameters (ParameterHandler &/*prm*/) -void DataOutBase::TecplotFlags::parse_parameters (ParameterHandler &/*prm*/) +void DataOutBase::TecplotFlags::parse_parameters (const ParameterHandler &/*prm*/) {} @@ -728,7 +728,7 @@ void DataOutBase::VtkFlags::declare_parameters (ParameterHandler &/*prm*/) -void DataOutBase::VtkFlags::parse_parameters (ParameterHandler &/*prm*/) +void DataOutBase::VtkFlags::parse_parameters (const ParameterHandler &/*prm*/) {} @@ -747,7 +747,7 @@ void DataOutBase::Deal_II_IntermediateFlags::declare_parameters (ParameterHandle -void DataOutBase::Deal_II_IntermediateFlags::parse_parameters (ParameterHandler &/*prm*/) +void DataOutBase::Deal_II_IntermediateFlags::parse_parameters (const ParameterHandler &/*prm*/) {}