From: Wolfgang Bangerth Date: Mon, 6 May 2002 11:03:27 +0000 (+0000) Subject: Make no_component really available to the outside world. Strictly X-Git-Tag: v8.0.0~18043 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189359480cb8608f3e3bf7d9eb58f15707816103;p=dealii.git 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 --- 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.