Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Member Functions | Protected Types | Protected Attributes
ggl::chem::GS_MolCheck Class Reference

Molecule correction graph storage. More...

#include <GS_MolCheck.hh>

Inheritance diagram for ggl::chem::GS_MolCheck:
Inheritance graph
[legend]

Public Member Functions

virtual void add (const Molecule &graph)
 
virtual void addMolecule (const Molecule &mol)
 
 GS_MolCheck (GS_chem &gs, const AromaticityPerception &aromaticityPerception, const bool ignoreExceptions=true)
 
 GS_MolCheck (const GS_MolCheck &toCopy)
 
GS_MolCheckoperator= (const GS_MolCheck &toCopy)
 
virtual ~GS_MolCheck ()
 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

AromaticityPerceptionaromaticityPerception
 
bool ignoreExceptions
 whether or not exceptions are to be ignored or forwarded More...
 
GS_chemnextGS
 the graph storage to which checked molecules are forwarded to More...
 

Detailed Description

    A graph storage that checks each reported molecule graph to consistency
    and does needed corrections.

    Applied corrections are e.g.
     - aromaticity perception and relabeling

    The corrected molecule is than reported to the given successive graph
    storage.
Author
Martin Mann (c) 2011 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 30 of file GS_MolCheck.hh.

Member Typedef Documentation

typedef boost::filtered_graph< Molecule , edge_is_in_component , node_is_in_component > ggl::chem::GS_chem::ComponentGraph
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.

typedef std::vector<int> ggl::chem::GS_chem::ComponentIdVec
protectedinherited

the container type used to represent the connected component id for each node

Definition at line 32 of file GS_chem.hh.

typedef boost::property_map<Molecule, PropNodeIndex>::const_type ggl::chem::GS_chem::IndexMap
protectedinherited

Definition at line 35 of file GS_chem.hh.

Constructor & Destructor Documentation

ggl::chem::GS_MolCheck::GS_MolCheck ( GS_chem gs,
const AromaticityPerception aromaticityPerception,
const bool  ignoreExceptions = true 
)

Construction.

Parameters
gsthe graph storage to report the checked and relabeled molecules to
aromaticityPerceptionthe aromaticity perception instance to be used to perform the aromaticity relabeling;
ignoreExceptionsif true: exceptions raised during molecule check are ignored; otherwise the exception is forwarded
ggl::chem::GS_MolCheck::GS_MolCheck ( const GS_MolCheck toCopy)

Copy construction

Parameters
toCopythe instance to make this object a copy of
virtual ggl::chem::GS_MolCheck::~GS_MolCheck ( )
virtual

Member Function Documentation

virtual void ggl::chem::GS_chem::add ( const Molecule graph)
virtualinherited

The reported graphs is split into its individual independent components. Each component is forwarded to addMolecule to be implemented by any sub class.

Parameters
graphthe graph object to add that encodes one or more molecules

Implements ggl::Graph_Storage.

virtual void ggl::chem::GS_MolCheck::addMolecule ( const Molecule mol)
virtual

Checks a given molecule graph for inconsistent labeling and corrects it accordingly. The corrected molecule is than forwarded to the successive graph storage.

Note: errors during the aromaticity rewrites etc. will also result in the disposal of the molecule without further notification!

Parameters
molthe molecule graph object to check and add.
Exceptions
std::runtime_errorin case the molecule correction fails and ignoreExceptions is set to false; otherwise no exception is thrown

Implements ggl::chem::GS_chem.

GS_MolCheck& ggl::chem::GS_MolCheck::operator= ( const GS_MolCheck toCopy)

Assignment operator

Parameters
toCopythe instance to make this object a copy of
Returns
the altered object *this

Field Documentation

AromaticityPerception* ggl::chem::GS_MolCheck::aromaticityPerception
protected

aromaticity perception handler to relabel aromatic and non-aromatic rings

Definition at line 39 of file GS_MolCheck.hh.

bool ggl::chem::GS_MolCheck::ignoreExceptions
protected

Definition at line 42 of file GS_MolCheck.hh.

GS_chem* ggl::chem::GS_MolCheck::nextGS
protected

Definition at line 35 of file GS_MolCheck.hh.


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