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
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
* 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);
-
};
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.
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.
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.