12 #include <mcMd/chemistry/Atom.h> 43 const Atom& atom0()
const;
53 const Atom& atom1()
const;
73 bool isActive()
const;
80 void setIsActive(
bool isActive);
103 void setAtoms(
Atom &atom0,
Atom &atom1);
110 void setTypeId(
int typeId);
120 void setTag(
int tag);
150 if (&atom0 != &atom1) {
160 {
return *atom0Ptr_; }
166 {
return *atom0Ptr_; }
172 {
return *atom1Ptr_; }
178 {
return *atom1Ptr_; }
183 inline void Link::setTypeId(
int typeId)
196 {
return isActive_; }
207 inline void Link::setTag(
int tag)
219 inline void Link::clear()
A Link represents a crosslink between two Atoms.
A point particle within a Molecule.
Utility classes for scientific computation.
Manages all Link objects in a System.
int typeId() const
Get the typeId for this Link.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
int tag() const
Get a permanent integer identifier for this object.
const Atom & atom1() const
Get Atom1 connected to a Link.
const Atom & atom0() const
Get Atom0 connected to a Link.
bool isActive() const
Is this Link active?
void setIsActive(bool isActive)
Activate or deactivate the Link.