Gromacs
2024.4
|
#include <gromacs/selection/selvalue.h>
Describes a value of a selection expression or of a selection method parameter.
Which field in the union is used depends on the type
.
Public Attributes | |
e_selvalue_t | type |
Type of the value. More... | |
int | nr |
Number of values in the array pointed by the union. More... | |
union { | |
void * ptr | |
Generic pointer for operations that do not need type information. More... | |
int * i | |
Integer value(s) (type INT_VALUE). More... | |
real * r | |
Real value(s) (type REAL_VALUE). More... | |
char ** s | |
String value(s) (type STR_VALUE). More... | |
struct gmx_ana_pos_t * p | |
Structure for the position value(s) (type POS_VALUE). More... | |
struct gmx_ana_index_t * g | |
Group value (type GROUP_VALUE). More... | |
bool * b | |
Boolean value (only parameters of type NO_VALUE);. | |
} | u |
Pointer to the value. More... | |
int | nalloc |
Number of elements allocated for the value array. | |
struct gmx_ana_index_t* gmx_ana_selvalue_t::g |
Group value (type GROUP_VALUE).
int* gmx_ana_selvalue_t::i |
Integer value(s) (type INT_VALUE).
int gmx_ana_selvalue_t::nr |
Number of values in the array pointed by the union.
Note that for position and group values, it is the number of data structures in the array, not the number of positions or the number of atoms in the group.
struct gmx_ana_pos_t* gmx_ana_selvalue_t::p |
Structure for the position value(s) (type POS_VALUE).
void* gmx_ana_selvalue_t::ptr |
Generic pointer for operations that do not need type information.
Needs to be the first member to be able to use initialized arrays.
real* gmx_ana_selvalue_t::r |
Real value(s) (type REAL_VALUE).
char** gmx_ana_selvalue_t::s |
String value(s) (type STR_VALUE).
e_selvalue_t gmx_ana_selvalue_t::type |
Type of the value.
union { ... } gmx_ana_selvalue_t::u |
Pointer to the value.