Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::ConstSliceIter< T > Class Template Reference
[Utilities]

#include <Matrix.h>

List of all members.


Detailed Description

template<typename T>
class Teem::ConstSliceIter< T >

Stroustrup approved slice iterator class for const matrix.


Public Member Functions

 ConstSliceIter (const std::valarray< T > *vv, const std::slice &ss)
 Construct a const iterator on array vv using slide ss.
ConstSliceIter end () const
 Return iterator to the end of slice.
ConstSliceIteroperator++ ()
 Increment current position.
ConstSliceIter operator++ (int)
 Increment current position.
const T & operator[] (size_t i) const
 access element i
const T & operator() (size_t i) const
 access element i
const T & operator * () const
 access element at current position

Protected Member Functions

const T & ref (size_t i) const
 access element i

Protected Attributes

const std::valarray< T > * v
 array containing the datas
const std::slice s
 slice for iteration
size_t curr
 current position

Friends

bool operator== (const ConstSliceIter &p, const ConstSliceIter &q)
 Return true if p == q.
bool operator!= (const ConstSliceIter &p, const ConstSliceIter &q)
 Return true if p != q.
bool operator< (const ConstSliceIter &p, const ConstSliceIter &q)
 Return true if p < q.


The documentation for this class was generated from the following file:
Generated on Mon Oct 24 17:38:29 2005 for Teem by  doxygen 1.4.2