|
Gromacs
2026.0-dev-20251110-920b6d1
|
#include <gromacs/selection/parsetree.h>
Describes a parsed method parameter.
Public Member Functions | |
| const std::string & | name () const |
| Returns the name of the parameter (may be empty). | |
| const SelectionLocation & | location () const |
| Returns the location of this parameter in the parsed selection text. | |
| const SelectionParserValueList & | values () const |
| Returns the values for the parameter. | |
Static Public Member Functions | |
|
static SelectionParserParameterListPointer | createList () |
| Allocates and initializes an empty parameter list. | |
| static SelectionParserParameter | create (const char *name, SelectionParserValueListPointer values, const SelectionLocation &location) |
| Allocates and initializes a parsed method parameter. More... | |
| static SelectionParserParameter | create (const std::string &name, SelectionParserValueListPointer values, const SelectionLocation &location) |
| Allocates and initializes a parsed method parameter. More... | |
| static SelectionParserParameter | create (const char *name, const SelectionParserValue &value, const SelectionLocation &location) |
| Allocates and initializes a parsed method parameter. More... | |
| static SelectionParserParameter | createFromExpression (const char *name, const SelectionTreeElementPointer &expr) |
| Allocates and initializes a parsed method parameter. More... | |
| static SelectionParserParameter | createFromExpression (const std::string &name, const SelectionTreeElementPointer &expr) |
| Allocates and initializes a parsed method parameter. More... | |
Public Attributes | |
| SelectionParserValueListPointer | values_ |
| Values for this parameter. | |
|
inlinestatic |
Allocates and initializes a parsed method parameter.
| [in] | name | Name for the new parameter (can be NULL). |
| [in] | values | List of values for the parameter. |
| [in] | location | Location of the parameter. |
| std::bad_alloc | if out of memory. |
|
inlinestatic |
Allocates and initializes a parsed method parameter.
| [in] | name | Name for the new parameter (can be NULL). |
| [in] | values | List of values for the parameter. |
| [in] | location | Location of the parameter. |
| std::bad_alloc | if out of memory. |
|
inlinestatic |
Allocates and initializes a parsed method parameter.
| [in] | name | Name for the new parameter (can be NULL). |
| [in] | value | Value for the parameter. |
| [in] | location | Location of the parameter. |
| std::bad_alloc | if out of memory. |
This overload is a convenience wrapper for the case when creating parameters outside the actual Bison parser and only a single value is necessary.
|
inlinestatic |
Allocates and initializes a parsed method parameter.
| [in] | name | Name for the new parameter (can be NULL). |
| [in] | expr | Expression value for the parameter. |
| std::bad_alloc | if out of memory. |
This overload is a convenience wrapper for the case when creating parameters outside the actual Bison parser and only a single expression value is necessary.
|
inlinestatic |
Allocates and initializes a parsed method parameter.
| [in] | name | Name for the new parameter (can be NULL). |
| [in] | expr | Expression value for the parameter. |
| std::bad_alloc | if out of memory. |
This overload is a convenience wrapper for the case when creating parameters outside the actual Bison parser and only a single expression value is necessary.
1.8.5