#include <collidecharm_impl.h>
Public Member Functions | |
collideMgr (const CollideGrid3d &gridMap, const CProxy_collideClient &client, const CProxy_collideVoxel &voxels) | |
void | registerContributor (int chunkNo) |
void | unregisterContributor (int chunkNo) |
void | contribute (int chunkNo, int n, const bbox3d *boxes, const int *prio) |
void | sendVoxelMessage (const CollideLoc3d &dest, int n, CollideObjRec *obj) |
void | voxelMessageRecvd (void) |
Protected Member Functions | |
virtual void | pleaseAdvance (void) |
virtual void | reductionFinished (void) |
Private Member Functions | |
void | status (const char *msg) |
void | tryAdvance (void) |
Private Attributes | |
CProxy_collideMgr | thisproxy |
int | steps |
CProxy_collideVoxel | voxelProxy |
CollideGrid3d | gridMap |
CProxy_collideClient | client |
int | nContrib |
int | contribCount |
CollisionAggregator | aggregator |
int | msgsSent |
int | msgsRecvd |
Definition at line 147 of file collidecharm_impl.h.
collideMgr::collideMgr | ( | const CollideGrid3d & | gridMap, | |
const CProxy_collideClient & | client, | |||
const CProxy_collideVoxel & | voxels | |||
) |
Definition at line 397 of file collidecharm.C.
References contribCount, msgsRecvd, msgsSent, nContrib, and steps.
void collideMgr::status | ( | const char * | msg | ) | [inline, private] |
Definition at line 151 of file collidecharm_impl.h.
References Converse::CkMyPe().
void collideMgr::tryAdvance | ( | void | ) | [private] |
Definition at line 479 of file collidecharm.C.
References advance(), contribCount, msgsRecvd, msgsSent, nContrib, and steps.
Referenced by contribute(), pleaseAdvance(), and voxelMessageRecvd().
void collideMgr::pleaseAdvance | ( | void | ) | [protected, virtual] |
Definition at line 472 of file collidecharm.C.
References tryAdvance().
void collideMgr::reductionFinished | ( | void | ) | [protected, virtual] |
void collideMgr::registerContributor | ( | int | chunkNo | ) |
void collideMgr::unregisterContributor | ( | int | chunkNo | ) |
Definition at line 422 of file collidecharm.C.
References CollisionAggregator::aggregate(), aggregator, Converse::CkMyPe(), CollisionAggregator::compact(), contribCount, nContrib, CollisionAggregator::send(), and tryAdvance().
void collideMgr::sendVoxelMessage | ( | const CollideLoc3d & | dest, | |
int | n, | |||
CollideObjRec * | obj | |||
) |
Definition at line 442 of file collidecharm.C.
References buildIndex(), Converse::CkMyPe(), msg, msgsSent, voxelProxy, voxName(), CollideLoc3d::x, CollideLoc3d::y, and CollideLoc3d::z.
Referenced by voxelAggregator::send().
void collideMgr::voxelMessageRecvd | ( | void | ) |
Definition at line 463 of file collidecharm.C.
References msgsRecvd, msgsSent, and tryAdvance().
CProxy_collideMgr collideMgr::thisproxy [private] |
Definition at line 149 of file collidecharm_impl.h.
int collideMgr::steps [private] |
Definition at line 154 of file collidecharm_impl.h.
Referenced by collideMgr(), reductionFinished(), and tryAdvance().
CProxy_collideVoxel collideMgr::voxelProxy [private] |
Definition at line 155 of file collidecharm_impl.h.
Referenced by reductionFinished(), and sendVoxelMessage().
CollideGrid3d collideMgr::gridMap [private] |
CProxy_collideClient collideMgr::client [private] |
Definition at line 157 of file collidecharm_impl.h.
int collideMgr::nContrib [private] |
Definition at line 159 of file collidecharm_impl.h.
Referenced by collideMgr(), contribute(), registerContributor(), tryAdvance(), and unregisterContributor().
int collideMgr::contribCount [private] |
Definition at line 160 of file collidecharm_impl.h.
Referenced by collideMgr(), contribute(), and tryAdvance().
CollisionAggregator collideMgr::aggregator [private] |
int collideMgr::msgsSent [private] |
Definition at line 163 of file collidecharm_impl.h.
Referenced by collideMgr(), sendVoxelMessage(), tryAdvance(), and voxelMessageRecvd().
int collideMgr::msgsRecvd [private] |
Definition at line 164 of file collidecharm_impl.h.
Referenced by collideMgr(), tryAdvance(), and voxelMessageRecvd().