Replace t_grps with std::vector
[alexxy/gromacs.git] / src / gromacs / topology / atoms.h
index 09ac28df056427488ac7d336cb174a156d749911..f9594b6aae422bb5ad8a5b8d8065c78b7a0758b6 100644 (file)
@@ -39,6 +39,8 @@
 
 #include <stdio.h>
 
+#include <vector>
+
 #include "gromacs/utility/basedefinitions.h"
 #include "gromacs/utility/real.h"
 #include "gromacs/utility/unique_cptr.h"
@@ -96,11 +98,8 @@ typedef struct t_pdbinfo
     int      uij[6];            /* Anisotropic B-factor                 */
 } t_pdbinfo;
 
-typedef struct t_grps
-{
-    int   nr;                   /* Number of different groups           */
-    int  *nm_ind;               /* Index in the group names             */
-} t_grps;
+//! Contains indices into group names for different groups.
+using AtomGroupIndices = std::vector<int>;
 
 typedef struct t_atoms
 {