Chemical Data Processing Library C++ API - Version 1.2.0
MACCSFingerprintGenerator.hpp
Go to the documentation of this file.
1 /*
2  * MACCSFingerprintGenerator.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_DESCR_MACCSFINGERPRINTGENERATOR_HPP
30 #define CDPL_DESCR_MACCSFINGERPRINTGENERATOR_HPP
31 
32 #include <cstddef>
33 
34 #include "CDPL/Descr/APIPrefix.hpp"
37 #include "CDPL/Util/BitSet.hpp"
38 
39 
40 namespace CDPL
41 {
42 
43  namespace Descr
44  {
45 
52  {
53 
54  public:
55  static constexpr std::size_t NUM_BITS = 166;
56 
61 
63 
71 
77  void generate(const Chem::MolecularGraph& molgraph, Util::BitSet& fp);
78 
80  {
81  return *this;
82  }
83 
84  private:
85  Chem::SubstructureSearch subSearch;
86  Chem::AromaticSSSRSubset aromSSSRSubset;
87  };
88  } // namespace Descr
89 } // namespace CDPL
90 
91 #endif // CDPL_DESCR_MACCSFINGERPRINTGENERATOR_HPP
Definition of the class CDPL::Chem::AromaticSSSRSubset.
Definition of the type CDPL::Util::BitSet.
Definition of the preprocessor macro CDPL_DESCR_API.
#define CDPL_DESCR_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Chem::SubstructureSearch.
Implements the extraction of the aromatic rings in the SSSR of a molecular graph.
Definition: AromaticSSSRSubset.hpp:49
MolecularGraph.
Definition: MolecularGraph.hpp:52
SubstructureSearch.
Definition: SubstructureSearch.hpp:64
Generation of 166 bit MACCS key fingerprints.
Definition: MACCSFingerprintGenerator.hpp:52
MACCSFingerprintGenerator()
Constructs the MACCSFingerprintGenerator instance.
MACCSFingerprintGenerator & operator=(const MACCSFingerprintGenerator &gen)
Definition: MACCSFingerprintGenerator.hpp:79
MACCSFingerprintGenerator(const MACCSFingerprintGenerator &gen)
void generate(const Chem::MolecularGraph &molgraph, Util::BitSet &fp)
Generates the fingerprint of the molecular graph molgraph.
MACCSFingerprintGenerator(const Chem::MolecularGraph &molgraph, Util::BitSet &fp)
Constructs the MACCSFingerprintGenerator instance and generates the fingerprint of the molecular grap...
boost::dynamic_bitset BitSet
A dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.