Cache interface to particles for the gravity calculation. This is a read-only cache of particles.
More...
#include <CacheInterface.h>
|
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 void | callback (CkArrayID, CkArrayIndexMax &, KeyType, CkCacheUserData &, void *, int) |
| callback to TreePiece after data is received. More...
|
|
Cache interface to particles for the gravity calculation. This is a read-only cache of particles.
void EntryTypeGravityParticle::callback |
( |
CkArrayID |
requestorID, |
|
|
CkArrayIndexMax & |
requestorIdx, |
|
|
KeyType |
key, |
|
|
CkCacheUserData & |
userData, |
|
|
void * |
data, |
|
|
int |
chunk |
|
) |
| |
|
static |
callback to TreePiece after data is received.
- Parameters
-
requestorID | ID of TreePiece CkArray |
requestorIdx | Index of requesting TreePiece |
key | Key of bucket requested |
userData | Encodes which bucket and which walk requested this data. |
data | Pointer to the cached data |
chunk | Which chunk is this for. |
void * EntryTypeGravityParticle::request |
( |
CkArrayIndexMax & |
idx, |
|
|
KeyType |
key |
|
) |
| |
Request a bucket of particles from a TreePiece.
- Parameters
-
idx | Index of the TreePiece |
key | Key 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
-
msg | Message containing requested data. |
chunk | chunk of cache |
from | Index of TreePiece which supplied the data |
- Returns
- pointer to cached data
The documentation for this class was generated from the following files: