Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Member Functions | Public Attributes
gmx::SelectionLocation Struct Reference

#include <gromacs/selection/selelem.h>

Description

Stores the location of a selection element in the selection text.

The location is stored as a range in the pretty-printed selection text (where whitespace has been sanitized), and can be used to extract that text for error messages and other diagnostic purposes. During parsing, the extraction is done with _gmx_sel_lexer_get_text().

This needs to be a plain C struct for Bison to properly deal with it.

Static Public Member Functions

static SelectionLocation createEmpty ()
 Returns an empty location.
 

Public Attributes

int startIndex
 Start index of the string where this element has been parsed from.
 
int endIndex
 End index of the string where this element has been parsed from.
 

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