* but sets the object
* coordinates of the TriaAccessor.
*/
- void copy_from (const TriaAccessorBase<0, DH<1,spacedim>::dimension, DH<1,spacedim>::space_dimension> &da);
+ void copy_from (const TriaAccessorBase<0, 1, spacedim> &da);
/**
* Return an iterator pointing to
+template <template <int, int> class DH, int spacedim>
+inline
+void
+DoFAccessor<0,DH<1,spacedim> >::copy_from (
+ const TriaAccessorBase<0,1,spacedim> &da)
+{
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ BaseClass::copy_from(da);
+}
+
+
+
+template <template <int, int> class DH, int spacedim>
+inline
+void
+DoFAccessor<0,DH<1,spacedim> >::copy_from (const DoFAccessor<0,DH<1,spacedim> > &a)
+{
+ BaseClass::copy_from (a);
+ set_dof_handler (a.dof_handler);
+}
+
+
+
+template <template <int, int> class DH, int spacedim>
+inline
+bool
+DoFAccessor<0,DH<1,spacedim> >::operator == (const DoFAccessor<0,DH<1,spacedim> > &a) const
+{
+ Assert (this->dof_handler == a.dof_handler, ExcCantCompareIterators());
+ return (BaseClass::operator == (a));
+}
+
+
+
+template <template <int, int> class DH, int spacedim>
+inline
+bool
+DoFAccessor<0,DH<1,spacedim> >::operator != (const DoFAccessor<0,DH<1,spacedim> > &a) const
+{
+ Assert (this->dof_handler == a.dof_handler, ExcCantCompareIterators());
+ return (BaseClass::operator != (a));
+}
+
+
+
/*------------------------- Functions: DoFCellAccessor -----------------------*/
template <int structdim2, int dim2, int spacedim2>
TriaAccessor (const InvalidAccessor<structdim2,dim2,spacedim2> &);
+ /**
+ * Copy operator. Since this is
+ * only called from iterators,
+ * do not return anything, since
+ * the iterator will return
+ * itself.
+ *
+ * This method is protected,
+ * since it is only to be called
+ * from the iterator class.
+ */
+ void copy_from (const TriaAccessor &);
+
/**
* Return the state of the
* iterator. Since an iterator
* provided by the cell at the
* time of creation.
*/
- const VertexKind vertex_kind;
+ VertexKind vertex_kind;
/**
* The global vertex index of the
* vertex this object corresponds
* to.
*/
- const unsigned int global_vertex_index;
+ unsigned int global_vertex_index;
};