|
Gromacs
2027.0-dev-20261118-bc88ada
|
#include <gromacs/topology/include/gromacs/topology/mtop_lookup.h>
Class for quickly looking up properties of atoms based on global atom index
This class stores the index of the molecule block for the last lookup, which enables faster lookup for series of indices belonging to the same molecule block.
Classes | |
| struct | AtomAndResidueNameAndNumber |
| Struct for returning atom and residue name and index. More... | |
| struct | MolblockAtomIndex |
| Struct for returning the molecular topology indices of a global atom index. More... | |
Public Member Functions | |
| MTopLookUp (const gmx_mtop_t &mtop) | |
| Constructor. More... | |
| MolblockAtomIndex | getMolblockAtomIndex (const int globalAtomIndex) |
| Look up the molecule block and other indices of a global atom index. More... | |
| int | getMoleculeIndex (const int globalAtomIndex) |
| Returns the global molecule index of a global atom index. More... | |
| const t_atom & | getAtomParameters (const int globalAtomIndex) |
| Returns the atom data for an atom based on global atom index. More... | |
| AtomAndResidueNameAndNumber | getAtomAndResidueNameAndNumber (const int globalAtomIndex) |
| Look up the atom and residue name and residue number and index of a global atom index. More... | |
| int | getGlobalResidueIndex (const int globalAtomIndex) |
| Look up global residue index for a global atom index. More... | |
| const t_resinfo & | getResidueInfo (const int globalAtomIndex) |
| Returns residue information for an atom based on global atom index. More... | |
| const t_pdbinfo & | getAtomPdbInfo (const int globalAtomIndex) |
| Returns PDB information for an atom based on global atom index. More... | |
| const gmx_mtop_t & | mtop () const |
| Returns a reference to the molecular topology. | |
|
inline |
Constructor.
| [in] | mtop | A reference to the molecule topology |
|
inline |
Look up the atom and residue name and residue number and index of a global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms. Note that this function does a (somewhat expensive) lookup. If you want to look up data sequentially for all atoms in a molecule or the system, use one of the mtop loop functionalities.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Returns the atom data for an atom based on global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Returns PDB information for an atom based on global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Look up global residue index for a global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms. Note that this function does a (somewhat expensive) lookup. If you want to look up data sequentially for all atoms in a molecule or the system, use one of the mtop loop functionalities.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Look up the molecule block and other indices of a global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Returns the global molecule index of a global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms.
| [in] | globalAtomIndex | The global atom index to look up |
|
inline |
Returns residue information for an atom based on global atom index.
The atom index has to be in range: 0 <= globalAtomIndex < mtop->natoms.
| [in] | globalAtomIndex | The global atom index to look up |
1.8.5