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() [1/2]

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() [2/2]

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:133
PatchID getPatchID() const
Definition: Patch.h:114
Box< Patch, CompAtom > * positionBox
Box< Patch, CompAtom > * avgPositionBox
CompAtomExt * xExt
Box< Patch, Results > * forceBox
Box< Patch, CompAtom > * registerPositionPickup(Compute *cid)
Definition: Patch.C:106
Box< Patch, Results > * registerForceDeposit(Compute *cid)
Definition: Patch.C:227

◆ ~TuplePatchElem()

TuplePatchElem::~TuplePatchElem ( )
inline

Definition at line 82 of file ComputeHomeTuples.h.

82 {};

Member Function Documentation

◆ hash()

int TuplePatchElem::hash ( void  ) const
inline

Definition at line 52 of file ComputeHomeTuples.h.

References patchID.

52 { return patchID; }

◆ operator<()

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  }

◆ operator==()

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

◆ af

Force* TuplePatchElem::af

◆ avgPositionBox

Box<Patch,CompAtom>* TuplePatchElem::avgPositionBox

◆ f

Force* TuplePatchElem::f

◆ forceBox

Box<Patch,Results>* TuplePatchElem::forceBox

◆ p

Patch* TuplePatchElem::p

◆ patchID

PatchID TuplePatchElem::patchID

Definition at line 40 of file ComputeHomeTuples.h.

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

◆ positionBox

Box<Patch,CompAtom>* TuplePatchElem::positionBox

◆ r

Results* TuplePatchElem::r

◆ x

CompAtom* TuplePatchElem::x

◆ x_avg

CompAtom* TuplePatchElem::x_avg

◆ xExt

CompAtomExt* TuplePatchElem::xExt

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