*/
void update_cell_dof_indices_cache () const;
+ private:
+ /**
+ * Copy operator. This is normally used
+ * in a context like <tt>iterator a,b;
+ * *a=*b;</tt>. Presumably, the intent
+ * here is to copy the object pointed to
+ * by @p b to the object pointed to by
+ * @p a. However, the result of
+ * dereferencing an iterator is not an
+ * object but an accessor; consequently,
+ * this operation is not useful for
+ * iterators on triangulations. We
+ * declare this function here private,
+ * thus it may not be used from outside.
+ * Furthermore it is not implemented and
+ * will give a linker error if used
+ * anyway.
+ */
+ DoFCellAccessor<DH> &
+ operator = (const DoFCellAccessor<DH> &da);
+
/**
* Make the DoFHandler class a
* friend so that it can call the
const unsigned int i,
const unsigned int index) const;
- /**
- * Copy operator.
- */
- MGDoFAccessor & operator = (const MGDoFAccessor &da);
+ private:
+ /**
+ * Copy operator. This is normally used
+ * in a context like <tt>iterator a,b;
+ * *a=*b;</tt>. Presumably, the intent
+ * here is to copy the object pointed to
+ * by @p b to the object pointed to by
+ * @p a. However, the result of
+ * dereferencing an iterator is not an
+ * object but an accessor; consequently,
+ * this operation is not useful for
+ * iterators on triangulations. We
+ * declare this function here private,
+ * thus it may not be used from outside.
+ * Furthermore it is not implemented and
+ * will give a linker error if used
+ * anyway.
+ */
+ MGDoFAccessor &
+ operator = (const MGDoFAccessor &da);
template <int, int> friend class MGDoFHandler;
friend class internal::MGDoFHandler::Implementation;
/**
* @}
*/
-
+
/**
* Return the parent as a MGDoF cell
* iterator. This function is needed since
-template <int structdim, int dim, int spacedim>
-MGDoFAccessor<structdim, dim, spacedim> &
-MGDoFAccessor<structdim, dim, spacedim>::operator = (const MGDoFAccessor &da)
-{
- BaseClass::operator= (*this);
-
- set_dof_handler (da.mg_dof_handler);
- return *this;
-}
-
-
-
template <int structdim,int dim, int spacedim>
unsigned int
MGDoFAccessor<structdim, dim, spacedim>::mg_vertex_dof_index (const int level,
{
Assert (this->level () > 0,
ExcMessage ("Cell is at coarsest level."));
-
+
const TriaIterator<MGDoFAccessor<structdim,dim,spacedim> >
q (this->tria,
(structdim == dim ?