*/
void clear_user_flag () const;
+ /**
+ * set the user flag of this object
+ * and of all its children and their
+ * children, etc.
+ */
+ void recursively_set_user_flag () const;
+
+ /**
+ * Clear the user flag of this object
+ * and of all its children and their
+ * children, etc.
+ */
+ void recursively_clear_user_flag () const;
+
/**
* Set the user pointer of this line
* to #p#.
*/
void clear_user_flag () const;
+ /**
+ * set the user flag of this object
+ * and of all its children and their
+ * children, etc.
+ */
+ void recursively_set_user_flag () const;
+
+ /**
+ * Clear the user flag of this object
+ * and of all its children and their
+ * children, etc.
+ */
+ void recursively_clear_user_flag () const;
+
/**
* Set the user pointer of this line
* to #p#.
+template <int dim>
+void LineAccessor<dim>::clear_user_flag () const {
+ Assert (used(), ExcCellNotUsed());
+ tria->levels[present_level]->lines.user_flags[present_index] = false;
+};
+
+
+
+template <int dim>
+void LineAccessor<dim>::recursively_set_user_flag () const {
+ set_user_flag ();
+
+ if (has_children())
+ for (unsigned int c=0; c<2; ++c)
+ child(c)->recursively_set_user_flag ();
+};
+
+
+
+template <int dim>
+void LineAccessor<dim>::recursively_clear_user_flag () const {
+ clear_user_flag ();
+
+ if (has_children())
+ for (unsigned int c=0; c<2; ++c)
+ child(c)->recursively_clear_user_flag ();
+};
+
+
+
template <int dim>
void LineAccessor<dim>::set_user_pointer (void *p) const {
Assert (used(), ExcCellNotUsed());
-template <int dim>
-void LineAccessor<dim>::clear_user_flag () const {
- Assert (used(), ExcCellNotUsed());
- tria->levels[present_level]->lines.user_flags[present_index] = false;
-};
-
-
-
template <int dim>
TriaIterator<dim,LineAccessor<dim> >
LineAccessor<dim>::child (const unsigned int i) const {
+template <int dim>
+void QuadAccessor<dim>::recursively_set_user_flag () const {
+ set_user_flag ();
+
+ if (has_children())
+ for (unsigned int c=0; c<4; ++c)
+ child(c)->recursively_set_user_flag ();
+};
+
+
+
+template <int dim>
+void QuadAccessor<dim>::recursively_clear_user_flag () const {
+ clear_user_flag ();
+
+ if (has_children())
+ for (unsigned int c=0; c<4; ++c)
+ child(c)->recursively_clear_user_flag ();
+};
+
+
+
template <int dim>
void QuadAccessor<dim>::set_user_pointer (void *p) const {
Assert (used(), ExcCellNotUsed());