]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable the TriaAccessor<0,dim,spacedim> class completely.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Nov 2010 17:26:17 +0000 (17:26 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Nov 2010 17:26:17 +0000 (17:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@22690 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria_accessor.h

index ce2d8d19f2118439ef64770f17ce7497c0042636..020ad2851171a8c1857ee31e8ef3ab4a5c8528cc 100644 (file)
@@ -1579,60 +1579,15 @@ class TriaAccessor : public TriaAccessorBase<structdim, dim, spacedim>
  * @ingroup grid
  */
 template<int dim, int spacedim>
-class TriaAccessor<0, dim, spacedim> : public TriaAccessorBase<0,dim, spacedim>
+class TriaAccessor<0, dim, spacedim>
 {
-  public:
-                                    /**
-                                     * Propagate typedef from
-                                     * base class to this class.
-                                     */
-    typedef typename TriaAccessorBase<0,dim,spacedim>::AccessorData AccessorData;
-
-                                    /**
-                                     * Constructor. Should never be
-                                     * called and thus produces an
-                                     * error.
-                                     */
-    TriaAccessor (const Triangulation<dim,spacedim> *parent     =  0,
-                 const int                 level      = -1,
-                 const int                 index      = -1,
-                 const AccessorData       *local_data =  0)
-                    :
-                   TriaAccessorBase<0,dim, spacedim> (parent, level, index, local_data)
-      {
-       Assert(false, ExcImpossibleInDim(0));
-      }
-
-                                    /**
-                                     * Constructor. Should never be
-                                     * called and thus produces an
-                                     * error.
-                                     */
-    template <int structdim2, int dim2, int spacedim2>
-    TriaAccessor (const TriaAccessor<structdim2,dim2,spacedim2> &)
-      {
-       Assert(false, ExcImpossibleInDim(0));
-      }
-
-                                    /**
-                                     * Constructor. Should never be
-                                     * called and thus produces an
-                                     * error.
-                                     */
-    template <int structdim2, int dim2, int spacedim2>
-    TriaAccessor (const InvalidAccessor<structdim2,dim2,spacedim2> &)
-      {
-       Assert(false, ExcImpossibleInDim(0));
-      }
-
+  private:
                                     /**
-                                     * @brief Return an invalid object
+                                     * Constructor. Made private to
+                                     * make sure that this class
+                                     * can't be used.
                                      */
-    TriaIterator<InvalidAccessor<0,dim,spacedim> >
-    child (const unsigned int) const
-      {
-       return TriaIterator<InvalidAccessor<0,dim,spacedim> >();
-      }
+    TriaAccessor ();
 };
 
 

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.