#include <Matrix.h>
Public Member Functions | |
| SliceIter (std::valarray< T > *vv, const std::slice &ss) | |
| Construct an iterator on array vv using slide ss. | |
| SliceIter | end () const |
| Return iterator to the end of slice. | |
| SliceIter & | operator++ () |
| Increment current position. | |
| SliceIter | operator++ (int) |
| Increment current position. | |
| T & | operator[] (size_t i) |
| access element i | |
| T & | operator() (size_t i) |
| access element i | |
| T & | operator * () |
| access element at current position | |
Protected Member Functions | |
| T & | ref (size_t i) const |
| access element i | |
Protected Attributes | |
| std::valarray< T > * | v |
| array containing the datas | |
| const std::slice | s |
| slice for iteration | |
| size_t | curr |
| current position | |
Friends | |
| bool | operator== (const SliceIter &p, const SliceIter &q) |
| Return true if p == q. | |
| bool | operator!= (const SliceIter &p, const SliceIter &q) |
| Return true if p != q. | |
| bool | operator< (const SliceIter &p, const SliceIter &q) |
| Return true if p < q. | |
1.4.2