BrickIterator< T, Dim > Class Template Reference

#include <BrickIterator.h>

Inheritance diagram for BrickIterator< T, Dim >:

Inheritance graph
[legend]
Collaboration diagram for BrickIterator< T, Dim >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T PETE_Return_t
typedef BrickIterator< T,
Dim > 
PETE_Expr_t

Public Member Functions

 BrickIterator ()
 BrickIterator (T *, const NDIndex< Dim > &, const NDIndex< Dim > &)
 BrickIterator (T *, const vec< int, Dim > &)
BrickIteratoroperator++ ()
bool whole () const
bool operator== (const BrickIterator< T, Dim > &a) const
bool operator!= (const BrickIterator< T, Dim > &a) const
T & operator * () const
void step (unsigned d)
void rewind (unsigned d)
T & offset (int i) const
T & offset (int i, int j) const
T & offset (int i, int j, int k) const
T & offset (int *i) const
T & unit_offset (int i) const
T & unit_offset (int i, int j) const
T & unit_offset (int i, int j, int k) const
void moveBy (int i)
void moveBy (int i, int j)
void moveBy (int i, int j, int k)
void moveBy (const int *i)
int Stride (int i) const
MessageputMessage (Message &, bool makecopy=true)
MessagegetMessage (Message &)
PETE_Expr_t MakeExpression () const

Protected Member Functions

void op_pp ()

Protected Attributes

T *restrict Current
vec< int, Dim > Strides
bool Whole

Detailed Description

template<class T, unsigned Dim>
class BrickIterator< T, Dim >

Definition at line 70 of file BrickIterator.h.


Member Typedef Documentation

template<class T, unsigned Dim>
typedef BrickIterator<T,Dim> BrickIterator< T, Dim >::PETE_Expr_t
 

Definition at line 186 of file BrickIterator.h.

template<class T, unsigned Dim>
typedef T BrickIterator< T, Dim >::PETE_Return_t
 

Definition at line 185 of file BrickIterator.h.


Constructor & Destructor Documentation

template<class T, unsigned Dim>
BrickIterator< T, Dim >::BrickIterator  )  [inline]
 

Definition at line 75 of file BrickIterator.h.

template<class T, unsigned Dim>
BrickIterator< T, Dim >::BrickIterator T *  ,
const NDIndex< Dim > &  ,
const NDIndex< Dim > & 
 

Definition at line 71 of file BrickIterator.cpp.

References BrickIterator< T, Dim >::Current, BrickIterator< T, Dim >::Strides, and BrickIterator< T, Dim >::Whole.

template<class T, unsigned Dim>
BrickIterator< T, Dim >::BrickIterator T *  ,
const vec< int, Dim > & 
 

Definition at line 93 of file BrickIterator.cpp.

References BrickIterator< T, Dim >::Strides.


Member Function Documentation

template<class T, unsigned Dim>
Message & BrickIterator< T, Dim >::getMessage Message  ) 
 

Reimplemented in CompressedBrickIterator< T, Dim >.

Definition at line 192 of file BrickIterator.cpp.

References CT, Message::get(), PInsist, BrickIterator< T, Dim >::Strides, TAU_FIELD, TAU_MESSAGE, TAU_PROFILE, and TAU_TYPE_STRING.

Here is the call graph for this function:

template<class T, unsigned Dim>
PETE_Expr_t BrickIterator< T, Dim >::MakeExpression  )  const [inline]
 

Definition at line 187 of file BrickIterator.h.

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::moveBy const int *  i  )  [inline]
 

Definition at line 164 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::moveBy int  i,
int  j,
int  k
[inline]
 

Definition at line 157 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::moveBy int  i,
int  j
[inline]
 

Definition at line 151 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::moveBy int  i  )  [inline]
 

Definition at line 146 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

Referenced by IntCICImpl< 3U >::gather(), IntCICImpl< 2U >::gather(), IntCICImpl< 1U >::gather(), IntCICImpl< Dim >::gather(), IntCICImpl< 3U >::scatter(), IntCICImpl< 2U >::scatter(), IntCICImpl< 1U >::scatter(), IntCICImpl< Dim >::scatter(), and BareFieldIterator< T, Dim >::SetCurrentLocation().

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::offset int *  i  )  const [inline]
 

Definition at line 130 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, vec< T, Length >::dot(), and BrickIterator< T, Dim >::Strides.

Here is the call graph for this function:

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::offset int  i,
int  j,
int  k
const [inline]
 

Definition at line 126 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::offset int  i,
int  j
const [inline]
 

Definition at line 122 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::offset int  i  )  const [inline]
 

Definition at line 118 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

Referenced by for_each(), IntSUDSImpl< 3U >::gather(), IntSUDSImpl< 2U >::gather(), IntSUDSImpl< 1U >::gather(), IntCICImpl< 3U >::gather(), IntCICImpl< 2U >::gather(), IntCICImpl< 1U >::gather(), IntSUDSImpl< 3U >::scatter(), IntSUDSImpl< 2U >::scatter(), IntSUDSImpl< 1U >::scatter(), IntCICImpl< 3U >::scatter(), IntCICImpl< 2U >::scatter(), and IntCICImpl< 1U >::scatter().

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::op_pp  )  [protected]
 

Reimplemented from BrickCounter< Dim >.

Definition at line 114 of file BrickIterator.cpp.

References BrickIterator< T, Dim >::rewind(), and BrickIterator< T, Dim >::step().

Referenced by BrickIterator< T, Dim >::operator++().

Here is the call graph for this function:

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::operator *  )  const [inline]
 

Reimplemented in BareFieldIterator< T, Dim >.

Definition at line 100 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current.

Referenced by BareFieldIterator< T, Dim >::operator *().

template<class T, unsigned Dim>
bool BrickIterator< T, Dim >::operator!= const BrickIterator< T, Dim > &  a  )  const [inline]
 

Definition at line 94 of file BrickIterator.h.

References a, and BrickIterator< T, Dim >::Current.

template<class T, unsigned Dim>
BrickIterator& BrickIterator< T, Dim >::operator++  )  [inline]
 

Reimplemented from BrickCounter< Dim >.

Reimplemented in BareFieldIterator< T, Dim >, and IndexedBareFieldIterator< T, Dim >.

Definition at line 84 of file BrickIterator.h.

References BrickIterator< T, Dim >::op_pp().

Referenced by IndexedBareFieldIterator< T, Dim >::operator++(), and BareFieldIterator< T, Dim >::operator++().

Here is the call graph for this function:

template<class T, unsigned Dim>
bool BrickIterator< T, Dim >::operator== const BrickIterator< T, Dim > &  a  )  const [inline]
 

Definition at line 90 of file BrickIterator.h.

References a, and BrickIterator< T, Dim >::Current.

template<class T, unsigned Dim>
Message & BrickIterator< T, Dim >::putMessage Message ,
bool  makecopy = true
 

Reimplemented in CompressedBrickIterator< T, Dim >.

Definition at line 142 of file BrickIterator.cpp.

References CT, TAU_FIELD, TAU_MESSAGE, TAU_PROFILE, and TAU_TYPE_STRING.

Referenced by CompressedBrickIterator< T, Dim >::putMessage().

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::rewind unsigned  d  )  [inline]
 

Reimplemented from BrickCounter< Dim >.

Definition at line 111 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, BrickCounter< Dim >::rewind(), and BrickIterator< T, Dim >::Strides.

Referenced by for_each(), and BrickIterator< T, Dim >::op_pp().

Here is the call graph for this function:

template<class T, unsigned Dim>
void BrickIterator< T, Dim >::step unsigned  d  )  [inline]
 

Reimplemented from BrickCounter< Dim >.

Definition at line 106 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, BrickCounter< Dim >::step(), and BrickIterator< T, Dim >::Strides.

Referenced by for_each(), and BrickIterator< T, Dim >::op_pp().

Here is the call graph for this function:

template<class T, unsigned Dim>
int BrickIterator< T, Dim >::Stride int  i  )  const [inline]
 

Definition at line 171 of file BrickIterator.h.

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::unit_offset int  i,
int  j,
int  k
const [inline]
 

Definition at line 142 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::unit_offset int  i,
int  j
const [inline]
 

Definition at line 138 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current, and BrickIterator< T, Dim >::Strides.

template<class T, unsigned Dim>
T& BrickIterator< T, Dim >::unit_offset int  i  )  const [inline]
 

Definition at line 134 of file BrickIterator.h.

References BrickIterator< T, Dim >::Current.

Referenced by for_each().

template<class T, unsigned Dim>
bool BrickIterator< T, Dim >::whole  )  const [inline]
 

Definition at line 87 of file BrickIterator.h.

References BrickIterator< T, Dim >::Whole.


Member Data Documentation

template<class T, unsigned Dim>
T* restrict BrickIterator< T, Dim >::Current [protected]
 

Definition at line 191 of file BrickIterator.h.

Referenced by BrickIterator< T, Dim >::BrickIterator(), BrickIterator< T, Dim >::moveBy(), BrickIterator< T, Dim >::offset(), BrickIterator< T, Dim >::operator *(), BrickIterator< T, Dim >::operator!=(), BrickIterator< T, Dim >::operator==(), BrickIterator< T, Dim >::rewind(), BrickIterator< T, Dim >::step(), and BrickIterator< T, Dim >::unit_offset().

template<class T, unsigned Dim>
vec<int,Dim> BrickIterator< T, Dim >::Strides [protected]
 

Definition at line 192 of file BrickIterator.h.

Referenced by BrickIterator< T, Dim >::BrickIterator(), BrickIterator< T, Dim >::getMessage(), BrickIterator< T, Dim >::moveBy(), BrickIterator< T, Dim >::offset(), BrickIterator< T, Dim >::rewind(), BrickIterator< T, Dim >::step(), and BrickIterator< T, Dim >::unit_offset().

template<class T, unsigned Dim>
bool BrickIterator< T, Dim >::Whole [protected]
 

Definition at line 193 of file BrickIterator.h.

Referenced by BrickIterator< T, Dim >::BrickIterator(), and BrickIterator< T, Dim >::whole().


The documentation for this class was generated from the following files:
Generated on Mon Jan 16 14:34:55 2006 for IPPL by  doxygen 1.4.6