/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2011,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2013,2014,2019, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
*
* This flag is set automatically, and should not be set by the user.
*/
-#define SPAR_SET 1
+#define SPAR_SET 1
/*! \brief
* If not set, an error is reported if the parameter is not specified by the
* user.
* The flag is cleared before sel_initfunc() if the value provided is actually
* static.
*/
-#define SPAR_DYNAMIC 4
+#define SPAR_DYNAMIC 4
/*! \brief
* If set, the parameter value is parsed into sorted ranges.
*
* ranges. \p gmx_ana_selparam_t::nval should be 1 or \ref SPAR_VARNUM should be
* specified; other values would lead to unpredictable behavior.
*/
-#define SPAR_RANGES 8
+#define SPAR_RANGES 8
/*! \brief
* If set, the parameter can have any number of values.
*
*
* Cannot be combined with \ref GROUP_VALUE parameters.
*/
-#define SPAR_VARNUM 16
+#define SPAR_VARNUM 16
/*! \brief
* If set, the parameter can have a separate value for each atom.
*
*
* Cannot be combined with \ref POS_VALUE or \ref GROUP_VALUE parameters.
*/
-#define SPAR_ATOMVAL 32
+#define SPAR_ATOMVAL 32
/*! \brief
* If set, the parameter takes one of a set of predefined strings.
*
* array for multiple instances of the same method is automatically taken care
* of.
*/
-#define SPAR_ENUMVAL 128
+#define SPAR_ENUMVAL 128
/*@}*/
/*! \internal \brief
typedef struct gmx_ana_selparam_t
{
/** Name of the parameter. */
- const char *name;
+ const char* name;
/*! \brief
* The parameter value.
*
* makes a copy of the parameter structure for each instance of the
* method, and the original parameter array is not changed.
*/
- gmx_ana_selvalue_t val;
+ gmx_ana_selvalue_t val;
/*! \brief
* Pointer to store the number of values.
*
* Should be initialized to NULL in the definition a \c gmx_ana_selmethod_t
* and initialized in sel_datafunc().
*/
- int *nvalptr;
+ int* nvalptr;
/*! \brief
* Flags that alter the way the parameter is parsed/handled.
*
* See \ref selparam_flags for allowed values.
*/
- int flags;
+ int flags;
} gmx_ana_selparam_t;
/** Finds a parameter from an array by name. */
-gmx_ana_selparam_t *
-gmx_ana_selparam_find(const char *name, int nparam, gmx_ana_selparam_t *param);
+gmx_ana_selparam_t* gmx_ana_selparam_find(const char* name, int nparam, gmx_ana_selparam_t* param);
#endif