Refactor t_params to InteractionTypeParameters
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / gpp_nextnb.h
index 569c079e8e96b4b58d4c150c1505e404a2c14099..1e6f8a420aeb37621679b0692a1d8f7bc6916480 100644 (file)
 #ifndef GMX_GMXPREPROCESS_GPP_NEXTNB_H
 #define GMX_GMXPREPROCESS_GPP_NEXTNB_H
 
+#include "gromacs/utility/arrayref.h"
+
 struct t_blocka;
-struct t_params;
+struct InteractionTypeParameters;
 
 struct t_nextnb
 {
@@ -66,7 +68,7 @@ void print_nnb(t_nextnb *nnb, char *s);
 #define print_nnb(nnb, s)
 #endif
 
-void gen_nnb(t_nextnb *nnb, t_params plist[]);
+void gen_nnb(t_nextnb *nnb, gmx::ArrayRef<InteractionTypeParameters> plist);
 /* Generate a t_nextnb structure from bond information.
  * With the structure you can either generate exclusions
  * or generate angles and dihedrals. The structure must be
@@ -74,7 +76,7 @@ void gen_nnb(t_nextnb *nnb, t_params plist[]);
  */
 
 void generate_excl (int nrexcl, int nratoms,
-                    t_params plist[], t_nextnb *nnb, t_blocka *excl);
+                    gmx::ArrayRef<InteractionTypeParameters> plist, t_nextnb *nnb, t_blocka *excl);
 /* Generate an exclusion block from bonds and constraints in
  * plist.
  */