PatchElem Class Reference

#include <ComputeHomePatches.h>

List of all members.

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.

00029               {
00030     patchID = -1;
00031     p = NULL;
00032     positionBox = NULL;
00033     avgPositionBox = NULL;
00034     forceBox = NULL;
00035     x = NULL;
00036     r = NULL;
00037     f = NULL;
00038   }

PatchElem::PatchElem ( PatchID  p_param  )  [inline]

Definition at line 40 of file ComputeHomePatches.h.

References patchID.

00040                              {
00041     patchID = p_param;
00042   }

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.

00044                                                              {
00045     patchID = p_param->getPatchID();
00046     p = p_param;
00047     positionBox = p_param->registerPositionPickup(cid);
00048     if ( useAvgPos ) {
00049       avgPositionBox = p_param->registerAvgPositionPickup(cid);
00050     }
00051     forceBox = p_param->registerForceDeposit(cid);
00052     x = NULL;
00053     r = NULL;
00054     f = NULL;
00055   }

PatchElem::~PatchElem (  )  [inline]

Definition at line 57 of file ComputeHomePatches.h.

00057 {};


Member Function Documentation

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

Definition at line 63 of file ComputeHomePatches.h.

References patchID.

00063                                              {
00064     return (patchID < elem.patchID);
00065   }

int PatchElem::operator== ( const PatchElem elem  )  const [inline]

Definition at line 59 of file ComputeHomePatches.h.

References patchID.

00059                                               {
00060     return (elem.patchID == patchID);
00061   }


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:
Generated on Tue Nov 21 01:17:20 2017 for NAMD by  doxygen 1.4.7