OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::SelectionCompiler Class Reference

"selection/SelectionCompiler.hpp" More...

#include <SelectionCompiler.hpp>

Public Member Functions

bool compile (const std::string &filename, const std::string &script)
 
std::vector< int > getLineNumbers ()
 
std::vector< int > getLineIndices ()
 
std::vector< std::vector< Token > > getAatokenCompiled ()
 
std::string getErrorMessage ()
 

Detailed Description

"selection/SelectionCompiler.hpp"

compile a selection script to tokens

Todo
document

expression       :: = clauseOr

clauseOr         ::= clauseAnd {OR clauseAnd}*

clauseAnd        ::= clauseNot {AND clauseNot}*

clauseNot        ::= NOT clauseNot | clausePrimitive

clausePrimitive  ::= clauseComparator |
clauseWithin |
clauseAlphaHull |
clauseName |
none | all |
( clauseOr )

clauseComparator ::= atomproperty comparatorop integer

clauseWithin     ::= WITHIN ( clauseDistance , expression )

clauseDistance   ::= integer | decimal

clauseName::= *|string{.string{.string}}


  

Definition at line 92 of file SelectionCompiler.hpp.

Member Function Documentation

◆ compile()

bool OpenMD::SelectionCompiler::compile ( const std::string & filename,
const std::string & script )

Definition at line 54 of file SelectionCompiler.cpp.

◆ getAatokenCompiled()

std::vector< std::vector< Token > > OpenMD::SelectionCompiler::getAatokenCompiled ( )
inline

Definition at line 100 of file SelectionCompiler.hpp.

◆ getErrorMessage()

std::string OpenMD::SelectionCompiler::getErrorMessage ( )
inline

Definition at line 104 of file SelectionCompiler.hpp.

◆ getLineIndices()

std::vector< int > OpenMD::SelectionCompiler::getLineIndices ( )
inline

Definition at line 98 of file SelectionCompiler.hpp.

◆ getLineNumbers()

std::vector< int > OpenMD::SelectionCompiler::getLineNumbers ( )
inline

Definition at line 96 of file SelectionCompiler.hpp.


The documentation for this class was generated from the following files: