Gromacs
2024.3
|
#include <gromacs/selection/indexutil.h>
Bundle index groups with their names.
Public Member Functions | |
IndexGroupsAndNames (gmx::ArrayRef< const IndexGroup > indexGroups) | |
Construct from list of index groups. More... | |
bool | containsGroupName (const std::string &groupName) const |
Return if a group name is contained in the groups. More... | |
std::vector< Index > | indices (const std::string &groupName) const |
Return the integer indices of a group. More... | |
gmx::IndexGroupsAndNames::IndexGroupsAndNames | ( | gmx::ArrayRef< const IndexGroup > | indexGroups | ) |
Construct from list of index groups.
[in] | indexGroups | The list of index groups |
bool gmx::IndexGroupsAndNames::containsGroupName | ( | const std::string & | groupName | ) | const |
Return if a group name is contained in the groups.
String comparison is case insensitive
[in] | groupName | the group name to be queried |
std::vector< Index > gmx::IndexGroupsAndNames::indices | ( | const std::string & | groupName | ) | const |
Return the integer indices of a group.
If two index groups share a name, return the one found first.
Indices may be empty.
[in] | groupName | the name of the group whose indices shall be returned |
if | groupName is not present as index group |