MoleculeComponent parser. More...
#include <MoleculeComponent_GML_grammar.hh>

Data Structures | |
| struct | definition |
| The definition of the GML grammar. More... | |
Public Member Functions | |
| MoleculeComponent_GML_grammar (MoleculeComponent &toFill) | |
Static Public Member Functions | |
| static std::pair < MoleculeComponent, int > | parseGML (const std::string &GML_string) throw (std::invalid_argument) |
Protected Types | |
| typedef std::map< int, size_t > | MapIntSizeT |
| type for mapping integers to size_t More... | |
Protected Attributes | |
| MoleculeComponent & | toFill |
Parses a GML string representation of a ggl::MoleculeDecomposition::MoleculeComponent object. This includes its properties as well as the additional constraints needed for matching. Example :
======= GRAPH IN GML =========================
molcomp [
description " '-Cl' (attached to a primary carbon with no other clorine atoms attached)"
priority 4
energy -11.7
node [ id 0 label "C" ]
node [ id 1 label "Cl" ]
edge [ source 0 target 1 label "-" ]
constrainAdj [
id 0
op =
count 1
nodeLabels [ label "Cl" ]
]
constrainAdj [
id 0
op =
count 2
nodeLabels [ label "H" ]
]
]
==============================================
Definition at line 94 of file MoleculeComponent_GML_grammar.hh.
|
protected |
Definition at line 109 of file MoleculeComponent_GML_grammar.hh.
|
explicit |
Constructs the definitions of a GML graph grammar to parse a GML graph string representation and to fill the encoded graph into a given boost graph object.
| toFill | the object to add nodes and edges to |
|
static |
Parses a GML string and generates a MoleculeComponent::PatternGraph object
| GML_string | the string to parse |
| std::invalid_argument | in case a check fails |
|
protected |
The boost core graph object that is filled to represent the next parsed Rule.
Definition at line 116 of file MoleculeComponent_GML_grammar.hh.