Chemical Data Processing Library C++ API - Version 1.3.0
MMFF94BondTyper.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94BondTyper.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_FORCEFIELD_MMFF94BONDTYPER_HPP
30 #define CDPL_FORCEFIELD_MMFF94BONDTYPER_HPP
31 
35 #include "CDPL/Util/Array.hpp"
36 
37 
38 namespace CDPL
39 {
40 
41  namespace Chem
42  {
43 
44  class MolecularGraph;
45  }
46 
47  namespace ForceField
48  {
49 
51  {
52 
53  public:
55 
56  MMFF94BondTyper(const Chem::MolecularGraph& molgraph, Util::UIArray& types, bool strict);
57 
59 
61 
63 
78  void perceiveTypes(const Chem::MolecularGraph& molgraph, Util::UIArray& types, bool strict);
79 
80  private:
82 
84  MMFF94RingSetFunction aromRingSetFunc;
85  MMFF94NumericAtomTypeFunction atomTypeFunc;
86  };
87  } // namespace ForceField
88 } // namespace CDPL
89 
90 #endif // CDPL_FORCEFIELD_MMFF94BONDTYPER_HPP
Definition of class CDPL::Util::Array.
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of class CDPL::ForceField::MMFF94AtomTypePropertyTable.
Type declaration of generic wrapper classes for storing user-defined functions for the retrieval of M...
MolecularGraph.
Definition: MolecularGraph.hpp:52
Definition: MMFF94AtomTypePropertyTable.hpp:62
std::shared_ptr< MMFF94AtomTypePropertyTable > SharedPointer
Definition: MMFF94AtomTypePropertyTable.hpp:59
Definition: MMFF94BondTyper.hpp:51
void setAromaticRingSetFunction(const MMFF94RingSetFunction &func)
MMFF94BondTyper(const Chem::MolecularGraph &molgraph, Util::UIArray &types, bool strict)
void setAtomTypePropertyTable(const MMFF94AtomTypePropertyTable::SharedPointer &table)
void setAtomTypeFunction(const MMFF94NumericAtomTypeFunction &func)
void perceiveTypes(const Chem::MolecularGraph &molgraph, Util::UIArray &types, bool strict)
Determines MMFF94 bond type indicies for the bonds of a molecular graph.
std::function< unsigned int(const Chem::Atom &)> MMFF94NumericAtomTypeFunction
A generic wrapper class used to store a user-defined numeric MMFF94 atom type function.
Definition: MMFF94PropertyFunctions.hpp:56
std::function< const Chem::FragmentList::SharedPointer &(const Chem::MolecularGraph &)> MMFF94RingSetFunction
A generic wrapper class used to store a user-defined MMFF94 ring set function.
Definition: MMFF94PropertyFunctions.hpp:76
Array< unsigned int > UIArray
An array of unsigned integers.
Definition: Array.hpp:562
The namespace of the Chemical Data Processing Library.