PPL Logo

AmpiRequestList Class Reference

Special CkVec<AmpiRequest*> for AMPI. Most code copied from cklist.h. More...

#include <ampiimpl.h>

Inheritance diagram for AmpiRequestList:

Inheritance graph
[legend]
Collaboration diagram for AmpiRequestList:

Collaboration graph
[legend]

Public Member Functions

 AmpiRequestList ()
 ~AmpiRequestList ()
 AmpiRequestList (const AmpiRequestList &src)
 AmpiRequestList (int size)
AmpiRequestListoperator= (const AmpiRequestList &src)
AmpiRequestoperator[] (size_t n)
int size (void) const
void setSize (int blklen_)
void growAtLeast (int pos)
void insertAt (int pos, AmpiRequest *elt)
void free (int pos)
void push_back (AmpiRequest *elt)
int insert (AmpiRequest *elt)
void checkRequest (MPI_Request idx)
int findRequestIndex (AmpiRequest *req)
void pup (PUP::er &p)
void print ()

Private Member Functions

void makeBlock (int blklen_, int len_)
void freeBlock (void)
void copyFrom (const AmpiRequestList &src)

Private Attributes

AmpiRequest ** block
int blklen
int len

Detailed Description

Special CkVec<AmpiRequest*> for AMPI. Most code copied from cklist.h.

Definition at line 747 of file ampiimpl.h.


Constructor & Destructor Documentation

AmpiRequestList::AmpiRequestList (  )  [inline]

Definition at line 764 of file ampiimpl.h.

References blklen, and len.

AmpiRequestList::~AmpiRequestList (  )  [inline]

Definition at line 765 of file ampiimpl.h.

References freeBlock().

AmpiRequestList::AmpiRequestList ( const AmpiRequestList src  )  [inline]

Definition at line 766 of file ampiimpl.h.

References copyFrom().

AmpiRequestList::AmpiRequestList ( int  size  )  [inline]

Definition at line 767 of file ampiimpl.h.

References makeBlock().


Member Function Documentation

void AmpiRequestList::makeBlock ( int  blklen_,
int  len_ 
) [inline, private]

Definition at line 751 of file ampiimpl.h.

References blklen, and len.

Referenced by AmpiRequestList(), copyFrom(), pup(), and setSize().

void AmpiRequestList::freeBlock ( void   )  [inline, private]

Definition at line 755 of file ampiimpl.h.

References blklen, and len.

Referenced by operator=(), pup(), and ~AmpiRequestList().

void AmpiRequestList::copyFrom ( const AmpiRequestList src  )  [inline, private]

Definition at line 759 of file ampiimpl.h.

References blklen, block, CkSTLHelper< AmpiRequest * >::elementCopy(), len, and makeBlock().

Referenced by AmpiRequestList(), and operator=().

AmpiRequestList& AmpiRequestList::operator= ( const AmpiRequestList src  )  [inline]

Definition at line 768 of file ampiimpl.h.

References copyFrom(), and freeBlock().

AmpiRequest* AmpiRequestList::operator[] ( size_t  n  )  [inline]

Definition at line 774 of file ampiimpl.h.

int AmpiRequestList::size ( void   )  const [inline]

Definition at line 776 of file ampiimpl.h.

References len.

Referenced by AMPI_Iallgather(), AMPI_Ialltoall(), AMPI_Wait(), and ampi::inorder().

void AmpiRequestList::setSize ( int  blklen_  )  [inline]

Definition at line 777 of file ampiimpl.h.

References CkSTLHelper< AmpiRequest * >::elementCopy(), len, and makeBlock().

Referenced by growAtLeast().

void AmpiRequestList::growAtLeast ( int  pos  )  [inline]

Definition at line 784 of file ampiimpl.h.

References blklen, and setSize().

Referenced by insertAt().

void AmpiRequestList::insertAt ( int  pos,
AmpiRequest elt 
) [inline]

Definition at line 787 of file ampiimpl.h.

References growAtLeast(), and len.

Referenced by push_back().

void AmpiRequestList::free ( int  pos  )  [inline]

Definition at line 794 of file ampiimpl.h.

References len.

Referenced by AMPI_Request_free(), AMPI_Test(), AMPI_Wait(), and AMPI_Waitall().

void AmpiRequestList::push_back ( AmpiRequest elt  )  [inline]

Definition at line 800 of file ampiimpl.h.

References insertAt(), and len.

Referenced by insert().

int AmpiRequestList::insert ( AmpiRequest elt  )  [inline]

void AmpiRequestList::checkRequest ( MPI_Request  idx  )  [inline]

Definition at line 815 of file ampiimpl.h.

References len.

Referenced by checkRequest(), and checkRequests().

int AmpiRequestList::findRequestIndex ( AmpiRequest req  )  [inline]

Definition at line 822 of file ampiimpl.h.

References len.

void AmpiRequestList::pup ( PUP::er p  ) 

void AmpiRequestList::print (  )  [inline]

Definition at line 832 of file ampiimpl.h.

References CmiPrintf(), and len.


Field Documentation

Definition at line 748 of file ampiimpl.h.

Referenced by copyFrom().

Definition at line 749 of file ampiimpl.h.

Referenced by AmpiRequestList(), copyFrom(), freeBlock(), growAtLeast(), makeBlock(), and pup().


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

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