changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
EntryTypeGravityParticle Class Reference

Cache interface to particles for the gravity calculation. This is a read-only cache of particles. More...

#include <CacheInterface.h>

Inheritance diagram for EntryTypeGravityParticle:

Public Member Functions

void * request (CkArrayIndexMax &, KeyType)
 Request a bucket of particles from a TreePiece. More...
 
void * unpack (CkCacheFillMsg< KeyType > *, int, CkArrayIndexMax &)
 Return data from fufilled cache request. More...
 
void writeback (CkArrayIndexMax &, KeyType, void *)
 Do nothing: this is a read-only cache.
 
void free (void *)
 free cached data.
 
int size (void *)
 return size of cached data.
 

Static Public Member Functions

static void callback (CkArrayID, CkArrayIndexMax &, KeyType, CkCacheUserData &, void *, int)
 callback to TreePiece after data is received. More...
 

Detailed Description

Cache interface to particles for the gravity calculation. This is a read-only cache of particles.

Member Function Documentation

void EntryTypeGravityParticle::callback ( CkArrayID  requestorID,
CkArrayIndexMax &  requestorIdx,
KeyType  key,
CkCacheUserData &  userData,
void *  data,
int  chunk 
)
static

callback to TreePiece after data is received.

Parameters
requestorIDID of TreePiece CkArray
requestorIdxIndex of requesting TreePiece
keyKey of bucket requested
userDataEncodes which bucket and which walk requested this data.
dataPointer to the cached data
chunkWhich chunk is this for.
void * EntryTypeGravityParticle::request ( CkArrayIndexMax &  idx,
KeyType  key 
)

Request a bucket of particles from a TreePiece.

Parameters
idxIndex of the TreePiece
keyKey of the requested bucket.

Calls TreePiece::fillRequestParticles() to fullfill the request.

void * EntryTypeGravityParticle::unpack ( CkCacheFillMsg< KeyType > *  msg,
int  chunk,
CkArrayIndexMax &  from 
)

Return data from fufilled cache request.

Parameters
msgMessage containing requested data.
chunkchunk of cache
fromIndex of TreePiece which supplied the data
Returns
pointer to cached data

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