RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
SmartsWrite.h
Go to the documentation of this file.
1//
2// Copyright (C) 2004-2021 Greg Landrum and other RDKit contributors
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
17namespace RDKit {
18class Atom;
19class Bond;
20namespace SmartsWrite {
21//! returns the SMARTS for an Atom
23//! returns the SMARTS for a Bond
25 int atomToLeftIdx = -1);
26} // namespace SmartsWrite
27
28class ROMol;
29//! returns the SMARTS for a molecule
31 bool doIsomericSmarts = true,
32 int rootedAtAtom = -1);
33
35 const ROMol &mol, const std::vector<int> &atomsToUse,
36 const std::vector<int> *bondsToUse = nullptr, bool doIsomericSmarts = true);
37
38//! returns the CXSMARTS for a molecule
40 const ROMol &mol, bool doIsomericSmarts = true);
41
43 const ROMol &mol, const std::vector<int> &atomsToUse,
44 const std::vector<int> *bondsToUse = nullptr, bool doIsomericSmarts = true);
45}; // namespace RDKit
46
47#endif
The class for representing atoms.
Definition Atom.h:75
class for representing a bond
Definition Bond.h:47
#define RDKIT_SMILESPARSE_EXPORT
Definition export.h:481
RDKIT_SMILESPARSE_EXPORT std::string GetAtomSmarts(const Atom *qatom)
returns the SMARTS for an Atom
RDKIT_SMILESPARSE_EXPORT std::string GetBondSmarts(const Bond *qbond, int atomToLeftIdx=-1)
returns the SMARTS for a Bond
Std stuff.
bool rdvalue_is(const RDValue_cast_t)
RDKIT_SMILESPARSE_EXPORT std::string MolFragmentToCXSmarts(const ROMol &mol, const std::vector< int > &atomsToUse, const std::vector< int > *bondsToUse=nullptr, bool doIsomericSmarts=true)
RDKIT_SMILESPARSE_EXPORT std::string MolToCXSmarts(const ROMol &mol, bool doIsomericSmarts=true)
returns the CXSMARTS 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)
RDKIT_SMILESPARSE_EXPORT std::string MolToSmarts(const ROMol &mol, bool doIsomericSmarts=true, int rootedAtAtom=-1)
returns the SMARTS for a molecule