Gromacs
2026.0-dev-20241106-9ba7f4d
|
#include <gromacs/selection/symrec.h>
Single symbol for the selection parser.
Public methods in this class do not throw.
Classes | |
class | Impl |
Private implementation class for SelectionParserSymbol. More... | |
Public Types | |
enum | SymbolType { ReservedSymbol, VariableSymbol, MethodSymbol, PositionSymbol } |
Defines the type of the symbol. More... | |
Public Member Functions | |
const std::string & | name () const |
Returns the name of the symbol. | |
SymbolType | type () const |
Returns the type of the symbol. | |
gmx_ana_selmethod_t * | methodValue () const |
Returns the method associated with a MethodSymbol symbol. More... | |
const SelectionTreeElementPointer & | variableValue () const |
Returns the selection tree associated with a VariableSymbol symbol. More... | |
Friends | |
class | SelectionParserSymbolTable |
Needed to call the constructor and for other initialization. | |
gmx_ana_selmethod_t * gmx::SelectionParserSymbol::methodValue | ( | ) | const |
Returns the method associated with a MethodSymbol symbol.
Must only be called if type() returns MethodSymbol.
const gmx::SelectionTreeElementPointer & gmx::SelectionParserSymbol::variableValue | ( | ) | const |
Returns the selection tree associated with a VariableSymbol symbol.
Must only be called if type() returns VariableSymbol.