class FullMatrix : public Table<2,number>
{
public:
+ class const_iterator;
+
/**
- * STL conforming iterator.
- */
- class const_iterator
- {
- private:
- /**
* Accessor class for iterators
*/
class Accessor
*/
friend class const_iterator;
};
+ /**
+ * STL conforming iterator.
+ */
+ class const_iterator
+ {
+ private:
public:
/**
<< "This function is not implemented for the given"
<< " matrix dimension " << arg1);
- friend class const_iterator::Accessor;
+ friend class Accessor;
};
/*@}*/
template <typename number>
inline
-FullMatrix<number>::const_iterator::Accessor::
+FullMatrix<number>::Accessor::
Accessor (const FullMatrix<number>* matrix,
const unsigned int r,
const unsigned int c)
template <typename number>
inline
unsigned int
-FullMatrix<number>::const_iterator::Accessor::row() const
+FullMatrix<number>::Accessor::row() const
{
return a_row;
}
template <typename number>
inline
unsigned int
-FullMatrix<number>::const_iterator::Accessor::column() const
+FullMatrix<number>::Accessor::column() const
{
return a_col;
}
template <typename number>
inline
number
-FullMatrix<number>::const_iterator::Accessor::value() const
+FullMatrix<number>::Accessor::value() const
{
return matrix->el(a_row, a_col);
}
template <typename number>
inline
-const typename FullMatrix<number>::const_iterator::Accessor &
+const typename FullMatrix<number>::Accessor &
FullMatrix<number>::const_iterator::operator* () const
{
return accessor;
template <typename number>
inline
-const typename FullMatrix<number>::const_iterator::Accessor *
+const typename FullMatrix<number>::Accessor *
FullMatrix<number>::const_iterator::operator-> () const
{
return &accessor;