NAMD
Public Member Functions | Public Attributes | List of all members
PatchElem Class Reference

#include <ComputeHomePatches.h>

Public Member Functions

 PatchElem ()
 
 PatchElem (PatchID p_param)
 
 PatchElem (HomePatch *p_param, Compute *cid, int useAvgPos)
 
 ~PatchElem ()
 
int operator== (const PatchElem &elem) const
 
int operator< (const PatchElem &elem) const
 

Public Attributes

PatchID patchID
 
HomePatchp
 
Box< Patch, CompAtom > * positionBox
 
Box< Patch, CompAtom > * avgPositionBox
 
Box< Patch, Results > * forceBox
 
CompAtomx
 
Resultsr
 
Forcef
 

Detailed Description

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 18 of file ComputeHomePatches.h.

Constructor & Destructor Documentation

PatchElem::PatchElem ( )
inline

Definition at line 29 of file ComputeHomePatches.h.

References avgPositionBox, f, forceBox, p, patchID, positionBox, r, and x.

29  {
30  patchID = -1;
31  p = NULL;
32  positionBox = NULL;
33  avgPositionBox = NULL;
34  forceBox = NULL;
35  x = NULL;
36  r = NULL;
37  f = NULL;
38  }
HomePatch * p
Box< Patch, CompAtom > * avgPositionBox
Box< Patch, Results > * forceBox
Box< Patch, CompAtom > * positionBox
CompAtom * x
PatchElem::PatchElem ( PatchID  p_param)
inline

Definition at line 40 of file ComputeHomePatches.h.

References patchID.

40  {
41  patchID = p_param;
42  }
PatchElem::PatchElem ( HomePatch p_param,
Compute cid,
int  useAvgPos 
)
inline

Definition at line 44 of file ComputeHomePatches.h.

References avgPositionBox, f, forceBox, Patch::getPatchID(), p, patchID, positionBox, r, Patch::registerAvgPositionPickup(), Patch::registerForceDeposit(), Patch::registerPositionPickup(), and x.

44  {
45  patchID = p_param->getPatchID();
46  p = p_param;
47  positionBox = p_param->registerPositionPickup(cid);
48  if ( useAvgPos ) {
50  }
51  forceBox = p_param->registerForceDeposit(cid);
52  x = NULL;
53  r = NULL;
54  f = NULL;
55  }
Box< Patch, CompAtom > * registerAvgPositionPickup(Compute *cid)
Definition: Patch.C:134
HomePatch * p
PatchID getPatchID()
Definition: Patch.h:114
Box< Patch, CompAtom > * avgPositionBox
Box< Patch, Results > * forceBox
Box< Patch, CompAtom > * positionBox
Box< Patch, CompAtom > * registerPositionPickup(Compute *cid)
Definition: Patch.C:107
CompAtom * x
Box< Patch, Results > * registerForceDeposit(Compute *cid)
Definition: Patch.C:228
PatchElem::~PatchElem ( )
inline

Definition at line 57 of file ComputeHomePatches.h.

57 {};

Member Function Documentation

int PatchElem::operator< ( const PatchElem elem) const
inline

Definition at line 63 of file ComputeHomePatches.h.

References patchID.

63  {
64  return (patchID < elem.patchID);
65  }
int PatchElem::operator== ( const PatchElem elem) const
inline

Definition at line 59 of file ComputeHomePatches.h.

References patchID.

59  {
60  return (elem.patchID == patchID);
61  }

Member Data Documentation

Box<Patch,CompAtom>* PatchElem::avgPositionBox

Definition at line 23 of file ComputeHomePatches.h.

Referenced by PatchElem().

Force* PatchElem::f

Definition at line 27 of file ComputeHomePatches.h.

Referenced by PatchElem().

Box<Patch,Results>* PatchElem::forceBox

Definition at line 24 of file ComputeHomePatches.h.

Referenced by PatchElem().

HomePatch* PatchElem::p

Definition at line 21 of file ComputeHomePatches.h.

Referenced by PatchElem().

PatchID PatchElem::patchID

Definition at line 20 of file ComputeHomePatches.h.

Referenced by operator<(), operator==(), and PatchElem().

Box<Patch,CompAtom>* PatchElem::positionBox

Definition at line 22 of file ComputeHomePatches.h.

Referenced by PatchElem().

Results* PatchElem::r

Definition at line 26 of file ComputeHomePatches.h.

Referenced by PatchElem().

CompAtom* PatchElem::x

Definition at line 25 of file ComputeHomePatches.h.

Referenced by PatchElem().


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