OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IndexedBareFieldIterator< T, D > Class Template Reference

#include <AssignDefs.h>

Inheritance diagram for IndexedBareFieldIterator< T, D >:
Inheritance graph
[legend]
Collaboration diagram for IndexedBareFieldIterator< T, D >:
Collaboration graph
[legend]

Public Types

enum  { Dim_u = Dim }
 
typedef T return_type
 
- Public Types inherited from BareFieldIterator< T, D >
typedef T return_type
 
- Public Types inherited from BrickIterator< T, Dim >
typedef T PETE_Return_t
 
typedef BrickIterator< T, DimPETE_Expr_t
 

Public Member Functions

 IndexedBareFieldIterator ()
 
 IndexedBareFieldIterator (BareField< T, Dim > &df, const NDIndex< Dim > &idx)
 
 ~IndexedBareFieldIterator ()
 
const NDIndex< Dim > & getDomain () const
 
const BareField< T, Dim > & getBareField () const
 
BareField< T, Dim > & getBareField ()
 
template<unsigned D1, class T1 >
void FillGCIfNecessary (const BareField< T1, D1 > &lhs) const
 
template<unsigned int D2>
bool plugBase (const NDIndex< D2 > &i)
 
void SetCurrentLocation (const FieldLoc< Dim > &loc)
 
IndexedBareFieldIterator< T,
Dim > & 
operator++ ()
 
void beginLField ()
 
- Public Member Functions inherited from BareFieldIterator< T, D >
 BareFieldIterator ()
 
 BareFieldIterator (BareField< T, Dim > &df)
 
 BareFieldIterator (const FieldLoc< Dim > &loc, BareField< T, Dim > &df)
 
 BareFieldIterator (const BareFieldIterator< T, Dim > &iter)
 
 ~BareFieldIterator ()
 
const BareFieldIterator< T, Dim > & operator= (const BareFieldIterator< T, Dim > &rhs)
 
void SetCurrentLocation (const FieldLoc< Dim > &loc)
 
void GetCurrentLocation (FieldLoc< Dim > &loc) const
 
void GetCurrentLocation (int *loc) const
 
BareFieldIterator< T, Dim > & operator++ ()
 
Toperator* () const
 
void nextLField ()
 
bool done () const
 
bool done (unsigned d) const
 
void beginLField ()
 
bool IsCompressed () const
 
bool CanCompress () const
 
void Compress ()
 
void Compress (T val)
 
bool TryCompress ()
 
BareField< T, Dim > & GetBareField ()
 
const BareField< T, Dim > & GetBareField () const
 
void prepareForScalarCode (bool tryfill=true)
 
void finishScalarCode (bool modified=true)
 
- Public Member Functions inherited from CompressedBrickIterator< T, Dim >
 CompressedBrickIterator (T *t, const NDIndex< Dim > &c, const NDIndex< Dim > &a, T &compressed)
 
 CompressedBrickIterator (T *t, const vec< int, Dim > &v, T &compressed)
 
 CompressedBrickIterator (T &t)
 
 CompressedBrickIterator ()
 
 CompressedBrickIterator (const NDIndex< Dim > &a, T &compressed)
 
 CompressedBrickIterator (const BrickIterator< T, Dim > &x, T &compressed)
 
bool IsCompressed () const
 
bool CanCompress (const T &) const
 
void Compress (T &val)
 
bool TryCompress ()
 
bool TryCompress (T val)
 
const CompressedBrickIterator
< T, Dim > & 
operator= (const CompressedBrickIterator< T, Dim > &rhs)
 
 CompressedBrickIterator (const CompressedBrickIterator< T, Dim > &X)
 
MessageputMessage (Message &m, bool makecopy=true)
 
MessagegetMessage (Message &m)
 
CompressedBrickIterator< T, 1 > permute (NDIndex< Dim > &current, NDIndex< 1 > &permuted) const
 
CompressedBrickIterator< T, 2 > permute (NDIndex< Dim > &current, NDIndex< 2 > &permuted) const
 
CompressedBrickIterator< T, 3 > permute (NDIndex< Dim > &current, NDIndex< 3 > &permuted) const
 
CompressedBrickIterator< T, 4 > permute (NDIndex< Dim > &current, NDIndex< 4 > &permuted) const
 
CompressedBrickIterator< T, 5 > permute (NDIndex< Dim > &current, NDIndex< 5 > &permuted) const
 
CompressedBrickIterator< T, 6 > permute (NDIndex< Dim > &current, NDIndex< 6 > &permuted) const
 
void SetCurrent (T *p)
 
void SetCount (int d, int count)
 
void ResetCounter (int d)
 
void SetStride (int d, int stride)
 
int GetStride (int d) const
 
TGetCompressedData () const
 
void SetCompressedData (T *newData)
 
- Public Member Functions inherited from BrickIterator< T, Dim >
 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
 
Toperator* () const
 
void step (unsigned d)
 
void rewind (unsigned d)
 
Toffset (int i) const
 
Toffset (int i, int j) const
 
Toffset (int i, int j, int k) const
 
Toffset (int *i) const
 
Tunit_offset (int i) const
 
Tunit_offset (int i, int j) const
 
Tunit_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
 
- Public Member Functions inherited from BrickCounter< Dim >
 BrickCounter ()
 
 BrickCounter (const NDIndex< Dim > &)
 
BrickCounteroperator++ ()
 
bool done (unsigned d) const
 
void step (unsigned d)
 
void rewind (unsigned d)
 
int size (unsigned d) const
 
int GetOffset (unsigned d) const
 

Protected Member Functions

void general_increment ()
 
- Protected Member Functions inherited from BareFieldIterator< T, D >
void general_increment ()
 
bool isInGC () const
 
- Protected Member Functions inherited from BrickIterator< T, Dim >
void op_pp ()
 
- Protected Member Functions inherited from BrickCounter< Dim >
void op_pp ()
 

Protected Attributes

NDIndex< DimI
 
- Protected Attributes inherited from BareFieldIterator< T, D >
BareField< T, Dim >::iterator_if CurrentLField
 
BareField< T, Dim > * MyBareField
 
T dummy_compressed_data
 
int LFIndex
 
- Protected Attributes inherited from BrickIterator< T, Dim >
T *__restrict__ Current
 
vec< int, DimStrides
 
bool Whole
 
- Protected Attributes inherited from BrickCounter< Dim >
vec< int, DimCounters
 
vec< int, DimCounts
 

Detailed Description

template<class T, unsigned int D>
class IndexedBareFieldIterator< T, D >

Definition at line 20 of file AssignDefs.h.

Member Typedef Documentation

template<class T, unsigned int D>
typedef T IndexedBareFieldIterator< T, D >::return_type

Definition at line 46 of file IndexedBareField.h.

Member Enumeration Documentation

template<class T, unsigned int D>
anonymous enum
Enumerator
Dim_u 

Definition at line 45 of file IndexedBareField.h.

Constructor & Destructor Documentation

template<class T, unsigned int D>
IndexedBareFieldIterator< T, D >::IndexedBareFieldIterator ( )
inline

Definition at line 49 of file IndexedBareField.h.

template<class T, unsigned int D>
IndexedBareFieldIterator< T, D >::IndexedBareFieldIterator ( BareField< T, Dim > &  df,
const NDIndex< Dim > &  idx 
)
inline

Definition at line 55 of file IndexedBareField.h.

References IndexedBareFieldIterator< T, D >::beginLField().

Here is the call graph for this function:

template<class T, unsigned int D>
IndexedBareFieldIterator< T, D >::~IndexedBareFieldIterator ( )
inline

Definition at line 64 of file IndexedBareField.h.

Member Function Documentation

template<class T, unsigned int D>
void IndexedBareFieldIterator< T, D >::beginLField ( )
inline
template<class T, unsigned int D>
template<unsigned D1, class T1 >
void IndexedBareFieldIterator< T, D >::FillGCIfNecessary ( const BareField< T1, D1 > &  lhs) const
inline
template<class T, unsigned int D>
void IndexedBareFieldIterator< T, D >::general_increment ( )
inlineprotected

Definition at line 188 of file IndexedBareField.h.

References IndexedBareFieldIterator< T, D >::beginLField(), and BareFieldIterator< T, D >::nextLField().

Referenced by IndexedBareFieldIterator< T, D >::operator++().

Here is the call graph for this function:

template<class T, unsigned int D>
const BareField<T,Dim>& IndexedBareFieldIterator< T, D >::getBareField ( ) const
inline
template<class T, unsigned int D>
BareField<T,Dim>& IndexedBareFieldIterator< T, D >::getBareField ( )
inline

Definition at line 76 of file IndexedBareField.h.

References BareFieldIterator< T, D >::MyBareField.

template<class T, unsigned int D>
const NDIndex<Dim>& IndexedBareFieldIterator< T, D >::getDomain ( void  ) const
inline
template<class T, unsigned int D>
IndexedBareFieldIterator<T,Dim>& IndexedBareFieldIterator< T, D >::operator++ ( )
inline

Definition at line 150 of file IndexedBareField.h.

References IndexedBareFieldIterator< T, D >::general_increment(), and BrickIterator< T, Dim >::operator++().

Here is the call graph for this function:

template<class T, unsigned int D>
template<unsigned int D2>
bool IndexedBareFieldIterator< T, D >::plugBase ( const NDIndex< D2 > &  i)
inline

Definition at line 110 of file IndexedBareField.h.

References Physics::e, and IndexedBareFieldIterator< T, D >::I.

Referenced by for_each().

template<class T, unsigned int D>
void IndexedBareFieldIterator< T, D >::SetCurrentLocation ( const FieldLoc< Dim > &  loc)
inline

Member Data Documentation

template<class T, unsigned int D>
NDIndex<Dim> IndexedBareFieldIterator< T, D >::I
protected

The documentation for this class was generated from the following files: