]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Crap, I messed up again :-(
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Nov 2010 01:38:11 +0000 (01:38 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Nov 2010 01:38:11 +0000 (01:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@22717 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_accessor.h
deal.II/include/deal.II/multigrid/mg_dof_accessor.h
deal.II/source/multigrid/mg_dof_accessor.cc

index 4827e71b32f76c3b9251cd774f7fe53060ea3ffa..494e47fc08422f7ee95bc05949c6430d860ae3d4 100644 (file)
@@ -2031,6 +2031,27 @@ class DoFCellAccessor :  public DoFAccessor<DH::dimension,DH>
                                      */
     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
index c7d363e9883c534adc60c08fceb9e3653831c3ba..42a14d8942b0b98f5ba713269afd5cc08ae80b6b 100644 (file)
@@ -387,10 +387,26 @@ class MGDoFAccessor : public internal::MGDoFAccessor::Inheritance<structdim,dim,
                           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;
@@ -585,7 +601,7 @@ class MGDoFCellAccessor :  public MGDoFAccessor<dim,dim,spacedim>
                                     /**
                                      * @}
                                      */
-                                     
+
                                 /**
                                      * Return the parent as a MGDoF cell
                                      * iterator. This function is needed since
index c644a2cd2bcf6d649dfbb2abd954cee59aa33292..d76a13a0cf237ac2a49a531ee193ebeab17b8ff7 100644 (file)
@@ -65,18 +65,6 @@ MGDoFAccessor<structdim, dim, spacedim>::set_mg_dof_handler (MGDoFHandler<dim,sp
 
 
 
-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,
@@ -181,7 +169,7 @@ MGDoFAccessor<structdim, dim, spacedim>::parent () const
 {
   Assert (this->level () > 0,
           ExcMessage ("Cell is at coarsest level."));
-  
+
   const TriaIterator<MGDoFAccessor<structdim,dim,spacedim> >
     q (this->tria,
        (structdim == dim ?

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.