RDKit
Open-source cheminformatics and machine learning.
SmartsWrite.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2020 Greg Landrum and Rational Discovery LLC
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10 #include <RDGeneral/export.h>
11 #ifndef RD_SMARTSWRITE_H_012020
12 #define RD_SMARTSWRITE_H_012020
13 
14 #include <string>
15 #include <vector>
16 
17 namespace RDKit {
18 class QueryAtom;
19 class QueryBond;
20 namespace SmartsWrite {
21 //! returns the SMARTS for a QueryAtom
23 //! returns the SMARTS for a QueryBond
25  int atomToLeftIdx = -1);
26 } // namespace SmartsWrite
27 
28 class ROMol;
29 //! returns the SMARTS for a molecule
31  bool doIsomericSmarts = true);
32 
34  const ROMol &mol, const std::vector<int> &atomsToUse,
35  const std::vector<int> *bondsToUse = nullptr, bool doIsomericSmarts = true);
36 }; // namespace RDKit
37 
38 #endif
Class for storing atomic queries.
Definition: QueryAtom.h:27
Class for storing Bond queries.
Definition: QueryBond.h:28
#define RDKIT_SMILESPARSE_EXPORT
Definition: export.h:710
RDKIT_SMILESPARSE_EXPORT std::string GetBondSmarts(const QueryBond *qbond, int atomToLeftIdx=-1)
returns the SMARTS for a QueryBond
RDKIT_SMILESPARSE_EXPORT std::string GetAtomSmarts(const QueryAtom *qatom)
returns the SMARTS for a QueryAtom
Std stuff.
Definition: Abbreviations.h:17
RDKIT_SMILESPARSE_EXPORT std::string MolToSmarts(const ROMol &mol, bool doIsomericSmarts=true)
returns the SMARTS for a molecule
RDKIT_SMILESPARSE_EXPORT std::string MolFragmentToSmarts(const ROMol &mol, const std::vector< int > &atomsToUse, const std::vector< int > *bondsToUse=nullptr, bool doIsomericSmarts=true)