rdkit-headers 2022.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rdkit_headers/__init__.py +13 -0
- rdkit_headers/include/rdkit/CIPLabeler/CIPLabeler.h +59 -0
- rdkit_headers/include/rdkit/CIPLabeler/TooManyNodesException.h +28 -0
- rdkit_headers/include/rdkit/Catalogs/Catalog.h +461 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogEntry.h +48 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogParams.h +42 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/ChemicalFeature.h +38 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/FreeChemicalFeature.h +97 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricFuncs.h +54 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricMatrixCalc.h +106 -0
- rdkit_headers/include/rdkit/DataStructs/BitOps.h +337 -0
- rdkit_headers/include/rdkit/DataStructs/BitVect.h +68 -0
- rdkit_headers/include/rdkit/DataStructs/BitVectUtils.h +35 -0
- rdkit_headers/include/rdkit/DataStructs/BitVects.h +25 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsException.h +31 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsStreamOps.h +72 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteDistMat.h +30 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteValueVect.h +146 -0
- rdkit_headers/include/rdkit/DataStructs/ExplicitBitVect.h +96 -0
- rdkit_headers/include/rdkit/DataStructs/FPBReader.h +281 -0
- rdkit_headers/include/rdkit/DataStructs/MultiFPBReader.h +213 -0
- rdkit_headers/include/rdkit/DataStructs/SparseBitVect.h +101 -0
- rdkit_headers/include/rdkit/DataStructs/SparseIntVect.h +571 -0
- rdkit_headers/include/rdkit/DataStructs/base64.h +41 -0
- rdkit_headers/include/rdkit/DistGeom/BoundsMatrix.h +121 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralSet.h +58 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralViolationContrib.h +96 -0
- rdkit_headers/include/rdkit/DistGeom/DistGeomUtils.h +195 -0
- rdkit_headers/include/rdkit/DistGeom/DistViolationContrib.h +54 -0
- rdkit_headers/include/rdkit/DistGeom/FourthDimContrib.h +65 -0
- rdkit_headers/include/rdkit/DistGeom/TriangleSmooth.h +36 -0
- rdkit_headers/include/rdkit/Features/Feature.h +96 -0
- rdkit_headers/include/rdkit/ForceField/Contrib.h +40 -0
- rdkit_headers/include/rdkit/ForceField/ForceField.h +253 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleBend.h +78 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/BondStretch.h +67 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Contribs.h +26 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/DistanceConstraint.h +61 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Nonbonded.h +105 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/OopBend.h +65 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Params.h +1134 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/StretchBend.h +70 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionAngle.h +79 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleBend.h +92 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/UFF/BondStretch.h +83 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Contribs.h +23 -0
- rdkit_headers/include/rdkit/ForceField/UFF/DistanceConstraint.h +62 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Inversion.h +81 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Nonbonded.h +87 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Params.h +153 -0
- rdkit_headers/include/rdkit/ForceField/UFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionAngle.h +115 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/Geometry/Grid3D.h +55 -0
- rdkit_headers/include/rdkit/Geometry/GridUtils.h +64 -0
- rdkit_headers/include/rdkit/Geometry/Transform.h +19 -0
- rdkit_headers/include/rdkit/Geometry/Transform2D.h +85 -0
- rdkit_headers/include/rdkit/Geometry/Transform3D.h +101 -0
- rdkit_headers/include/rdkit/Geometry/UniformGrid3D.h +217 -0
- rdkit_headers/include/rdkit/Geometry/Utils.h +97 -0
- rdkit_headers/include/rdkit/Geometry/point.h +585 -0
- rdkit_headers/include/rdkit/GraphMol/Abbreviations/Abbreviations.h +132 -0
- rdkit_headers/include/rdkit/GraphMol/Atom.h +449 -0
- rdkit_headers/include/rdkit/GraphMol/AtomIterators.h +212 -0
- rdkit_headers/include/rdkit/GraphMol/Bond.h +393 -0
- rdkit_headers/include/rdkit/GraphMol/BondIterators.h +75 -0
- rdkit_headers/include/rdkit/GraphMol/Canon.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/CartesianProduct.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/Enumerate.h +187 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateBase.h +200 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateTypes.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationPickler.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationStrategyBase.h +227 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSample.h +163 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSampleAllBBs.h +184 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/PreprocessRxn.h +64 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Reaction.h +491 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionFingerprints.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionParser.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionPickler.h +119 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionRunner.h +116 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionUtils.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/SanitizeRxn.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/ChemTransforms.h +270 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/MolFragmenter.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Chirality.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Conformer.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/CoordGen.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/DepictUtils.h +366 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/EmbeddedFrag.h +544 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/RDDepictor.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/Deprotect/Deprotect.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR2D.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR3D.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AtomFeat.h +39 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/BCUT.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/ConnectivityDescriptors.h +211 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/CoulombMat.h +42 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Crippen.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Data3Ddescriptors.h +55 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/EEM.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/GETAWAY.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Lipinski.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MORSE.h +50 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MQN.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolData3Ddescriptors.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors3D.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolSurf.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PBF.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PMI.h +128 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Property.h +123 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RDF.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RegisterDescriptor.h +84 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/USRDescriptor.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/WHIM.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h +77 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/Embedder.h +437 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/FMCS.h +194 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/Graph.h +43 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParserUtils.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParsers.h +399 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/GeneralFileReader.h +170 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolFileStereochem.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolSupplier.h +444 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolWriters.h +338 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedMolSupplier.h +102 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSDMolSupplier.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSmilesMolSupplier.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/PNGParser.h +203 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceParsers.h +117 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceWriters.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalog.h +260 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalogEntry.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatcherBase.h +152 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatchers.h +576 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FunctionalGroupHierarchy.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairGenerator.h +188 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairs.h +268 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintGenerator.h +372 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintUtil.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/Fingerprints.h +167 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MACCS.h +32 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MHFP.h +285 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganFingerprints.h +210 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganGenerator.h +251 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/RDKitFPGenerator.h +162 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/TopologicalTorsionGenerator.h +127 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionAngleM6.h +72 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionPreferences.h +41 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/FFConvenience.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/AtomTyper.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/Builder.h +141 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/MMFF.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/AtomTyper.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/Builder.h +129 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/UFF.h +82 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatGenerator.h +33 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatParams.h +94 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogEntry.h +136 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogUtils.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragFPGenerator.h +38 -0
- rdkit_headers/include/rdkit/GraphMol/GenericGroups/GenericGroups.h +301 -0
- rdkit_headers/include/rdkit/GraphMol/GraphMol.h +22 -0
- rdkit_headers/include/rdkit/GraphMol/MMPA/MMPA.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/AlignMolecules.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/O3AAlignMolecules.h +354 -0
- rdkit_headers/include/rdkit/GraphMol/MolBundle.h +121 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalog.h +20 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogEntry.h +109 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogParams.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/FeatureParser.h +58 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeature.h +98 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureDef.h +68 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureFactory.h +78 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2D.h +539 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DHelpers.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DJS.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DSVG.h +88 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DUtils.h +179 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2Dwx.h +107 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/LinkNode.h +159 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/MolEnumerator.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/MolHash.h +12 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/nmmolhash.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/MolInterchange.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/details.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/MolOps.h +1016 -0
- rdkit_headers/include/rdkit/GraphMol/MolPickler.h +314 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogEntry.h +56 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogParams.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Charge.h +145 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Fragment.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogEntry.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogParams.h +63 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogUtils.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Metal.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/MolStandardize.h +178 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Normalize.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Tautomer.h +428 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogEntry.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogParams.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogUtils.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogEntry.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogParams.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Validate.h +199 -0
- rdkit_headers/include/rdkit/GraphMol/MolTransforms/MolTransforms.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/MonomerInfo.h +138 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerCharges.h +27 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerParams.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/PeriodicTable.h +325 -0
- rdkit_headers/include/rdkit/GraphMol/QueryAtom.h +161 -0
- rdkit_headers/include/rdkit/GraphMol/QueryBond.h +146 -0
- rdkit_headers/include/rdkit/GraphMol/QueryOps.h +1110 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitBase.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitQueries.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/RGroupDecomposition/RGroupDecomp.h +225 -0
- rdkit_headers/include/rdkit/GraphMol/ROMol.h +844 -0
- rdkit_headers/include/rdkit/GraphMol/RWMol.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/ReducedGraphs/ReducedGraphs.h +85 -0
- rdkit_headers/include/rdkit/GraphMol/Resonance.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/RingInfo.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/Rings.h +90 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNAttribs.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParse.h +70 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParseOps.h +328 -0
- rdkit_headers/include/rdkit/GraphMol/SanitException.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/ScaffoldNetwork/ScaffoldNetwork.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeEncoder.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeUtils.h +279 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmartsWrite.h +46 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParse.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParseOps.h +53 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesWrite.h +288 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/primes.h +18 -0
- rdkit_headers/include/rdkit/GraphMol/StereoGroup.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/SubgraphUtils.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/Subgraphs.h +154 -0
- rdkit_headers/include/rdkit/GraphMol/SubstanceGroup.h +297 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructMatch.h +232 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructUtils.h +44 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/PatternFactory.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrary.h +951 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrarySerialization.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/TautomerQuery/TautomerQuery.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Snapshot.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Trajectory.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/atomic_data.h +76 -0
- rdkit_headers/include/rdkit/GraphMol/details.h +15 -0
- rdkit_headers/include/rdkit/GraphMol/new_canon.h +772 -0
- rdkit_headers/include/rdkit/Numerics/Alignment/AlignPoints.h +49 -0
- rdkit_headers/include/rdkit/Numerics/Conrec.h +203 -0
- rdkit_headers/include/rdkit/Numerics/EigenSolvers/PowerEigenSolver.h +68 -0
- rdkit_headers/include/rdkit/Numerics/Matrix.h +347 -0
- rdkit_headers/include/rdkit/Numerics/Optimizer/BFGSOpt.h +397 -0
- rdkit_headers/include/rdkit/Numerics/SquareMatrix.h +89 -0
- rdkit_headers/include/rdkit/Numerics/SymmMatrix.h +361 -0
- rdkit_headers/include/rdkit/Numerics/Vector.h +327 -0
- rdkit_headers/include/rdkit/Query/AndQuery.h +57 -0
- rdkit_headers/include/rdkit/Query/EqualityQuery.h +88 -0
- rdkit_headers/include/rdkit/Query/GreaterEqualQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/GreaterQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/LessEqualQuery.h +75 -0
- rdkit_headers/include/rdkit/Query/LessQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/NullQueryAlgebra.h +86 -0
- rdkit_headers/include/rdkit/Query/OrQuery.h +58 -0
- rdkit_headers/include/rdkit/Query/Query.h +210 -0
- rdkit_headers/include/rdkit/Query/QueryObjects.h +38 -0
- rdkit_headers/include/rdkit/Query/RangeQuery.h +116 -0
- rdkit_headers/include/rdkit/Query/SetQuery.h +87 -0
- rdkit_headers/include/rdkit/Query/XOrQuery.h +63 -0
- rdkit_headers/include/rdkit/RDGeneral/BadFileException.h +39 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostEndInclude.h +69 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostStartInclude.h +95 -0
- rdkit_headers/include/rdkit/RDGeneral/ConcurrentQueue.h +132 -0
- rdkit_headers/include/rdkit/RDGeneral/Dict.h +350 -0
- rdkit_headers/include/rdkit/RDGeneral/Exceptions.h +73 -0
- rdkit_headers/include/rdkit/RDGeneral/FileParseException.h +36 -0
- rdkit_headers/include/rdkit/RDGeneral/Invariant.h +198 -0
- rdkit_headers/include/rdkit/RDGeneral/LocaleSwitcher.h +54 -0
- rdkit_headers/include/rdkit/RDGeneral/RDAny.h +217 -0
- rdkit_headers/include/rdkit/RDGeneral/RDConfig.h +49 -0
- rdkit_headers/include/rdkit/RDGeneral/RDExportMacros.h +40 -0
- rdkit_headers/include/rdkit/RDGeneral/RDLog.h +142 -0
- rdkit_headers/include/rdkit/RDGeneral/RDProps.h +172 -0
- rdkit_headers/include/rdkit/RDGeneral/RDThreads.h +44 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-doublemagic.h +478 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-taggedunion.h +518 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue.h +285 -0
- rdkit_headers/include/rdkit/RDGeneral/Ranking.h +87 -0
- rdkit_headers/include/rdkit/RDGeneral/StreamOps.h +637 -0
- rdkit_headers/include/rdkit/RDGeneral/export.h +559 -0
- rdkit_headers/include/rdkit/RDGeneral/hanoiSort.h +167 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/float_functions.hpp +156 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/hash_float.hpp +179 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/extensions.hpp +152 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash.hpp +463 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash_fwd.hpp +51 -0
- rdkit_headers/include/rdkit/RDGeneral/test.h +274 -0
- rdkit_headers/include/rdkit/RDGeneral/types.h +401 -0
- rdkit_headers/include/rdkit/RDGeneral/utils.h +106 -0
- rdkit_headers/include/rdkit/RDGeneral/versions.h +27 -0
- rdkit_headers/include/rdkit/RDStreams/streams.h +19 -0
- rdkit_headers/include/rdkit/RingDecomposerLib.h +751 -0
- rdkit_headers/include/rdkit/SimDivPickers/DistPicker.h +92 -0
- rdkit_headers/include/rdkit/SimDivPickers/HierarchicalClusterPicker.h +107 -0
- rdkit_headers/include/rdkit/SimDivPickers/LeaderPicker.h +470 -0
- rdkit_headers/include/rdkit/SimDivPickers/MaxMinPicker.h +303 -0
- rdkit_headers-2022.3.3.dist-info/METADATA +24 -0
- rdkit_headers-2022.3.3.dist-info/RECORD +320 -0
- rdkit_headers-2022.3.3.dist-info/WHEEL +4 -0
- rdkit_headers-2022.3.3.dist-info/entry_points.txt +4 -0
- rdkit_headers-2022.3.3.dist-info/licenses/LICENSE +29 -0
- rdkit_headers-2022.3.3.dist-info/licenses/NOTICE +5 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2001-2013 Greg Landrum, Randal M. Henne and Rational Discovery
|
|
3
|
+
// LLC
|
|
4
|
+
//
|
|
5
|
+
// @@ All Rights Reserved @@
|
|
6
|
+
// This file is part of the RDKit.
|
|
7
|
+
// The contents are covered by the terms of the BSD license
|
|
8
|
+
// which is included in the file license.txt, found at the root
|
|
9
|
+
// of the RDKit source tree.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
#include <RDGeneral/export.h>
|
|
13
|
+
#ifndef __RD_INVARIANT_H__
|
|
14
|
+
#define __RD_INVARIANT_H__
|
|
15
|
+
|
|
16
|
+
#include <cassert>
|
|
17
|
+
#include <string>
|
|
18
|
+
#include <iostream>
|
|
19
|
+
#include <stdexcept>
|
|
20
|
+
|
|
21
|
+
#include "BoostStartInclude.h"
|
|
22
|
+
#include <RDGeneral/RDLog.h>
|
|
23
|
+
#include "BoostEndInclude.h"
|
|
24
|
+
|
|
25
|
+
#ifdef RDDEBUG
|
|
26
|
+
// Enable RDDEBUG for testing whether rdcast
|
|
27
|
+
// conversions are within numerical limits
|
|
28
|
+
#include <RDGeneral/BoostStartInclude.h>
|
|
29
|
+
#include <boost/numeric/conversion/cast.hpp>
|
|
30
|
+
#include <RDGeneral/BoostEndInclude.h>
|
|
31
|
+
#endif
|
|
32
|
+
//
|
|
33
|
+
// What if no invariant method is defined?
|
|
34
|
+
//
|
|
35
|
+
#if !defined INVARIANT_EXCEPTION_METHOD && !defined INVARIANT_ASSERT_METHOD && \
|
|
36
|
+
!defined INVARIANT_SILENT_METHOD
|
|
37
|
+
#define INVARIANT_EXCEPTION_METHOD 1
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
//
|
|
41
|
+
// What if an invariant method is defined, but none are true?
|
|
42
|
+
//
|
|
43
|
+
#if !INVARIANT_EXCEPTION_METHOD && !INVARIANT_ASSERT_METHOD && \
|
|
44
|
+
!INVARIANT_SILENT_METHOD
|
|
45
|
+
#undef INVARIANT_EXCEPTION_METHOD
|
|
46
|
+
#define INVARIANT_EXCEPTION_METHOD 1
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
namespace Invar {
|
|
50
|
+
|
|
51
|
+
class RDKIT_RDGENERAL_EXPORT Invariant : public std::runtime_error {
|
|
52
|
+
public:
|
|
53
|
+
Invariant(const char* prefix, const char* mess, const char* expr,
|
|
54
|
+
const char* const file, int line)
|
|
55
|
+
: std::runtime_error(prefix),
|
|
56
|
+
mess_d(mess),
|
|
57
|
+
expr_d(expr),
|
|
58
|
+
prefix_d(prefix),
|
|
59
|
+
file_dp(file),
|
|
60
|
+
line_d(line) {}
|
|
61
|
+
Invariant(const char* prefix, const std::string& mess, const char* expr,
|
|
62
|
+
const char* const file, int line)
|
|
63
|
+
: std::runtime_error(prefix),
|
|
64
|
+
mess_d(mess.c_str()),
|
|
65
|
+
expr_d(expr),
|
|
66
|
+
prefix_d(prefix),
|
|
67
|
+
file_dp(file),
|
|
68
|
+
line_d(line) {}
|
|
69
|
+
~Invariant() noexcept override = default;
|
|
70
|
+
|
|
71
|
+
const char* what() const noexcept override { return mess_d.c_str(); }
|
|
72
|
+
|
|
73
|
+
const char* getFile() const { return file_dp; }
|
|
74
|
+
|
|
75
|
+
std::string getExpression() const { return expr_d; }
|
|
76
|
+
|
|
77
|
+
int getLine() const { return line_d; }
|
|
78
|
+
|
|
79
|
+
std::string toString() const;
|
|
80
|
+
std::string toUserString() const; // strips build info, adds version
|
|
81
|
+
|
|
82
|
+
private:
|
|
83
|
+
std::string mess_d, expr_d, prefix_d;
|
|
84
|
+
|
|
85
|
+
const char* const file_dp;
|
|
86
|
+
|
|
87
|
+
int line_d;
|
|
88
|
+
};
|
|
89
|
+
RDKIT_RDGENERAL_EXPORT std::ostream& operator<<(std::ostream& s,
|
|
90
|
+
const Invariant& inv);
|
|
91
|
+
} // end of namespace Invar
|
|
92
|
+
|
|
93
|
+
#define ASSERT_INVARIANT(expr, mess) assert(expr)
|
|
94
|
+
|
|
95
|
+
//
|
|
96
|
+
// Set desired reporting method
|
|
97
|
+
//
|
|
98
|
+
|
|
99
|
+
#if INVARIANT_EXCEPTION_METHOD
|
|
100
|
+
|
|
101
|
+
#define CHECK_INVARIANT(expr, mess) \
|
|
102
|
+
if (!(expr)) { \
|
|
103
|
+
Invar::Invariant inv("Invariant Violation", mess, #expr, __FILE__, \
|
|
104
|
+
__LINE__); \
|
|
105
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
106
|
+
throw inv; \
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#define PRECONDITION(expr, mess) \
|
|
110
|
+
if (!(expr)) { \
|
|
111
|
+
Invar::Invariant inv("Pre-condition Violation", mess, #expr, __FILE__, \
|
|
112
|
+
__LINE__); \
|
|
113
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
114
|
+
throw inv; \
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#define POSTCONDITION(expr, mess) \
|
|
118
|
+
if (!(expr)) { \
|
|
119
|
+
Invar::Invariant inv("Post-condition Violation", mess, #expr, __FILE__, \
|
|
120
|
+
__LINE__); \
|
|
121
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
122
|
+
throw inv; \
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
#define UNDER_CONSTRUCTION(fn) \
|
|
126
|
+
Invar::Invariant inv("Incomplete Code", \
|
|
127
|
+
"This routine is still under development", fn, \
|
|
128
|
+
__FILE__, __LINE__); \
|
|
129
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
130
|
+
throw inv;
|
|
131
|
+
|
|
132
|
+
#define RANGE_CHECK(lo, x, hi) \
|
|
133
|
+
if ((lo) > (hi) || (x) < (lo) || (x) > (hi)) { \
|
|
134
|
+
std::stringstream errstr; \
|
|
135
|
+
errstr << lo << " <= " << x << " <= " << hi; \
|
|
136
|
+
Invar::Invariant inv("Range Error", #x, errstr.str().c_str(), __FILE__, \
|
|
137
|
+
__LINE__); \
|
|
138
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
139
|
+
throw inv; \
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#define URANGE_CHECK(x, hi) \
|
|
143
|
+
if (x >= (hi)) { \
|
|
144
|
+
std::stringstream errstr; \
|
|
145
|
+
errstr << x << " < " << hi; \
|
|
146
|
+
Invar::Invariant inv("Range Error", #x, errstr.str().c_str(), __FILE__, \
|
|
147
|
+
__LINE__); \
|
|
148
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
149
|
+
throw inv; \
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#define TEST_ASSERT(expr) \
|
|
153
|
+
if (!(expr)) { \
|
|
154
|
+
Invar::Invariant inv("Test Assert", "Expression Failed: ", #expr, \
|
|
155
|
+
__FILE__, __LINE__); \
|
|
156
|
+
BOOST_LOG(rdErrorLog) << "\n\n****\n" << inv << "****\n\n"; \
|
|
157
|
+
throw inv; \
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
#elif INVARIANT_ASSERT_METHOD
|
|
161
|
+
|
|
162
|
+
#define CHECK_INVARIANT(expr, mess) assert(expr);
|
|
163
|
+
#define PRECONDITION(expr, mess) assert(expr);
|
|
164
|
+
#define POSTCONDITION(expr, mess) assert(expr);
|
|
165
|
+
#define UNDER_CONSTRUCTION(fn) assert(0);
|
|
166
|
+
#define RANGE_CHECK(lo, x, hi) \
|
|
167
|
+
assert((lo) <= (hi) && (x) >= (lo) && (x) <= (hi));
|
|
168
|
+
#define URANGE_CHECK(lo, x, hi) assert((hi > 0) && (x < hi));
|
|
169
|
+
#define TEST_ASSERT(expr) assert(expr);
|
|
170
|
+
|
|
171
|
+
#elif INVARIANT_SILENT_METHOD
|
|
172
|
+
|
|
173
|
+
#define CHECK_INVARIANT(expr, mess)
|
|
174
|
+
#define PRECONDITION(expr, mess)
|
|
175
|
+
#define POSTCONDITION(expr, mess)
|
|
176
|
+
#define UNDER_CONSTRUCTION(fn)
|
|
177
|
+
#define RANGE_CHECK(lo, x, hi)
|
|
178
|
+
#define URANGE_CHECK(x, hi)
|
|
179
|
+
#define TEST_ASSERT(expr)
|
|
180
|
+
|
|
181
|
+
#endif
|
|
182
|
+
|
|
183
|
+
#ifdef RDDEBUG
|
|
184
|
+
// use rdcast to convert between types
|
|
185
|
+
// when RDDEBUG is defined, this checks for
|
|
186
|
+
// validity (overflow, etc)
|
|
187
|
+
// when RDDEBUG is off, the cast is a no-cost
|
|
188
|
+
// static_cast
|
|
189
|
+
#define rdcast boost::numeric_cast
|
|
190
|
+
#else
|
|
191
|
+
#define rdcast static_cast
|
|
192
|
+
#endif
|
|
193
|
+
|
|
194
|
+
// Silence warnings for unused params while
|
|
195
|
+
// still indicating that they are unused
|
|
196
|
+
#define RDUNUSED_PARAM(x) (void)x;
|
|
197
|
+
|
|
198
|
+
#endif
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright (c) 2016, Novartis Institutes for BioMedical Research Inc.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
|
5
|
+
// modification, are permitted provided that the following conditions are
|
|
6
|
+
// met:
|
|
7
|
+
//
|
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
|
11
|
+
// copyright notice, this list of conditions and the following
|
|
12
|
+
// disclaimer in the documentation and/or other materials provided
|
|
13
|
+
// with the distribution.
|
|
14
|
+
// * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
15
|
+
// nor the names of its contributors may be used to endorse or promote
|
|
16
|
+
// products derived from this software without specific prior written
|
|
17
|
+
// permission.
|
|
18
|
+
//
|
|
19
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
//
|
|
31
|
+
#include <RDGeneral/export.h>
|
|
32
|
+
#ifndef _RD_LOCALESWITCHER_H
|
|
33
|
+
#define _RD_LOCALESWITCHER_H
|
|
34
|
+
|
|
35
|
+
namespace RDKit {
|
|
36
|
+
namespace Utils {
|
|
37
|
+
// allows an RAII-like approach to ensuring the locale is temporarily "C"
|
|
38
|
+
// instead of whatever we started in.
|
|
39
|
+
|
|
40
|
+
namespace detail {
|
|
41
|
+
class LocaleSwitcherImpl; // concrete OS dependent implementation
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class RDKIT_RDGENERAL_EXPORT LocaleSwitcher {
|
|
45
|
+
detail::LocaleSwitcherImpl *impl;
|
|
46
|
+
|
|
47
|
+
public:
|
|
48
|
+
LocaleSwitcher();
|
|
49
|
+
~LocaleSwitcher();
|
|
50
|
+
};
|
|
51
|
+
} // namespace Utils
|
|
52
|
+
} // namespace RDKit
|
|
53
|
+
|
|
54
|
+
#endif
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
|
5
|
+
// modification, are permitted provided that the following conditions are
|
|
6
|
+
// met:
|
|
7
|
+
//
|
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
|
11
|
+
// copyright notice, this list of conditions and the following
|
|
12
|
+
// disclaimer in the documentation and/or other materials provided
|
|
13
|
+
// with the distribution.
|
|
14
|
+
// * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
15
|
+
// nor the names of its contributors may be used to endorse or promote
|
|
16
|
+
// products derived from this software without specific prior written
|
|
17
|
+
// permission.
|
|
18
|
+
//
|
|
19
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
//
|
|
31
|
+
#include <RDGeneral/export.h>
|
|
32
|
+
#ifndef RDKIT_RDANY_H
|
|
33
|
+
#define RDKIT_RDANY_H
|
|
34
|
+
#include <RDGeneral/BoostStartInclude.h>
|
|
35
|
+
#include <boost/any.hpp>
|
|
36
|
+
#include <boost/utility.hpp>
|
|
37
|
+
#include <boost/lexical_cast.hpp>
|
|
38
|
+
#include <RDGeneral/BoostEndInclude.h>
|
|
39
|
+
|
|
40
|
+
#include "LocaleSwitcher.h"
|
|
41
|
+
#include "RDValue.h"
|
|
42
|
+
#include <string>
|
|
43
|
+
#include <vector>
|
|
44
|
+
#include <iostream>
|
|
45
|
+
#include <sstream>
|
|
46
|
+
namespace RDKit {
|
|
47
|
+
|
|
48
|
+
// RDValue does not dynamically create POD types (kind of like
|
|
49
|
+
// cdiggins::any) However, it doesn't use RTTI type info
|
|
50
|
+
// directly, it uses a companion short valued type
|
|
51
|
+
// to determine what to do.
|
|
52
|
+
// For unregistered types, it falls back to boost::any.
|
|
53
|
+
// The Size of an RDAny is (sizeof(double) + sizeof(short) == 10 bytes)
|
|
54
|
+
//
|
|
55
|
+
// For the sake of compatibility, errors throw boost::bad_any_cast
|
|
56
|
+
//
|
|
57
|
+
// Examples:
|
|
58
|
+
//
|
|
59
|
+
// RDAny v(2.);
|
|
60
|
+
// v = 1;
|
|
61
|
+
// std::vector<double> d;
|
|
62
|
+
// v == d;
|
|
63
|
+
// v.asDoubleVect().push_back(4.)
|
|
64
|
+
// rdany_cast<std::vector<double>(v).push_back(4.)
|
|
65
|
+
//
|
|
66
|
+
// Falls back to boost::any for non registered types
|
|
67
|
+
// v = boost::shared_ptr<ROMol>(new ROMol(m));
|
|
68
|
+
//
|
|
69
|
+
|
|
70
|
+
// Safe container for RDValue -- cleans up memory and copy constructs
|
|
71
|
+
struct RDAny {
|
|
72
|
+
RDValue m_value;
|
|
73
|
+
|
|
74
|
+
RDAny() : m_value() {}
|
|
75
|
+
template <class T>
|
|
76
|
+
RDAny(const T &d) : m_value(d) {}
|
|
77
|
+
/*
|
|
78
|
+
explicit RDAny(bool v) : m_value(v) {}
|
|
79
|
+
template <class T>
|
|
80
|
+
explicit RDAny(std::vector<T> *v) : m_value(v) {}
|
|
81
|
+
template <class T>
|
|
82
|
+
explicit RDAny(const boost::shared_ptr<T> &v) : m_value(v) {}
|
|
83
|
+
*/
|
|
84
|
+
RDAny(const RDAny &rhs) { copy_rdvalue(m_value, rhs.m_value); }
|
|
85
|
+
|
|
86
|
+
~RDAny() { RDValue::cleanup_rdvalue(m_value); }
|
|
87
|
+
|
|
88
|
+
// For easy of use:
|
|
89
|
+
// RDAny v;
|
|
90
|
+
// v = 2.0;
|
|
91
|
+
// v = std::string("foo...");
|
|
92
|
+
|
|
93
|
+
RDAny &operator=(const RDAny &rhs) {
|
|
94
|
+
copy_rdvalue(m_value, rhs.m_value);
|
|
95
|
+
return *this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
RDAny &operator=(float d) {
|
|
99
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
100
|
+
m_value = RDValue(d);
|
|
101
|
+
return *this;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
RDAny &operator=(int d) {
|
|
105
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
106
|
+
m_value = RDValue(d);
|
|
107
|
+
return *this;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
RDAny &operator=(unsigned int d) {
|
|
111
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
112
|
+
m_value = RDValue(d);
|
|
113
|
+
return *this;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
RDAny &operator=(bool d) {
|
|
117
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
118
|
+
m_value = RDValue(d);
|
|
119
|
+
return *this;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
RDAny &operator=(const std::string &d) {
|
|
123
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
124
|
+
m_value = RDValue(d);
|
|
125
|
+
return *this;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
RDAny &operator=(const std::vector<double> &d) {
|
|
129
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
130
|
+
m_value = RDValue(d);
|
|
131
|
+
return *this;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
RDAny &operator=(const std::vector<float> &d) {
|
|
135
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
136
|
+
m_value = RDValue(d);
|
|
137
|
+
return *this;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
RDAny &operator=(const std::vector<int> &d) {
|
|
141
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
142
|
+
m_value = RDValue(d);
|
|
143
|
+
return *this;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
RDAny &operator=(const std::vector<unsigned int> &d) {
|
|
147
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
148
|
+
m_value = d;
|
|
149
|
+
return *this;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
RDAny &operator=(const std::vector<std::string> &d) {
|
|
153
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
154
|
+
m_value = RDValue(d);
|
|
155
|
+
return *this;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
RDAny &operator=(const boost::any &d) {
|
|
159
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
160
|
+
m_value = RDValue(d); // new boost::any(d);
|
|
161
|
+
return *this;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
template <class T>
|
|
165
|
+
RDAny &operator=(const T &d) {
|
|
166
|
+
RDValue::cleanup_rdvalue(m_value);
|
|
167
|
+
boost::any *v = new boost::any(d);
|
|
168
|
+
m_value = RDValue(v);
|
|
169
|
+
return *this;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
////////////////////////////////////////////////////////////////
|
|
174
|
+
// rdany_cast
|
|
175
|
+
////////////////////////////////////////////////////////////////
|
|
176
|
+
|
|
177
|
+
// Const Access
|
|
178
|
+
template <class T>
|
|
179
|
+
const T rdany_cast(const RDAny &d) {
|
|
180
|
+
return rdvalue_cast<T>(d.m_value);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Direct access
|
|
184
|
+
template <class T>
|
|
185
|
+
T rdany_cast(RDAny &d) {
|
|
186
|
+
return rdvalue_cast<T>(d.m_value);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
template <class T>
|
|
190
|
+
typename boost::enable_if<boost::is_arithmetic<T>, T>::type from_rdany(
|
|
191
|
+
const RDAny &arg) {
|
|
192
|
+
T res;
|
|
193
|
+
if (arg.m_value.getTag() == RDTypeTag::StringTag) {
|
|
194
|
+
Utils::LocaleSwitcher ls;
|
|
195
|
+
try {
|
|
196
|
+
res = rdany_cast<T>(arg);
|
|
197
|
+
} catch (const boost::bad_any_cast &exc) {
|
|
198
|
+
try {
|
|
199
|
+
res = boost::lexical_cast<T>(rdany_cast<std::string>(arg));
|
|
200
|
+
} catch (...) {
|
|
201
|
+
throw exc;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
} else {
|
|
205
|
+
res = rdany_cast<T>(arg);
|
|
206
|
+
}
|
|
207
|
+
return res;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
template <class T>
|
|
211
|
+
typename boost::disable_if<boost::is_arithmetic<T>, T>::type from_rdany(
|
|
212
|
+
const RDAny &arg) {
|
|
213
|
+
return rdany_cast<T>(arg);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
} // namespace RDKit
|
|
217
|
+
#endif
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2018 greg Landrum
|
|
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
|
+
|
|
11
|
+
// RDKit configuration options
|
|
12
|
+
#define RDK_USE_BOOST_SERIALIZATION
|
|
13
|
+
#define RDK_USE_BOOST_IOSTREAMS
|
|
14
|
+
#define RDK_USE_BOOST_STACKTRACE
|
|
15
|
+
|
|
16
|
+
#define RDK_OPTIMIZE_POPCNT
|
|
17
|
+
#ifdef RDK_OPTIMIZE_POPCNT
|
|
18
|
+
#define USE_BUILTIN_POPCOUNT
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#define RDK_BUILD_THREADSAFE_SSS
|
|
22
|
+
#ifdef RDK_BUILD_THREADSAFE_SSS
|
|
23
|
+
#define RDK_THREADSAFE_SSS
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#define RDK_TEST_MULTITHREADED
|
|
27
|
+
|
|
28
|
+
#define RDK_USE_STRICT_ROTOR_DEFINITION
|
|
29
|
+
|
|
30
|
+
#define RDK_BUILD_DESCRIPTORS3D
|
|
31
|
+
#ifdef RDK_BUILD_DESCRIPTORS3D
|
|
32
|
+
#define RDK_HAS_EIGEN3
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
#define RDK_BUILD_COORDGEN_SUPPORT
|
|
36
|
+
|
|
37
|
+
#define RDK_BUILD_MAEPARSER_SUPPORT
|
|
38
|
+
|
|
39
|
+
/* #undef RDK_BUILD_AVALON_SUPPORT */
|
|
40
|
+
|
|
41
|
+
/* #undef RDK_BUILD_INCHI_SUPPORT */
|
|
42
|
+
|
|
43
|
+
#define RDK_BUILD_SLN_SUPPORT
|
|
44
|
+
|
|
45
|
+
/* #undef RDK_BUILD_CAIRO_SUPPORT */
|
|
46
|
+
|
|
47
|
+
/* #undef RDK_BUILD_FREETYPE_SUPPORT */
|
|
48
|
+
|
|
49
|
+
#define RDK_USE_URF
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2021 Schrödinger, 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
|
+
|
|
11
|
+
#pragma once
|
|
12
|
+
|
|
13
|
+
#ifndef SWIG
|
|
14
|
+
#ifdef _MSC_VER
|
|
15
|
+
#pragma warning(disable : 4251)
|
|
16
|
+
#pragma warning(disable : 4275)
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
#include <boost/config.hpp>
|
|
20
|
+
|
|
21
|
+
// RDKit export macro definitions
|
|
22
|
+
#ifdef RDKIT_DYN_LINK
|
|
23
|
+
#if defined(WIN32) && defined(BOOST_HAS_DECLSPEC)
|
|
24
|
+
#define RDKIT_EXPORT_API __declspec(dllexport)
|
|
25
|
+
#define RDKIT_IMPORT_API __declspec(dllimport)
|
|
26
|
+
#elif __GNUC__ >= 4 || defined(__clang__)
|
|
27
|
+
#define RDKIT_EXPORT_API __attribute__((visibility("default")))
|
|
28
|
+
#define RDKIT_IMPORT_API __attribute__((visibility("default")))
|
|
29
|
+
#endif // WIN32
|
|
30
|
+
#endif // RDKIT_DYN_LINK
|
|
31
|
+
// RDKit end export macro definitions
|
|
32
|
+
|
|
33
|
+
#endif // SWIG
|
|
34
|
+
|
|
35
|
+
#ifndef RDKIT_EXPORT_API
|
|
36
|
+
#define RDKIT_EXPORT_API
|
|
37
|
+
#endif
|
|
38
|
+
#ifndef RDKIT_IMPORT_API
|
|
39
|
+
#define RDKIT_IMPORT_API
|
|
40
|
+
#endif
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2005-2022 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
|
+
|
|
11
|
+
#include <RDGeneral/export.h>
|
|
12
|
+
#ifndef RDLOG_H_29JUNE2005
|
|
13
|
+
#define RDLOG_H_29JUNE2005
|
|
14
|
+
|
|
15
|
+
#if 1
|
|
16
|
+
#include "BoostStartInclude.h"
|
|
17
|
+
#include <boost/iostreams/tee.hpp>
|
|
18
|
+
#include <boost/iostreams/stream.hpp>
|
|
19
|
+
#include "BoostEndInclude.h"
|
|
20
|
+
#include <iostream>
|
|
21
|
+
#include <vector>
|
|
22
|
+
|
|
23
|
+
#include <vector>
|
|
24
|
+
namespace boost {
|
|
25
|
+
namespace logging {
|
|
26
|
+
|
|
27
|
+
typedef boost::iostreams::tee_device<std::ostream, std::ostream> RDTee;
|
|
28
|
+
typedef boost::iostreams::stream<RDTee> RDTeeStream;
|
|
29
|
+
|
|
30
|
+
class RDKIT_RDGENERAL_EXPORT rdLogger {
|
|
31
|
+
public:
|
|
32
|
+
std::ostream *dp_dest;
|
|
33
|
+
bool df_owner, df_enabled;
|
|
34
|
+
|
|
35
|
+
RDTee *tee;
|
|
36
|
+
RDTeeStream *teestream;
|
|
37
|
+
|
|
38
|
+
rdLogger(std::ostream *dest, bool owner = false)
|
|
39
|
+
: dp_dest(dest),
|
|
40
|
+
df_owner(owner),
|
|
41
|
+
df_enabled(true),
|
|
42
|
+
tee(nullptr),
|
|
43
|
+
teestream(nullptr) {}
|
|
44
|
+
|
|
45
|
+
//! Sets a stream to tee the output to.
|
|
46
|
+
void SetTee(std::ostream &stream) {
|
|
47
|
+
if (dp_dest) {
|
|
48
|
+
delete teestream;
|
|
49
|
+
delete tee;
|
|
50
|
+
tee = new RDTee(*dp_dest, stream);
|
|
51
|
+
teestream = new RDTeeStream(*tee);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//! Remove our tee if it's set.
|
|
55
|
+
void ClearTee() {
|
|
56
|
+
if (dp_dest) {
|
|
57
|
+
delete teestream;
|
|
58
|
+
delete tee;
|
|
59
|
+
tee = nullptr;
|
|
60
|
+
teestream = nullptr;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
~rdLogger() {
|
|
64
|
+
if (dp_dest) {
|
|
65
|
+
dp_dest->flush();
|
|
66
|
+
if (df_owner) {
|
|
67
|
+
delete dp_dest;
|
|
68
|
+
}
|
|
69
|
+
dp_dest = nullptr;
|
|
70
|
+
}
|
|
71
|
+
delete teestream;
|
|
72
|
+
teestream = nullptr;
|
|
73
|
+
delete tee;
|
|
74
|
+
tee = nullptr;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private:
|
|
78
|
+
// disable copy ctor and assignment
|
|
79
|
+
rdLogger(const rdLogger &);
|
|
80
|
+
rdLogger &operator=(const rdLogger &);
|
|
81
|
+
};
|
|
82
|
+
RDKIT_RDGENERAL_EXPORT void enable_logs(const char *arg);
|
|
83
|
+
RDKIT_RDGENERAL_EXPORT void enable_logs(const std::string &arg);
|
|
84
|
+
RDKIT_RDGENERAL_EXPORT void disable_logs(const char *arg);
|
|
85
|
+
RDKIT_RDGENERAL_EXPORT void disable_logs(const std::string &arg);
|
|
86
|
+
RDKIT_RDGENERAL_EXPORT std::string log_status();
|
|
87
|
+
} // namespace logging
|
|
88
|
+
} // namespace boost
|
|
89
|
+
namespace RDLog {
|
|
90
|
+
RDKIT_RDGENERAL_EXPORT std::ostream &toStream(std::ostream &);
|
|
91
|
+
}
|
|
92
|
+
#define BOOST_LOG(__arg__) \
|
|
93
|
+
if ((__arg__) && (__arg__->dp_dest) && (__arg__->df_enabled)) \
|
|
94
|
+
RDLog::toStream((__arg__->teestream) ? *(__arg__->teestream) \
|
|
95
|
+
: *(__arg__->dp_dest))
|
|
96
|
+
|
|
97
|
+
using RDLogger = std::shared_ptr<boost::logging::rdLogger>;
|
|
98
|
+
|
|
99
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdAppLog;
|
|
100
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdDebugLog;
|
|
101
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdInfoLog;
|
|
102
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdErrorLog;
|
|
103
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdWarningLog;
|
|
104
|
+
RDKIT_RDGENERAL_EXPORT extern RDLogger rdStatusLog;
|
|
105
|
+
|
|
106
|
+
#else
|
|
107
|
+
#define BOOST_LOG_NO_LIB
|
|
108
|
+
#include <boost/log/log.hpp>
|
|
109
|
+
BOOST_DECLARE_LOG(rdAppLog)
|
|
110
|
+
BOOST_DECLARE_LOG(rdDebugLog)
|
|
111
|
+
BOOST_DECLARE_LOG(rdInfoLog)
|
|
112
|
+
BOOST_DECLARE_LOG(rdErrorLog)
|
|
113
|
+
BOOST_DECLARE_LOG(rdWarningLog)
|
|
114
|
+
BOOST_DECLARE_LOG(rdStatusLog)
|
|
115
|
+
#endif
|
|
116
|
+
namespace RDLog {
|
|
117
|
+
RDKIT_RDGENERAL_EXPORT void InitLogs();
|
|
118
|
+
|
|
119
|
+
using RDLoggerList = std::vector<RDLogger>;
|
|
120
|
+
class RDKIT_RDGENERAL_EXPORT LogStateSetter : public boost::noncopyable {
|
|
121
|
+
public:
|
|
122
|
+
//! enables only the logs in the list, the current state will be restored when
|
|
123
|
+
//! this object is destroyed
|
|
124
|
+
LogStateSetter(RDLoggerList toEnable);
|
|
125
|
+
//! disables all logs, the current state will be restored when this object is
|
|
126
|
+
//! destroyed
|
|
127
|
+
LogStateSetter();
|
|
128
|
+
~LogStateSetter();
|
|
129
|
+
|
|
130
|
+
private:
|
|
131
|
+
std::uint64_t d_origState = 0;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// ! Temporarily block logging until this object goes out of scope
|
|
135
|
+
// DEPRECATED, please use LogStateSetter() instead
|
|
136
|
+
struct RDKIT_RDGENERAL_EXPORT BlockLogs {
|
|
137
|
+
std::vector<RDLogger> logs_to_reenable;
|
|
138
|
+
BlockLogs();
|
|
139
|
+
~BlockLogs();
|
|
140
|
+
};
|
|
141
|
+
} // namespace RDLog
|
|
142
|
+
#endif
|