SMILES graph storage OpenBabel. More...
#include <GS_SMILES_OB.hh>
Public Member Functions | |
virtual void | add (const Molecule &graph) |
virtual void | addMolecule (const Molecule &graph) |
GS_SMILES_OB (STL_INSERTER insert) | |
virtual | ~GS_SMILES_OB () |
Destruction. More... | |
Protected Types | |
typedef boost::filtered_graph < Molecule, edge_is_in_component, node_is_in_component > | ComponentGraph |
typedef std::vector< int > | ComponentIdVec |
typedef boost::property_map < Molecule, PropNodeIndex > ::const_type | IndexMap |
the type of a constant index map of a Molecule boost graph More... | |
Protected Attributes | |
STL_INSERTER | insert |
the std::inserter where each SMILES string is reported to More... | |
A Graph_Storage implementation that converts each added Molecule graph into a SMILES string representation and adds it to the specified STL string container. Usage Examples :
* ////////////////////////////////////////////////////////////////////// * * std::set< std::string > SMILES_set; * typedef std::insert_iterator< SMILES_set > SMILES_set_inserter; * * SMILES_set smilesSet; * SMILES_set_inserter insertSet(smilesSet, smilesSet.end()); * * ggl::chem::GS_SMILES_OB< SMILES_set_inserter > gs_set(insertSet); * * ////////////////////////////////////////////////////////////////////// * * std::vector< std::string > SMILES_vector; * typedef std::back_insert_iterator< SMILES_vector > SMILES_vector_inserter; * * SMILES_vector smilesVec; * SMILES_vector_inserter insertVec(smilesVec); * * ggl::chem::GS_SMILES_OB< SMILES_vector_inserter > gs_vec(insertVec); * * ////////////////////////////////////////////////////////////////////// *
STL_INSERTER | an STL insert iterator (e.g. std::insert_iterator) to add all SMILES to store to |
Definition at line 60 of file GS_SMILES_OB.hh.
|
protectedinherited |
a component graph definition if more than one connected component present is present and it is needed to split the graph to report into its components
Definition at line 128 of file GS_chem.hh.
|
protectedinherited |
the container type used to represent the connected component id for each node
Definition at line 32 of file GS_chem.hh.
|
protectedinherited |
Definition at line 35 of file GS_chem.hh.
ggl::chem::GS_SMILES_OB< STL_INSERTER >::GS_SMILES_OB | ( | STL_INSERTER | insert | ) |
Construction
insert | the STL inserter to which each generated SMILES is assigned to |
|
virtual |
|
virtualinherited |
The reported graphs is split into its individual independent components. Each component is forwarded to addMolecule to be implemented by any sub class.
graph | the graph object to add that encodes one or more molecules |
Implements ggl::Graph_Storage.
|
virtual |
Adds the SMILES string representation of a given graph to a string container.
graph | the Graph object to add. |
Implements ggl::chem::GS_chem.
|
protected |
Definition at line 65 of file GS_SMILES_OB.hh.