Files
rdkit/Code/GraphMol/FMCS/Target.h
2014-07-01 05:48:51 +02:00

46 lines
1.1 KiB
C++

//
// Copyright (C) 2014 Novartis Institutes for BioMedical Research
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#pragma once
#include <vector>
#include <stdexcept>
#include "../RDKitBase.h"
#include "Graph.h"
#include "MatchTable.h"
#include "DebugTrace.h" // algorithm filter definitions
namespace RDKit
{
namespace FMCS
{
#ifdef xxFAST_INCREMENTAL_MATCH //unused and works fast without it
struct AtomAdjacency
{
const Bond* Bond;
unsigned BondIdx;
unsigned ConnectedAtomIdx; // another end on the bond
};
typedef std::vector<AtomAdjacency> AtomAdjacencyList;
#endif // FAST_INCREMENTAL_MATCH
struct Target
{
const ROMol* Molecule;
Graph Topology;
#ifdef PRECOMPUTED_TABLES_MATCH
MatchTable AtomMatchTable;
MatchTable BondMatchTable;
#endif
#ifdef xxFAST_INCREMENTAL_MATCH
std::vector<AtomAdjacencyList> AtomAdjacency;
#endif
};
}
}