PPL Logo

CkMigratableList Class Reference
[CkArrayImpl]

Stores a list of array elements. More...

#include <cklocation.h>

Inheritance diagram for CkMigratableList:

Inheritance graph
[legend]
Collaboration diagram for CkMigratableList:

Collaboration graph
[legend]

Public Member Functions

 CkMigratableList ()
 ~CkMigratableList ()
void setSize (int s)
int length (void) const
void put (CkMigratable *v, int atIdx)
 Add an element at the given location.
CkMigratableget (int localIdx)
 Return the element at the given location.
CkMigratablenext (int &from)
 Return the next non-empty element starting from the given index, or NULL if there is none.
void empty (int localIdx)
 Remove the element at the given location.

Private Attributes

CkVec< CkZeroPtr< CkMigratable > > el

Detailed Description

Stores a list of array elements.

These lists are kept by the array managers.

Definition at line 372 of file cklocation.h.


Constructor & Destructor Documentation

CkMigratableList::CkMigratableList (  ) 

Definition at line 1226 of file cklocation.C.

CkMigratableList::~CkMigratableList (  ) 

Definition at line 1227 of file cklocation.C.


Member Function Documentation

void CkMigratableList::setSize ( int  s  ) 

Definition at line 1229 of file cklocation.C.

References el, and CkVec< T >::resize().

Referenced by CkLocMgr::addManager().

int CkMigratableList::length ( void   )  const [inline]

Definition at line 379 of file cklocation.h.

References el, and CkVec< T >::length().

Referenced by next(), and put().

void CkMigratableList::put ( CkMigratable v,
int  atIdx 
)

Add an element at the given location.

Definition at line 1233 of file cklocation.C.

References el, and length().

Referenced by CkLocMgr::addElementToRec(), and CkMigratableListT< T >::put().

CkMigratable* CkMigratableList::get ( int  localIdx  )  [inline]

Return the element at the given location.

Reimplemented in CkMigratableListT< T >.

Definition at line 385 of file cklocation.h.

References el.

Referenced by CkLocMgr::addElementToRec().

CkMigratable* CkMigratableList::next ( int from  )  [inline]

Return the next non-empty element starting from the given index, or NULL if there is none.

Updates from to point past the returned index.

Reimplemented in CkMigratableListT< T >.

Definition at line 391 of file cklocation.h.

References el, and length().

Referenced by CkMigratableListT< T >::next().

void CkMigratableList::empty ( int  localIdx  )  [inline]

Remove the element at the given location.

Definition at line 401 of file cklocation.h.

References el.

Referenced by CkLocMgr::pupElementsFor().


Field Documentation

Definition at line 373 of file cklocation.h.

Referenced by empty(), get(), length(), next(), put(), and setSize().


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

Generated on Thu May 24 07:57:27 2012 for Charm++ by  doxygen 1.5.5