diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-10 15:12:11 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-10 15:12:11 (GMT) |
commit | 269784a07eb61262e2ba04c23553d7070b763756 (patch) | |
tree | 34d0c746e58cf9dc5f1d6b2fa0ca5cd3acee5f69 /include | |
parent | ff50434a9988298d239cca748987d8a9ece5b0ac (diff) |
Fixed bug in name comparisons.
Added function to get residue of atom.
Diffstat (limited to 'include')
-rw-r--r-- | include/tng_io.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index 3b19a32..67ac563 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -2042,6 +2042,18 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atom_w_id_add tng_atom_t *atom); /** + * @brief Get the residue of an atom. + * @param tng_data the trajectory containing the atom. + * @param atom the atom of which to get the name. + * @param residue is set to the residue of the atom. + * @pre \code atom != 0 \endcode The atom must not be NULL. + * @return TNG_SUCCESS (0) if successful. + */ +tng_function_status tng_atom_residue_get(tng_trajectory_t tng_data, + const tng_atom_t atom, + tng_residue_t *residue); + +/** * @brief Get the name of an atom. * @param tng_data the trajectory containing the atom. * @param atom the atom of which to get the name. |