void print (ostream &out) const;
-/**@name Exceptions*/
+ /**@name Exceptions*/
/*@{*/
/**
* Exception
Accessor accessor;
-/**
+ /**
* Make all other iterator class templates
* friends of this class. This is
* necessary for the implementation of
{};
+
template <int dim, typename Accessor>
template <typename OtherAccessor>
inline
{};
+
template <int dim, typename Accessor>
inline
const Accessor &
-TriaRawIterator<dim,Accessor>::operator * () const {
+TriaRawIterator<dim,Accessor>::operator * () const
+{
Assert (state() == valid, ExcDereferenceInvalidObject());
return accessor;
};
+
template <int dim, typename Accessor>
inline
Accessor &
-TriaRawIterator<dim,Accessor>::operator * () {
+TriaRawIterator<dim,Accessor>::operator * ()
+{
Assert (state() == valid, ExcDereferenceInvalidObject());
return accessor;
};
+
template <int dim, typename Accessor>
inline
const Accessor *
-TriaRawIterator<dim,Accessor>::operator -> () const {
+TriaRawIterator<dim,Accessor>::operator -> () const
+{
return &(this->operator* ());
};
+
template <int dim, typename Accessor>
inline
Accessor *
-TriaRawIterator<dim,Accessor>::operator -> () {
+TriaRawIterator<dim,Accessor>::operator -> ()
+{
return &(this->operator* ());
};
+
template <int dim, typename Accessor>
inline
IteratorState
-TriaRawIterator<dim,Accessor>::state () const {
+TriaRawIterator<dim,Accessor>::state () const
+{
return accessor.state ();
};
-// sorry that the declaration of this function looks so ragged; I had
-// to do it this way since otherwise doc++ could not parse it correctly.
+
template <int dim, typename Accessor>
inline
bool
-TriaRawIterator<dim,Accessor>::operator < (const TriaRawIterator &i) const {
+TriaRawIterator<dim,Accessor>::operator < (const TriaRawIterator &i) const
+{
Assert (state() != invalid, ExcDereferenceInvalidObject());
Assert (i.state() != invalid, ExcDereferenceInvalidObject());
Assert (&accessor.get_triangulation() == &i.accessor.get_triangulation(),
template <int dim, typename Accessor>
inline
TriaRawIterator<dim,Accessor> &
-TriaRawIterator<dim,Accessor>::operator ++ () {
+TriaRawIterator<dim,Accessor>::operator ++ ()
+{
Assert (state() == valid, ExcAdvanceInvalidObject());
++accessor;
};
+
template <int dim, typename Accessor>
inline
TriaRawIterator<dim,Accessor> &
-TriaRawIterator<dim,Accessor>::operator -- () {
+TriaRawIterator<dim,Accessor>::operator -- ()
+{
Assert (state() == valid, ExcAdvanceInvalidObject());
--accessor;
};
+
template <int dim, typename Accessor>
inline
void
-TriaRawIterator<dim,Accessor>::print (ostream &out) const {
+TriaRawIterator<dim,Accessor>::print (ostream &out) const
+{
out << accessor.level() << "." << accessor.index();
};
+
template <int dim, typename Accessor>
template <typename OtherAccessor>
inline
{};
+
template <int dim, typename Accessor>
template <typename OtherAccessor>
inline
};
+
template <int dim, typename Accessor>
template <typename OtherAccessor>
inline
{};
+
template <int dim, typename Accessor>
template <typename OtherAccessor>
inline
};
+
template <int dim, typename Accessor>
inline
-ostream & operator << (ostream &out, const TriaRawIterator<dim,Accessor> &i) {
+ostream & operator << (ostream &out, const TriaRawIterator<dim,Accessor> &i)
+{
i.print(out);
return out;
};
+
template <int dim, typename Accessor>
inline
-ostream & operator << (ostream &out, const TriaIterator<dim,Accessor> &i) {
+ostream & operator << (ostream &out, const TriaIterator<dim,Accessor> &i)
+{
i.print(out);
return out;
};
+
template <int dim, typename Accessor>
inline
-ostream & operator << (ostream &out, const TriaActiveIterator<dim,Accessor> &i) {
+ostream & operator << (ostream &out, const TriaActiveIterator<dim,Accessor> &i)
+{
i.print(out);
return out;
};
+
// if in optimized mode: include more templates
#ifndef DEBUG
# include "tria_iterator.templates.h"