Iterator class for sparse vector-like containers.
More...
#include <dune/istl/diagonalmatrix.hh>
List of all members.
Detailed Description
template<class CW, class T, class R>
class Dune::ContainerWrapperIterator< CW, T, R >
Iterator class for sparse vector-like containers.
This class provides an iterator for sparse vector like containers. It contains a ContainerWrapper that must provide the translation from the position in the underlying container to the index in the sparse container.
The ContainerWrapper must be default and copy-constructable. Furthermore it must provide the methods:
bool identical(other) - check if this is identical to other (same container, not only equal) T* pointer(position) - get pointer to data at position in underlying container size_t realIndex(position) - get index in sparse container for position in underlying container
Notice that the iterator stores a ContainerWrapper. This allows to use proxy classes as underlying container and as returned reference type.
- Template Parameters:
-
| CW | The container wrapper class |
| T | The contained type |
| R | The reference type returned by dereference |
Constructor & Destructor Documentation
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class OtherContainerWrapperIteratorType >
template<class CW , class T , class R >
template<class CW , class T , class R >
Member Function Documentation
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class OtherContainerWrapperIteratorType >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class CW , class T , class R >
template<class OtherContainerWrapperIteratorType >
Friends And Related Function Documentation
template<class CW , class T , class R >
template<class CW , class T , class R >
The documentation for this class was generated from the following file: