PPL Logo

libs/ck-libs/collide/collidecharm.C File Reference

Go to the source code of this file.

Data Structures

class  hashCache< n >
class  hashCache1< KEY, OBJ >
class  voxelAggregator

Functions

CkGroupID CollideSerialClient (CollisionClientFn clientFn, void *clientParam)
 Call this on processor 0 to build a Collision client that just calls this serial routine on processor 0 with the final, complete Collision list.
CollideHandle CollideCreate (const CollideGrid3d &gridMap, CkGroupID clientGroupID)
 Create a collider group to contribute objects to.
void CollideRegister (CollideHandle h, int chunkNo)
 Register with this collider group.
void CollideUnregister (CollideHandle h, int chunkNo)
 Unregister with this collider group.
void CollideBoxesPrio (CollideHandle h, int chunkNo, int nBox, const bbox3d *boxes, const int *prio)
 Send these objects off to be collided.
static int low23 (unsigned int src)
static const char * voxName (int ix, int iy, int iz, char *buf)
static const char * voxName (const CkIndex3D &idx, char *buf)
CkArrayIndex3D buildIndex (const CollideLoc3d &l)

Variables

iSeg1d collideVoxel_extents [3]


Function Documentation

CkGroupID CollideSerialClient ( CollisionClientFn  clientFn,
void *  clientParam 
)

Call this on processor 0 to build a Collision client that just calls this serial routine on processor 0 with the final, complete Collision list.

Definition at line 35 of file collidecharm.C.

CollideHandle CollideCreate ( const CollideGrid3d gridMap,
CkGroupID  clientGroupID 
)

Create a collider group to contribute objects to.

Should be called on processor 0.

Definition at line 45 of file collidecharm.C.

Referenced by COLLIDE_Init().

void CollideRegister ( CollideHandle  h,
int  chunkNo 
)

Register with this collider group.

Register with this collider group. (Call on creation/arrival).

Definition at line 55 of file collidecharm.C.

Referenced by threadCollide::arriving().

void CollideUnregister ( CollideHandle  h,
int  chunkNo 
)

Unregister with this collider group.

Unregister with this collider group. (Call on deletion).

Definition at line 60 of file collidecharm.C.

Referenced by threadCollide::leaving().

void CollideBoxesPrio ( CollideHandle  h,
int  chunkNo,
int  nBox,
const bbox3d boxes,
const int prio 
)

Send these objects off to be collided.

The results go the collisionClient group registered at creation time.

Definition at line 68 of file collidecharm.C.

Referenced by threadCollide::contribute().

static int low23 ( unsigned int  src  )  [static]

Definition at line 379 of file collidecharm.C.

Referenced by collideVoxel::collideVoxel(), collideVoxel::status(), and voxName().

static const char* voxName ( int  ix,
int  iy,
int  iz,
char *  buf 
) [static]

Definition at line 385 of file collidecharm.C.

References low23().

Referenced by collideMgr::sendVoxelMessage(), and voxName().

static const char* voxName ( const CkIndex3D idx,
char *  buf 
) [static]

Definition at line 392 of file collidecharm.C.

References voxName(), CkIndex3D::x, CkIndex3D::y, and CkIndex3D::z.

CkArrayIndex3D buildIndex ( const CollideLoc3d l  )  [inline]

Definition at line 438 of file collidecharm.C.

References CollideLoc3d::x, CollideLoc3d::y, and CollideLoc3d::z.

Referenced by collideMgr::sendVoxelMessage().


Variable Documentation

Initial value:

{
        iSeg1d(100,-100),iSeg1d(100,-100),iSeg1d(100,-100)}

Definition at line 502 of file collidecharm.C.


Generated on Fri May 25 08:00:46 2012 for Charm++ by  doxygen 1.5.5