]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make no_component really available to the outside world. Strictly
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 May 2002 11:03:27 +0000 (11:03 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 May 2002 11:03:27 +0000 (11:03 +0000)
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

index f761cb20b264c0ef932bb9dbbcc3531e90c201bf..6a94b57b48a66019b906ace1b396a5741403fb87 100644 (file)
@@ -797,6 +797,15 @@ namespace Functions
   class CutOffFunctionBase : public Function<dim>
   {
     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<unsigned int>(-1);
+
                                       /**
                                        * Constructor. Arguments are the
                                        * center of the ball and its
@@ -811,7 +820,7 @@ namespace Functions
       CutOffFunctionBase (const double radius = 1.,
                          const Point<dim> = Point<dim>(),
                          const unsigned int n_components = 1,
-                         const unsigned int select = no_component);
+                         const unsigned int select = CutOffFunctionBase<dim>::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<unsigned int>(-1);
-
   };
   
   
@@ -876,7 +880,7 @@ namespace Functions
       CutOffFunctionLinfty (const double radius = 1.,
                            const Point<dim> = Point<dim>(),
                            const unsigned int n_components = 1,
-                           const unsigned int select = no_component);
+                           const unsigned int select = CutOffFunctionBase<dim>::no_component);
     
                                       /**
                                        * Function value at one point.
@@ -925,7 +929,7 @@ namespace Functions
       CutOffFunctionW1 (const double radius = 1.,
                        const Point<dim> = Point<dim>(),
                        const unsigned int n_components = 1,
-                       const unsigned int select = no_component);
+                       const unsigned int select = CutOffFunctionBase<dim>::no_component);
     
                                       /**
                                        * Function value at one point.
@@ -975,7 +979,7 @@ namespace Functions
       CutOffFunctionCinfty (const double radius = 1.,
                            const Point<dim> = Point<dim>(),
                            const unsigned int n_components = 1,
-                           const unsigned int select = no_component);
+                           const unsigned int select = CutOffFunctionBase<dim>::no_component);
     
                                       /**
                                        * Function value at one point.

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.