|
Gromacs
2025.3
|
#include "gmxpre.h"#include <string>#include "gromacs/math/vec.h"#include "gromacs/selection/indexutil.h"#include "gromacs/selection/position.h"#include "gromacs/selection/selparam.h"#include "gromacs/selection/selvalue.h"#include "gromacs/topology/block.h"#include "gromacs/utility/arraysize.h"#include "gromacs/utility/exceptions.h"#include "gromacs/utility/smalloc.h"#include "gromacs/utility/stringutil.h"#include "selmethod.h"#include "selmethod_impl.h"
Include dependency graph for sm_permute.cpp:Implements the permute selection modifier.
Classes | |
| struct | methoddata_permute |
Data structure for the permute selection modifier. More... | |
Typedefs | |
| typedef struct methoddata_permute | t_methoddata_permute |
Data structure for the permute selection modifier. More... | |
Functions | |
| static void * | init_data_permute (int npar, gmx_ana_selparam_t *param) |
Allocates data for the permute selection modifier. More... | |
| static void | init_permute (const gmx_mtop_t *top, int npar, gmx_ana_selparam_t *param, void *data) |
Initializes data for the permute selection modifier. More... | |
| static void | init_output_permute (const gmx_mtop_t *top, gmx_ana_selvalue_t *out, void *data) |
Initializes output for the permute selection modifier. More... | |
| static void | free_data_permute (void *data) |
Frees the memory allocated for the permute selection modifier. More... | |
| static void | evaluate_permute (const gmx::SelMethodEvalContext &context, gmx_ana_pos_t *p, gmx_ana_selvalue_t *out, void *data) |
Evaluates the permute selection modifier. More... | |
Variables | |
| static gmx_ana_selparam_t | smparams_permute [] |
Parameters for the permute selection modifier. More... | |
| static const char *const | help_permute [] |
Help text for the permute selection modifier. More... | |
| gmx_ana_selmethod_t | sm_permute |
Selection method data for the permute modifier. More... | |
| typedef struct methoddata_permute t_methoddata_permute |
Data structure for the permute selection modifier.
|
static |
Evaluates the permute selection modifier.
| [in] | context | Not used. |
| [in] | p | Positions to permute (should point to data->p). |
| [out] | out | Output data structure (out->u.p is used). |
| [in] | data | Should point to a t_methoddata_permute. |
Throws if the size of p is not divisible by the number of elements in the permutation.
|
static |
Frees the memory allocated for the permute selection modifier.
| data | Data to free (should point to a t_methoddata_permute). |
Frees the memory allocated for t_methoddata_permute.
|
static |
Allocates data for the permute selection modifier.
| [in] | npar | Not used (should be 2). |
| [in,out] | param | Method parameters (should point to a copy of smparams_permute). |
t_methoddata_permute).Allocates memory for a t_methoddata_permute structure.
|
static |
Initializes output for the permute selection modifier.
| [in] | top | Topology data structure. |
| [in,out] | out | Pointer to output data structure. |
| [in,out] | data | Should point to t_methoddata_permute. |
|
static |
Initializes data for the permute selection modifier.
| [in] | top | Not used. |
| [in] | npar | Not used (should be 2). |
| [in] | param | Method parameters (should point to smparams_permute). |
| [in] | data | Should point to a t_methoddata_permute. |
|
static |
Help text for the permute selection modifier.
| gmx_ana_selmethod_t sm_permute |
Selection method data for the permute modifier.
|
static |
Parameters for the permute selection modifier.
1.8.5