OpenMD 3.2
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 95 of file SelectionCompiler.hpp.

Member Function Documentation

◆ compile()

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

Definition at line 57 of file SelectionCompiler.cpp.

◆ getAatokenCompiled()

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

Definition at line 103 of file SelectionCompiler.hpp.

◆ getErrorMessage()

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

Definition at line 107 of file SelectionCompiler.hpp.

◆ getLineIndices()

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

Definition at line 101 of file SelectionCompiler.hpp.

◆ getLineNumbers()

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

Definition at line 99 of file SelectionCompiler.hpp.


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