From 4b21cd8229ef718e512ad20b152249752243f960 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 6 May 2002 11:03:27 +0000 Subject: [PATCH] Make no_component really available to the outside world. Strictly speaking, the default argument should have been invalid before. git-svn-id: https://svn.dealii.org/trunk@5821 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/function_lib.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/deal.II/base/include/base/function_lib.h b/deal.II/base/include/base/function_lib.h index f761cb20b2..6a94b57b48 100644 --- a/deal.II/base/include/base/function_lib.h +++ b/deal.II/base/include/base/function_lib.h @@ -797,6 +797,15 @@ namespace Functions class CutOffFunctionBase : public Function { public: + /** + * Value used in the + * constructor of this and + * derived classes to denote + * that no component is + * selected. + */ + static const unsigned int no_component = static_cast(-1); + /** * Constructor. Arguments are the * center of the ball and its @@ -811,7 +820,7 @@ namespace Functions CutOffFunctionBase (const double radius = 1., const Point = Point(), const unsigned int n_components = 1, - const unsigned int select = no_component); + const unsigned int select = CutOffFunctionBase::no_component); /** * Move the center of the ball @@ -841,11 +850,6 @@ namespace Functions * the same in all components. */ const unsigned int selected; - /** - * Value for no selected component. - */ - static const unsigned int no_component = static_cast(-1); - }; @@ -876,7 +880,7 @@ namespace Functions CutOffFunctionLinfty (const double radius = 1., const Point = Point(), const unsigned int n_components = 1, - const unsigned int select = no_component); + const unsigned int select = CutOffFunctionBase::no_component); /** * Function value at one point. @@ -925,7 +929,7 @@ namespace Functions CutOffFunctionW1 (const double radius = 1., const Point = Point(), const unsigned int n_components = 1, - const unsigned int select = no_component); + const unsigned int select = CutOffFunctionBase::no_component); /** * Function value at one point. @@ -975,7 +979,7 @@ namespace Functions CutOffFunctionCinfty (const double radius = 1., const Point = Point(), const unsigned int n_components = 1, - const unsigned int select = no_component); + const unsigned int select = CutOffFunctionBase::no_component); /** * Function value at one point. -- 2.39.5