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

#include <ComputeHomeTuples.h>

Public Member Functions

int hash () const
 
 TuplePatchElem (PatchID pid=-1)
 
 TuplePatchElem (Patch *p_param, Compute *cid)
 
 ~TuplePatchElem ()
 
int operator== (const TuplePatchElem &elem) const
 
int operator< (const TuplePatchElem &elem) const
 

Public Attributes

PatchID patchID
 
Patchp
 
Box< Patch, CompAtom > * positionBox
 
Box< Patch, CompAtom > * avgPositionBox
 
Box< Patch, Results > * forceBox
 
CompAtomx
 
CompAtomExtxExt
 
CompAtomx_avg
 
Resultsr
 
Forcef
 
Forceaf
 

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 38 of file ComputeHomeTuples.h.

Constructor & Destructor Documentation

TuplePatchElem::TuplePatchElem ( PatchID  pid = -1)
inline

Definition at line 54 of file ComputeHomeTuples.h.

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

54  {
55  patchID = pid;
56  p = NULL;
57  positionBox = NULL;
58  avgPositionBox = NULL;
59  forceBox = NULL;
60  x = NULL;
61  xExt = NULL;
62  x_avg = NULL;
63  r = NULL;
64  f = NULL;
65  af = NULL;
66  }
Box< Patch, CompAtom > * positionBox
Box< Patch, CompAtom > * avgPositionBox
CompAtomExt * xExt
Box< Patch, Results > * forceBox
TuplePatchElem::TuplePatchElem ( Patch p_param,
Compute cid 
)
inline

Definition at line 68 of file ComputeHomeTuples.h.

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

68  {
69  patchID = p_param->getPatchID();
70  p = p_param;
71  positionBox = p_param->registerPositionPickup(cid);
73  forceBox = p_param->registerForceDeposit(cid);
74  x = NULL;
75  xExt = NULL;
76  x_avg = NULL;
77  r = NULL;
78  f = NULL;
79  af = NULL;
80  }
Box< Patch, CompAtom > * registerAvgPositionPickup(Compute *cid)
Definition: Patch.C:134
Box< Patch, CompAtom > * positionBox
PatchID getPatchID()
Definition: Patch.h:114
Box< Patch, CompAtom > * avgPositionBox
CompAtomExt * xExt
Box< Patch, Results > * forceBox
Box< Patch, CompAtom > * registerPositionPickup(Compute *cid)
Definition: Patch.C:107
Box< Patch, Results > * registerForceDeposit(Compute *cid)
Definition: Patch.C:228
TuplePatchElem::~TuplePatchElem ( )
inline

Definition at line 82 of file ComputeHomeTuples.h.

82 {};

Member Function Documentation

int TuplePatchElem::hash ( void  ) const
inline

Definition at line 52 of file ComputeHomeTuples.h.

References patchID.

52 { return patchID; }
int TuplePatchElem::operator< ( const TuplePatchElem elem) const
inline

Definition at line 88 of file ComputeHomeTuples.h.

References patchID.

88  {
89  return (patchID < elem.patchID);
90  }
int TuplePatchElem::operator== ( const TuplePatchElem elem) const
inline

Definition at line 84 of file ComputeHomeTuples.h.

References patchID.

84  {
85  return (elem.patchID == patchID);
86  }

Member Data Documentation

Force* TuplePatchElem::af
Box<Patch,CompAtom>* TuplePatchElem::avgPositionBox

Definition at line 43 of file ComputeHomeTuples.h.

Referenced by TuplePatchElem().

Force* TuplePatchElem::f
Box<Patch,Results>* TuplePatchElem::forceBox

Definition at line 44 of file ComputeHomeTuples.h.

Referenced by TuplePatchElem().

Patch* TuplePatchElem::p
PatchID TuplePatchElem::patchID

Definition at line 40 of file ComputeHomeTuples.h.

Referenced by hash(), operator<(), operator==(), and TuplePatchElem().

Box<Patch,CompAtom>* TuplePatchElem::positionBox

Definition at line 42 of file ComputeHomeTuples.h.

Referenced by TuplePatchElem().

Results* TuplePatchElem::r

Definition at line 48 of file ComputeHomeTuples.h.

Referenced by ExclElem::computeForce(), and TuplePatchElem().

CompAtom* TuplePatchElem::x
CompAtom* TuplePatchElem::x_avg

Definition at line 47 of file ComputeHomeTuples.h.

Referenced by TuplePatchElem().

CompAtomExt* TuplePatchElem::xExt

Definition at line 46 of file ComputeHomeTuples.h.

Referenced by TuplePatchElem().


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