Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Attributes

Description

Data structure for the same selection method.

To avoid duplicate initialization code, the same data structure is used for matching both integer and string keywords; hence the unions.

Public Attributes

union {
   int *   i
 
   char **   s
 
   void *   ptr
 
val
 Value for each atom to match. More...
 
int nas
 Number of values in the as array. More...
 
union {
   int *   i
 
   char **   s
 
   void *   ptr
 
as
 Values to match against. More...
 
char ** as_s_sorted
 Separate array for sorted as.s array. More...
 
bool bSorted
 Whether simple matching can be used. More...
 

Member Data Documentation

union { ... } t_methoddata_same::as

Values to match against.

char** t_methoddata_same::as_s_sorted

Separate array for sorted as.s array.

The array of strings returned as the output value of a parameter should not be messed with to avoid memory corruption (the pointers in the array may be reused for several evaluations), so we keep our own copy for modifications.

bool t_methoddata_same::bSorted

Whether simple matching can be used.

int t_methoddata_same::nas

Number of values in the as array.

For string values, this is actually the number of values in the as_s_sorted array.

union { ... } t_methoddata_same::val

Value for each atom to match.


The documentation for this struct was generated from the following file: