Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::TTensorElementIterator< T > Class Template Reference

#include <Tensor.h>

Collaboration diagram for PLearn::TTensorElementIterator< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TTensorElementIterator ()
 TTensorElementIterator (TTensor< T > *tensor_, const IVec &pos)
TTensorElementIterator< T > & operator++ ()
T * operator-> () const
T & operator * () const
bool operator== (const TTensorElementIterator &other)
bool operator!= (const TTensorElementIterator &other)
IVec position () const
bool end () const

Private Attributes

TTensor< T > * tensor
IVec position_
IVec stride_minus_width
T * ptr
bool end_met

template<class T>
class PLearn::TTensorElementIterator< T >


Constructor & Destructor Documentation

template<class T>
PLearn::TTensorElementIterator< T >::TTensorElementIterator  )  [inline]
 

Definition at line 72 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::end_met, PLearn::TTensorElementIterator< T >::ptr, and PLearn::TTensorElementIterator< T >::tensor.

template<class T>
PLearn::TTensorElementIterator< T >::TTensorElementIterator TTensor< T > *  tensor_,
const IVec pos
[inline]
 

Definition at line 77 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::end_met, PLearn::TTensorElementIterator< T >::position_, PLearn::TTensorElementIterator< T >::ptr, PLearn::TinyVector< T, N, TTrait >::resize(), PLearn::TTensorElementIterator< T >::stride_minus_width, and PLearn::TTensorElementIterator< T >::tensor.


Member Function Documentation

template<class T>
bool PLearn::TTensorElementIterator< T >::end  )  const [inline]
 

Definition at line 102 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::end_met.

template<class T>
T& PLearn::TTensorElementIterator< T >::operator *  )  const [inline]
 

Definition at line 91 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::ptr.

template<class T>
bool PLearn::TTensorElementIterator< T >::operator!= const TTensorElementIterator< T > &  other  )  [inline]
 

Definition at line 97 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::ptr.

template<class T>
TTensorElementIterator< T > & PLearn::TTensorElementIterator< T >::operator++  )  [inline]
 

Definition at line 405 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::end_met, PLearn::TTensorElementIterator< T >::position_, PLearn::TTensorElementIterator< T >::ptr, PLearn::TTensorElementIterator< T >::stride_minus_width, and PLearn::TTensorElementIterator< T >::tensor.

template<class T>
T* PLearn::TTensorElementIterator< T >::operator->  )  const [inline]
 

Definition at line 88 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::ptr.

template<class T>
bool PLearn::TTensorElementIterator< T >::operator== const TTensorElementIterator< T > &  other  )  [inline]
 

Definition at line 94 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::ptr.

template<class T>
IVec PLearn::TTensorElementIterator< T >::position  )  const [inline]
 

Definition at line 100 of file Tensor.h.

References PLearn::TTensorElementIterator< T >::position_.


Member Data Documentation

template<class T>
bool PLearn::TTensorElementIterator< T >::end_met [private]
 

Definition at line 68 of file Tensor.h.

Referenced by PLearn::TTensorElementIterator< T >::end(), PLearn::TTensorElementIterator< T >::operator++(), and PLearn::TTensorElementIterator< T >::TTensorElementIterator().

template<class T>
IVec PLearn::TTensorElementIterator< T >::position_ [private]
 

Definition at line 62 of file Tensor.h.

Referenced by PLearn::TTensorElementIterator< T >::operator++(), PLearn::TTensorElementIterator< T >::position(), and PLearn::TTensorElementIterator< T >::TTensorElementIterator().

template<class T>
T* PLearn::TTensorElementIterator< T >::ptr [private]
 

Definition at line 66 of file Tensor.h.

Referenced by PLearn::TTensorElementIterator< T >::operator *(), PLearn::TTensorElementIterator< T >::operator!=(), PLearn::TTensorElementIterator< T >::operator++(), PLearn::TTensorElementIterator< T >::operator->(), PLearn::TTensorElementIterator< T >::operator==(), and PLearn::TTensorElementIterator< T >::TTensorElementIterator().

template<class T>
IVec PLearn::TTensorElementIterator< T >::stride_minus_width [private]
 

Definition at line 65 of file Tensor.h.

Referenced by PLearn::TTensorElementIterator< T >::operator++(), and PLearn::TTensorElementIterator< T >::TTensorElementIterator().

template<class T>
TTensor<T>* PLearn::TTensorElementIterator< T >::tensor [private]
 

Definition at line 61 of file Tensor.h.

Referenced by PLearn::TTensorElementIterator< T >::operator++(), and PLearn::TTensorElementIterator< T >::TTensorElementIterator().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:24:03 2004 for PLearn by doxygen 1.3.7