RDKit
Open-source cheminformatics and machine learning.
SubstructMatchCustom.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2014 Novartis Institutes for BioMedical Research
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 #pragma once
12 #include <vector>
13 #include "FMCS.h"
14 #include "Graph.h"
15 #include "MatchTable.h"
16 
17 namespace RDKit {
18 namespace FMCS {
19 typedef std::vector<std::pair<FMCS::Graph::vertex_descriptor,
20  FMCS::Graph::vertex_descriptor> > match_V_t;
21 const unsigned int NotSet = (unsigned int)-1;
22 
24  const FMCS::Graph& target, const ROMol& target_mol,
25  const FMCS::Graph& query,
26  const ROMol& querySrc // seed and full source query molecules
27  ,
28  const MatchTable& atomMatchTable, const MatchTable& bondMatchTable,
29  const MCSParameters* parameters = 0 // for final checker (CHIRALITY)
30  ,
31  match_V_t* match = 0);
32 
34  const FMCS::Graph& target, const ROMol& mol, const FMCS::Graph& query,
35  const ROMol& querySrc // seed and full source query molecules
36  ,
37  MCSAtomCompareFunction atomCompare, MCSBondCompareFunction bondCompare,
38  MCSFinalMatchCheckFunction finalCompare,
40  void* user_data, match_V_t* match = 0);
41 }
42 }
bool(* MCSAtomCompareFunction)(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
Definition: FMCS.h:51
#define RDKIT_FMCS_EXPORT
Definition: export.h:190
RDKIT_FMCS_EXPORT bool SubstructMatchCustom(const FMCS::Graph &target, const ROMol &mol, const FMCS::Graph &query, const ROMol &querySrc, MCSAtomCompareFunction atomCompare, MCSBondCompareFunction bondCompare, MCSFinalMatchCheckFunction finalCompare, const MCSAtomCompareParameters &acp, const MCSBondCompareParameters &bcp, void *user_data, match_V_t *match=0)
bool(* MCSFinalMatchCheckFunction)(const short unsigned c1[], const short unsigned c2[], const ROMol &mol1, const FMCS::Graph &query, const ROMol &mol2, const FMCS::Graph &target, const MCSParameters *p)
Definition: FMCS.h:47
Std stuff.
Definition: Atom.h:30
RDKIT_FMCS_EXPORT bool SubstructMatchCustomTable(const FMCS::Graph &target, const ROMol &target_mol, const FMCS::Graph &query, const ROMol &querySrc, const MatchTable &atomMatchTable, const MatchTable &bondMatchTable, const MCSParameters *parameters=0, match_V_t *match=0)
std::vector< std::pair< FMCS::Graph::vertex_descriptor, FMCS::Graph::vertex_descriptor > > match_V_t
const unsigned int NotSet
bool(* MCSBondCompareFunction)(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
Definition: FMCS.h:55