* iterators.
*/
void operator -- () const;
+ /**
+ * Compare for equality.
+ */
+ bool operator == (const TriaAccessor &) const;
+
+ /**
+ * Compare for inequality.
+ */
+ bool operator != (const TriaAccessor &) const;
+
/**
* @}
*/
+template <int spacedim>
+inline
+bool
+TriaAccessor<0, 1, spacedim>::operator == (const TriaAccessor &t) const
+{
+ const bool result = ((tria == t.tria)
+ &&
+ (global_vertex_index == t.global_vertex_index));
+ // if we point to the same vertex,
+ // make sure we know the same about
+ // it
+ if (result == true)
+ Assert (vertex_kind == t.vertex_kind, ExcInternalError());
+
+ return result;
+}
+
+
+
+template <int spacedim>
+inline
+bool
+TriaAccessor<0, 1, spacedim>::operator != (const TriaAccessor &t) const
+{
+ return !(*this==t);
+}
+
+
+
+
template <int spacedim>
inline
int
face = dof_handler.begin_active()->face(0);
face = cell->face(0);
deallog << cell->face(0) << ' ' << face << std::endl;
+ Assert (cell->face(0) == face, ExcInternalError());
+ Assert (!(cell->face(0) != face), ExcInternalError());
}
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