Simpatico
v1.10
|
Set of Atoms for which pair interactions with a target Atom are "masked".
An Mask stores identifiers for a set of Atoms for which the non-bonded pair interactions with a single target atom are suppressed, or "masked". Each Mask object is associated with one target Atom.
A Mask could, for example, contain all atoms that are directly connected to the target atom by 2-body covalent bonds.
Definition at line 28 of file mcMd/chemistry/Mask.h.
#include <Mask.h>
Public Member Functions | |
Mask () | |
Constructor. More... | |
void | clear () |
Clear the mask set (remove all atoms). More... | |
void | append (const Atom &atom) |
Add an Atom to the masked set. More... | |
bool | isMasked (const Atom &atom) const |
True if the atom is in the masked set for the target Atom. More... | |
int | size () const |
Return the number of masked atoms. More... | |
McMd::Mask::Mask | ( | ) |
Constructor.
Definition at line 19 of file mcMd/chemistry/Mask.cpp.
void McMd::Mask::clear | ( | ) |
Clear the mask set (remove all atoms).
Definition at line 30 of file mcMd/chemistry/Mask.cpp.
Referenced by McMd::CfbReptationMove::move(), and McMd::CfbReptateMove::move().
void McMd::Mask::append | ( | const Atom & | atom | ) |
Add an Atom to the masked set.
atom | Atom to be added to the masked set. |
Definition at line 41 of file mcMd/chemistry/Mask.cpp.
References isMasked(), and UTIL_THROW.
Referenced by McMd::CfbReptationMove::move(), McMd::CfbReptateMove::move(), and McMd::Simulation::save().
|
inline |
True if the atom is in the masked set for the target Atom.
atom | Atom object to be tested. |
Definition at line 84 of file mcMd/chemistry/Mask.h.
Referenced by append(), McMd::McPairPotentialImpl< Interaction >::atomEnergy(), McMd::PairList::build(), McMd::McPairPotentialImpl< Interaction >::computeEnergy(), McMd::McPairExternalPerturbation< PairInteraction, ExternalInteraction >::derivative(), McMd::McPairPerturbation< Interaction >::derivative(), McMd::Simulation::isValid(), McMd::McPairPotentialImpl< Interaction >::moleculeEnergy(), McMd::SliplinkerAll::move(), McMd::SliplinkMove::move(), McMd::Sliplinker::move(), McMd::SliplinkerEnd::move(), McMd::GcSliplinkMove::move(), McMd::Crosslinker::sample(), McMd::McMuExchange::sample(), and McMd::McPairEnergyAverage::sample().
|
inline |
Return the number of masked atoms.
Definition at line 96 of file mcMd/chemistry/Mask.h.