PPL Logo

CkArrayElementRangeIterator< T > Class Template Reference

Count array elements going by until they reach this range (lo to hi), then start passing them to dest. More...

Inheritance diagram for CkArrayElementRangeIterator< T >:

Inheritance graph
[legend]
Collaboration diagram for CkArrayElementRangeIterator< T >:

Collaboration graph
[legend]

Public Member Functions

 CkArrayElementRangeIterator (T *dest_, int l, int h)
int iterate (int start, CkArray *m)
 Called to iterate only on a specific array manager.
void iterate (void)
 Call add for every in-range array element on this processor.
virtual void addLocation (CkLocation &loc)
 This location is part of the calling location manager.
int getCount (void)

Private Attributes

T * dest
CkArraymgr
int cur
int lo
int hi

Detailed Description

template<class T>
class CkArrayElementRangeIterator< T >

Count array elements going by until they reach this range (lo to hi), then start passing them to dest.

Definition at line 128 of file debug-charm.C.


Constructor & Destructor Documentation

template<class T>
CkArrayElementRangeIterator< T >::CkArrayElementRangeIterator ( T *  dest_,
int  l,
int  h 
) [inline]

Definition at line 134 of file debug-charm.C.


Member Function Documentation

template<class T>
int CkArrayElementRangeIterator< T >::iterate ( int  start,
CkArray m 
) [inline]

Called to iterate only on a specific array manager.

Returs the number of objects it iterate on.

Definition at line 140 of file debug-charm.C.

References CkArrayElementRangeIterator< T >::cur, CkArray::getLocMgr(), CkLocMgr::iterate(), and CkArrayElementRangeIterator< T >::mgr.

Referenced by CpdList_arrayElements::getLength(), CpdList_arrayElementNames::getLength(), CpdList_arrayElements::pup(), and CpdList_arrayElementNames::pup().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
void CkArrayElementRangeIterator< T >::iterate ( void   )  [inline]

Call add for every in-range array element on this processor.

Definition at line 149 of file debug-charm.C.

References CkArray::getLocMgr(), IrrGroup::isArrMgr(), CkLocMgr::iterate(), and CkArrayElementRangeIterator< T >::mgr.

Here is the call graph for this function:

template<class T>
virtual void CkArrayElementRangeIterator< T >::addLocation ( CkLocation loc  )  [inline, virtual]

template<class T>
int CkArrayElementRangeIterator< T >::getCount ( void   )  [inline]

Definition at line 173 of file debug-charm.C.

References CkArrayElementRangeIterator< T >::cur.

Referenced by CpdList_arrayElements::getLength(), and CpdList_arrayElementNames::getLength().

Here is the caller graph for this function:


Field Documentation

template<class T>
T* CkArrayElementRangeIterator< T >::dest [private]

Definition at line 130 of file debug-charm.C.

Referenced by CkArrayElementRangeIterator< T >::addLocation().

template<class T>
CkArray* CkArrayElementRangeIterator< T >::mgr [private]

template<class T>
int CkArrayElementRangeIterator< T >::cur [private]

template<class T>
int CkArrayElementRangeIterator< T >::lo [private]

Definition at line 132 of file debug-charm.C.

Referenced by CkArrayElementRangeIterator< T >::addLocation().

template<class T>
int CkArrayElementRangeIterator< T >::hi [private]

Definition at line 132 of file debug-charm.C.

Referenced by CkArrayElementRangeIterator< T >::addLocation().


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

Generated on Mon Sep 21 08:19:10 2020 for Charm++ by  doxygen 1.5.5