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 #pragma once
11 #include <vector>
12 #include "FMCS.h"
13 #include "Graph.h"
14 #include "MatchTable.h"
15 
16 namespace RDKit {
17  namespace FMCS {
18  typedef std::vector<std::pair<FMCS::Graph::vertex_descriptor, FMCS::Graph::vertex_descriptor> > match_V_t;
19 
20  bool SubstructMatchCustomTable( const FMCS::Graph& target, const ROMol& target_mol
21  , const FMCS::Graph& query, const ROMol& querySrc // seed and full source query molecules
22  , const MatchTable& atomMatchTable, const MatchTable& bondMatchTable
23  , const MCSParameters* parameters=0 // for final checker (CHIRALITY)
24  , match_V_t* match=0);
25 
27  ( const FMCS::Graph& target, const ROMol& mol
28  , const FMCS::Graph& query, const ROMol& querySrc // seed and full source query molecules
29  , MCSAtomCompareFunction atomCompare, MCSBondCompareFunction bondCompare
30  , MCSFinalMatchCheckFunction finalCompare
31  , const MCSAtomCompareParameters& acp
32  , const MCSBondCompareParameters& bcp
33  , void* user_data
34  , match_V_t* match=0
35  );
36  }
37 }
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(* MCSAtomCompareFunction)(const MCSAtomCompareParameters &p, const ROMol &mol1, unsigned int atom1, const ROMol &mol2, unsigned int atom2, void *userData)
Definition: FMCS.h:37
ROMol is a molecule class that is intended to have a fixed topology.
Definition: ROMol.h:105
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)
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:35
Includes a bunch of functionality for handling Atom and Bond queries.
Definition: Atom.h:28
std::vector< std::pair< FMCS::Graph::vertex_descriptor, FMCS::Graph::vertex_descriptor > > match_V_t
bool(* MCSBondCompareFunction)(const MCSBondCompareParameters &p, const ROMol &mol1, unsigned int bond1, const ROMol &mol2, unsigned int bond2, void *userData)
Definition: FMCS.h:38