From: Wolfgang Bangerth Date: Thu, 11 Nov 2010 17:26:17 +0000 (+0000) Subject: Disable the TriaAccessor<0,dim,spacedim> class completely. X-Git-Tag: v8.0.0~4967 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806f5b5dcc59a8e0a0cb68b65058020e3802c85c;p=dealii.git Disable the TriaAccessor<0,dim,spacedim> class completely. git-svn-id: https://svn.dealii.org/trunk@22690 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/tria_accessor.h b/deal.II/include/deal.II/grid/tria_accessor.h index ce2d8d19f2..020ad28511 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.h +++ b/deal.II/include/deal.II/grid/tria_accessor.h @@ -1579,60 +1579,15 @@ class TriaAccessor : public TriaAccessorBase * @ingroup grid */ template -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 *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 - TriaAccessor (const TriaAccessor &) - { - Assert(false, ExcImpossibleInDim(0)); - } - - /** - * Constructor. Should never be - * called and thus produces an - * error. - */ - template - TriaAccessor (const InvalidAccessor &) - { - Assert(false, ExcImpossibleInDim(0)); - } - + private: /** - * @brief Return an invalid object + * Constructor. Made private to + * make sure that this class + * can't be used. */ - TriaIterator > - child (const unsigned int) const - { - return TriaIterator >(); - } + TriaAccessor (); };