Add Selection::hasOnlyAtoms()
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 9 Aug 2014 04:19:56 +0000 (07:19 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sat, 9 Aug 2014 04:30:33 +0000 (07:30 +0300)
commit057653e28bffab498a0ea104e7d900d5f0f767b8
treeb3d4a87b74d0153fa763d041722b8f35483ce119
parent04a01befd82b3b9b2e51ce60845a3cd8b6bbd531
Add Selection::hasOnlyAtoms()

Add a convenience function for checking whether a selection consists of
atom positions only.  This will be useful for analysis tools that may
only support atom positions with some combination of options, leads
to clearer code than checking type() == INDEX_ATOM, and exposes less
internal implementation details.

Change-Id: Iaa2d0bfa2f567c060f6b006d423c2910ffd46a69
src/gromacs/selection/selection.h
src/gromacs/selection/selectioncollection.cpp