Simpatico
v1.10
|
An Molecule has a sequence of atoms, and belongs to an Species.
The Molecule class provides read-only access atoms within a molecule, but does not provide methods to modify its own state. Molecule relies on Species, a friend class, to control its state.
Definition at line 32 of file tools/chemistry/Molecule.h.
#include <Molecule.h>
Public Member Functions | |
Molecule () | |
Default constructor. More... | |
Species & | species () const |
Return parent Species by reference. More... | |
int | id () const |
Return id of this Molecule within its species. More... | |
Atom & | atom (int id) const |
Return Atom identified by index. More... | |
bool | isActive () const |
Is this molecule active? More... | |
Tools::Molecule::Molecule | ( | ) |
Default constructor.
Definition at line 15 of file tools/chemistry/Molecule.cpp.
|
inline |
Return parent Species by reference.
Definition at line 96 of file tools/chemistry/Molecule.h.
|
inline |
Return id of this Molecule within its species.
Definition at line 102 of file tools/chemistry/Molecule.h.
Referenced by Tools::Species::begin().
|
inline |
Return Atom identified by index.
id | atom index within the molecule |
Definition at line 105 of file tools/chemistry/Molecule.h.
|
inline |
Is this molecule active?
Definition at line 113 of file tools/chemistry/Molecule.h.