Simpatico
v1.10
|
Set of Atoms for which pair interactions with a parent Atom are "masked".
Each Mask object is associated with one parent Atom. The Mask stores the integer identifiers for a set of Atoms for which non-bonded pair interactions with the parent atom are suppressed, or "masked". These are generally atoms that are directly bonded to the parent Atom, or part of the same Angle or Dihedral group. The Mask is used during construction of a Velet pair list to identify nearby atoms for which pair interactions are suppressed.
Definition at line 31 of file ddMd/chemistry/Mask.h.
#include <Mask.h>
Public Member Functions | |
Mask () | |
Constructor. More... | |
void | clear () |
Clear the masked set (remove all atoms). More... | |
void | append (int id) |
Add an Atom to the masked set. More... | |
bool | isMasked (int id) const |
True if the atom is in the masked set for the parent Atom. More... | |
int | operator[] (int i) const |
Return value of atom index number i. More... | |
int | size () const |
Return the number of masked atoms. More... | |
DdMd::Mask::Mask | ( | ) |
Constructor.
Definition at line 20 of file ddMd/chemistry/Mask.cpp.
void DdMd::Mask::clear | ( | ) |
Clear the masked set (remove all atoms).
Definition at line 31 of file ddMd/chemistry/Mask.cpp.
void DdMd::Mask::append | ( | int | id | ) |
Add an Atom to the masked set.
id | global index (tag) of atom to be added |
Definition at line 42 of file ddMd/chemistry/Mask.cpp.
References isMasked(), and UTIL_THROW.
Referenced by DdMd::ConfigIo::setAtomMasks().
|
inline |
True if the atom is in the masked set for the parent Atom.
id | integer id of atom to be tested |
Definition at line 93 of file ddMd/chemistry/Mask.h.
Referenced by append(), and DdMd::PairList::build().
|
inline |
Return value of atom index number i.
i | array index for desired atom index |
Definition at line 110 of file ddMd/chemistry/Mask.h.
|
inline |
Return the number of masked atoms.
Definition at line 104 of file ddMd/chemistry/Mask.h.