// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
bool operator != (const Iterator &) const;
/**
- * Comparison
- * operator. Result is true
- * if either the first row
- * number is smaller or if
- * the row numbers are
- * equal and the first
+ * Comparison operator. Result is
+ * true if either the first row
+ * number is smaller or if the row
+ * numbers are equal and the first
* index is smaller.
*
* This function is only valid if
*/
bool operator < (const Iterator &) const;
+ /**
+ * Comparison operator. Works in the
+ * same way as above operator, just
+ * the other way round.
+ */
+ bool operator > (const Iterator &) const;
+
private:
/**
* Store an object of the
return (accessor < other.accessor);
}
+
+
+ template <typename number, bool Constness>
+ inline
+ bool
+ Iterator<number,Constness>::
+ operator > (const Iterator& other) const
+ {
+ return !((*this < other) || (*this == other));
+ }
}
}