Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

TuplePatchElem Class Reference

#include <ComputeHomeTuples.h>

List of all members.

Public Member Functions

int hash () const
 TuplePatchElem (PatchID pid=-1)
 TuplePatchElem (Patch *p_param, ComputeID 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
CompAtomx_avg
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 34 of file ComputeHomeTuples.h.


Constructor & Destructor Documentation

TuplePatchElem::TuplePatchElem PatchID  pid = -1  )  [inline]
 

Definition at line 51 of file ComputeHomeTuples.h.

00051                                    {
00052     patchID = pid;
00053     p = NULL;
00054     positionBox = NULL;
00055     avgPositionBox = NULL;
00056     forceBox = NULL;
00057     x = NULL;
00058 #ifdef MEM_OPT_VERSION
00059     xExt = NULL;
00060 #endif
00061     x_avg = NULL;
00062     r = NULL;
00063     f = NULL;
00064   }

TuplePatchElem::TuplePatchElem Patch p_param,
ComputeID  cid
[inline]
 

Definition at line 66 of file ComputeHomeTuples.h.

References Patch::getPatchID(), Patch::registerAvgPositionPickup(), Patch::registerForceDeposit(), and Patch::registerPositionPickup().

00066                                                 {
00067     patchID = p_param->getPatchID();
00068     p = p_param;
00069     positionBox = p_param->registerPositionPickup(cid);
00070     avgPositionBox = p_param->registerAvgPositionPickup(cid);
00071     forceBox = p_param->registerForceDeposit(cid);
00072     x = NULL;
00073 #ifdef MEM_OPT_VERSION
00074     xExt = NULL;
00075 #endif
00076     x_avg = NULL;
00077     r = NULL;
00078     f = NULL;
00079   }

TuplePatchElem::~TuplePatchElem  )  [inline]
 

Definition at line 81 of file ComputeHomeTuples.h.

00081 {};


Member Function Documentation

int TuplePatchElem::hash  )  const [inline]
 

Definition at line 49 of file ComputeHomeTuples.h.

00049 { return patchID; }

int TuplePatchElem::operator< const TuplePatchElem elem  )  const [inline]
 

Definition at line 87 of file ComputeHomeTuples.h.

References patchID.

00087                                                   {
00088     return (patchID < elem.patchID);
00089   }

int TuplePatchElem::operator== const TuplePatchElem elem  )  const [inline]
 

Definition at line 83 of file ComputeHomeTuples.h.

References patchID.

00083                                                    {
00084     return (elem.patchID == patchID);
00085   }


Member Data Documentation

Box<Patch,CompAtom>* TuplePatchElem::avgPositionBox
 

Definition at line 39 of file ComputeHomeTuples.h.

Force* TuplePatchElem::f
 

Definition at line 47 of file ComputeHomeTuples.h.

Referenced by ImproperElem::computeForce(), DihedralElem::computeForce(), CrosstermElem::computeForce(), BondElem::computeForce(), and AngleElem::computeForce().

Box<Patch,Results>* TuplePatchElem::forceBox
 

Definition at line 40 of file ComputeHomeTuples.h.

Patch* TuplePatchElem::p
 

Definition at line 37 of file ComputeHomeTuples.h.

Referenced by ImproperElem::computeForce(), DihedralElem::computeForce(), CrosstermElem::computeForce(), BondElem::computeForce(), and AngleElem::computeForce().

PatchID TuplePatchElem::patchID
 

Definition at line 36 of file ComputeHomeTuples.h.

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

Box<Patch,CompAtom>* TuplePatchElem::positionBox
 

Definition at line 38 of file ComputeHomeTuples.h.

Results* TuplePatchElem::r
 

Definition at line 46 of file ComputeHomeTuples.h.

CompAtom* TuplePatchElem::x
 

Definition at line 41 of file ComputeHomeTuples.h.

Referenced by ImproperElem::computeForce(), DihedralElem::computeForce(), CrosstermElem::computeForce(), BondElem::computeForce(), and AngleElem::computeForce().

CompAtom* TuplePatchElem::x_avg
 

Definition at line 45 of file ComputeHomeTuples.h.


The documentation for this class was generated from the following file:
Generated on Fri Oct 10 04:07:50 2008 for NAMD by  doxygen 1.3.9.1