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,463 @@
|
|
|
1
|
+
|
|
2
|
+
// Copyright 2005-2009 Daniel James.
|
|
3
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
4
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
5
|
+
//
|
|
6
|
+
// Modifications by Greg Landrum to get portable hashes across machines
|
|
7
|
+
//
|
|
8
|
+
// Based on Peter Dimov's proposal
|
|
9
|
+
// http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
|
|
10
|
+
// issue 6.18.
|
|
11
|
+
|
|
12
|
+
#if !defined(GBOOST_FUNCTIONAL_HASH_HASH_HPP)
|
|
13
|
+
#define GBOOST_FUNCTIONAL_HASH_HASH_HPP
|
|
14
|
+
|
|
15
|
+
#include <RDGeneral/hash/hash_fwd.hpp>
|
|
16
|
+
#include <functional>
|
|
17
|
+
#include <RDGeneral/hash/detail/hash_float.hpp>
|
|
18
|
+
#include <boost/detail/container_fwd.hpp>
|
|
19
|
+
#include <string>
|
|
20
|
+
|
|
21
|
+
#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
|
22
|
+
#include <boost/type_traits/is_pointer.hpp>
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
|
26
|
+
#include <boost/type_traits/is_array.hpp>
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
30
|
+
#include <boost/type_traits/is_const.hpp>
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
namespace gboost {
|
|
34
|
+
std::hash_result_t hash_value(bool);
|
|
35
|
+
std::hash_result_t hash_value(char);
|
|
36
|
+
std::hash_result_t hash_value(unsigned char);
|
|
37
|
+
std::hash_result_t hash_value(signed char);
|
|
38
|
+
std::hash_result_t hash_value(short);
|
|
39
|
+
std::hash_result_t hash_value(unsigned short);
|
|
40
|
+
std::hash_result_t hash_value(int);
|
|
41
|
+
std::hash_result_t hash_value(unsigned int);
|
|
42
|
+
std::hash_result_t hash_value(long);
|
|
43
|
+
std::hash_result_t hash_value(unsigned long);
|
|
44
|
+
|
|
45
|
+
#if !defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
|
46
|
+
std::hash_result_t hash_value(wchar_t);
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
#if defined(BOOST_HAS_LONG_LONG)
|
|
50
|
+
std::hash_result_t hash_value(boost::long_long_type);
|
|
51
|
+
std::hash_result_t hash_value(boost::ulong_long_type);
|
|
52
|
+
#endif
|
|
53
|
+
|
|
54
|
+
#if !BOOST_WORKAROUND(__DMC__, <= 0x848)
|
|
55
|
+
template <class T>
|
|
56
|
+
std::hash_result_t hash_value(T* const&);
|
|
57
|
+
#else
|
|
58
|
+
template <class T>
|
|
59
|
+
std::hash_result_t hash_value(T*);
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
|
63
|
+
template <class T, unsigned N>
|
|
64
|
+
std::hash_result_t hash_value(const T (&x)[N]);
|
|
65
|
+
|
|
66
|
+
template <class T, unsigned N>
|
|
67
|
+
std::hash_result_t hash_value(T (&x)[N]);
|
|
68
|
+
#endif
|
|
69
|
+
|
|
70
|
+
std::hash_result_t hash_value(float v);
|
|
71
|
+
std::hash_result_t hash_value(double v);
|
|
72
|
+
std::hash_result_t hash_value(long double v);
|
|
73
|
+
|
|
74
|
+
template <class A, class B>
|
|
75
|
+
std::hash_result_t hash_value(std::pair<A, B> const&);
|
|
76
|
+
template <class T, class A>
|
|
77
|
+
std::hash_result_t hash_value(std::vector<T, A> const&);
|
|
78
|
+
template <class T, class A>
|
|
79
|
+
std::hash_result_t hash_value(std::list<T, A> const& v);
|
|
80
|
+
template <class T, class A>
|
|
81
|
+
std::hash_result_t hash_value(std::deque<T, A> const& v);
|
|
82
|
+
template <class K, class C, class A>
|
|
83
|
+
std::hash_result_t hash_value(std::set<K, C, A> const& v);
|
|
84
|
+
template <class K, class C, class A>
|
|
85
|
+
std::hash_result_t hash_value(std::multiset<K, C, A> const& v);
|
|
86
|
+
template <class K, class T, class C, class A>
|
|
87
|
+
std::hash_result_t hash_value(std::map<K, T, C, A> const& v);
|
|
88
|
+
template <class K, class T, class C, class A>
|
|
89
|
+
std::hash_result_t hash_value(std::multimap<K, T, C, A> const& v);
|
|
90
|
+
|
|
91
|
+
template <class T>
|
|
92
|
+
std::hash_result_t hash_value(std::complex<T> const&);
|
|
93
|
+
|
|
94
|
+
// Implementation
|
|
95
|
+
|
|
96
|
+
namespace hash_detail {
|
|
97
|
+
template <class T>
|
|
98
|
+
inline std::hash_result_t hash_value_signed(T val) {
|
|
99
|
+
const int hash_result_t_bits =
|
|
100
|
+
std::numeric_limits<std::hash_result_t>::digits;
|
|
101
|
+
// ceiling(std::numeric_limits<T>::digits / hash_result_t_bits) - 1
|
|
102
|
+
const int length = (std::numeric_limits<T>::digits - 1) / hash_result_t_bits;
|
|
103
|
+
|
|
104
|
+
std::hash_result_t seed = 0;
|
|
105
|
+
T positive = val < 0 ? -1 - val : val;
|
|
106
|
+
|
|
107
|
+
// Hopefully, this loop can be unrolled.
|
|
108
|
+
for (unsigned int i = length * hash_result_t_bits; i > 0;
|
|
109
|
+
i -= hash_result_t_bits) {
|
|
110
|
+
seed ^= (std::hash_result_t)(positive >> i) + (seed << 6) + (seed >> 2);
|
|
111
|
+
}
|
|
112
|
+
seed ^= (std::hash_result_t)val + (seed << 6) + (seed >> 2);
|
|
113
|
+
|
|
114
|
+
return seed;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
template <class T>
|
|
118
|
+
inline std::hash_result_t hash_value_unsigned(T val) {
|
|
119
|
+
const int hash_result_t_bits =
|
|
120
|
+
std::numeric_limits<std::hash_result_t>::digits;
|
|
121
|
+
// ceiling(std::numeric_limits<T>::digits / hash_result_t_bits) - 1
|
|
122
|
+
const int length = (std::numeric_limits<T>::digits - 1) / hash_result_t_bits;
|
|
123
|
+
|
|
124
|
+
std::hash_result_t seed = 0;
|
|
125
|
+
|
|
126
|
+
// Hopefully, this loop can be unrolled.
|
|
127
|
+
for (unsigned int i = length * hash_result_t_bits; i > 0;
|
|
128
|
+
i -= hash_result_t_bits) {
|
|
129
|
+
seed ^= (std::hash_result_t)(val >> i) + (seed << 6) + (seed >> 2);
|
|
130
|
+
}
|
|
131
|
+
seed ^= (std::hash_result_t)val + (seed << 6) + (seed >> 2);
|
|
132
|
+
|
|
133
|
+
return seed;
|
|
134
|
+
}
|
|
135
|
+
} // namespace hash_detail
|
|
136
|
+
|
|
137
|
+
inline std::hash_result_t hash_value(bool v) {
|
|
138
|
+
return static_cast<std::hash_result_t>(v);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
inline std::hash_result_t hash_value(char v) {
|
|
142
|
+
return static_cast<std::hash_result_t>(v);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
inline std::hash_result_t hash_value(unsigned char v) {
|
|
146
|
+
return static_cast<std::hash_result_t>(v);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
inline std::hash_result_t hash_value(signed char v) {
|
|
150
|
+
return static_cast<std::hash_result_t>(v);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
inline std::hash_result_t hash_value(short v) {
|
|
154
|
+
return static_cast<std::hash_result_t>(v);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
inline std::hash_result_t hash_value(unsigned short v) {
|
|
158
|
+
return static_cast<std::hash_result_t>(v);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
inline std::hash_result_t hash_value(int v) {
|
|
162
|
+
return static_cast<std::hash_result_t>(v);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
inline std::hash_result_t hash_value(unsigned int v) {
|
|
166
|
+
return static_cast<std::hash_result_t>(v);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
inline std::hash_result_t hash_value(long v) {
|
|
170
|
+
return static_cast<std::hash_result_t>(v);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
inline std::hash_result_t hash_value(unsigned long v) {
|
|
174
|
+
return static_cast<std::hash_result_t>(v);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
#if !defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
|
178
|
+
inline std::hash_result_t hash_value(wchar_t v) {
|
|
179
|
+
return static_cast<std::hash_result_t>(v);
|
|
180
|
+
}
|
|
181
|
+
#endif
|
|
182
|
+
|
|
183
|
+
#if defined(BOOST_HAS_LONG_LONG)
|
|
184
|
+
inline std::hash_result_t hash_value(boost::long_long_type v) {
|
|
185
|
+
return hash_detail::hash_value_signed(v);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
inline std::hash_result_t hash_value(boost::ulong_long_type v) {
|
|
189
|
+
return hash_detail::hash_value_unsigned(v);
|
|
190
|
+
}
|
|
191
|
+
#endif
|
|
192
|
+
|
|
193
|
+
// Implementation by Alberto Barbati and Dave Harris.
|
|
194
|
+
#if !BOOST_WORKAROUND(__DMC__, <= 0x848)
|
|
195
|
+
template <class T>
|
|
196
|
+
std::hash_result_t hash_value(T* const& v)
|
|
197
|
+
#else
|
|
198
|
+
template <class T>
|
|
199
|
+
std::hash_result_t hash_value(T* v)
|
|
200
|
+
#endif
|
|
201
|
+
{
|
|
202
|
+
std::hash_result_t x =
|
|
203
|
+
static_cast<std::hash_result_t>(reinterpret_cast<std::ptrdiff_t>(v));
|
|
204
|
+
|
|
205
|
+
return x + (x >> 3);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
209
|
+
template <class T>
|
|
210
|
+
inline void hash_combine(std::hash_result_t& seed, T& v)
|
|
211
|
+
#else
|
|
212
|
+
template <class T>
|
|
213
|
+
inline void hash_combine(std::hash_result_t& seed, T const& v)
|
|
214
|
+
#endif
|
|
215
|
+
{
|
|
216
|
+
gboost::hash<T> hasher;
|
|
217
|
+
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
template <class It>
|
|
221
|
+
inline std::hash_result_t hash_range(It first, It last) {
|
|
222
|
+
std::hash_result_t seed = 0;
|
|
223
|
+
|
|
224
|
+
for (; first != last; ++first) {
|
|
225
|
+
hash_combine(seed, *first);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return seed;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
template <class It>
|
|
232
|
+
inline void hash_range(std::hash_result_t& seed, It first, It last) {
|
|
233
|
+
for (; first != last; ++first) {
|
|
234
|
+
hash_combine(seed, *first);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
|
239
|
+
template <class T>
|
|
240
|
+
inline std::hash_result_t hash_range(T* first, T* last) {
|
|
241
|
+
std::hash_result_t seed = 0;
|
|
242
|
+
|
|
243
|
+
for (; first != last; ++first) {
|
|
244
|
+
gboost::hash<T> hasher;
|
|
245
|
+
seed ^= hasher(*first) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return seed;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
template <class T>
|
|
252
|
+
inline void hash_range(std::hash_result_t& seed, T* first, T* last) {
|
|
253
|
+
for (; first != last; ++first) {
|
|
254
|
+
gboost::hash<T> hasher;
|
|
255
|
+
seed ^= hasher(*first) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
#endif
|
|
259
|
+
|
|
260
|
+
#if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
|
|
261
|
+
template <class T, unsigned N>
|
|
262
|
+
inline std::hash_result_t hash_value(const T (&x)[N]) {
|
|
263
|
+
return hash_range(x, x + N);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
template <class T, unsigned N>
|
|
267
|
+
inline std::hash_result_t hash_value(T (&x)[N]) {
|
|
268
|
+
return hash_range(x, x + N);
|
|
269
|
+
}
|
|
270
|
+
#endif
|
|
271
|
+
|
|
272
|
+
inline std::hash_result_t hash_value(float v) {
|
|
273
|
+
return gboost::hash_detail::float_hash_value(v);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
inline std::hash_result_t hash_value(double v) {
|
|
277
|
+
return gboost::hash_detail::float_hash_value(v);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
inline std::hash_result_t hash_value(long double v) {
|
|
281
|
+
return gboost::hash_detail::float_hash_value(v);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
template <class A, class B>
|
|
285
|
+
std::hash_result_t hash_value(std::pair<A, B> const& v) {
|
|
286
|
+
std::hash_result_t seed = 0;
|
|
287
|
+
hash_combine(seed, v.first);
|
|
288
|
+
hash_combine(seed, v.second);
|
|
289
|
+
return seed;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
template <class T, class A>
|
|
293
|
+
std::hash_result_t hash_value(std::vector<T, A> const& v) {
|
|
294
|
+
return hash_range(v.begin(), v.end());
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
template <class T, class A>
|
|
298
|
+
std::hash_result_t hash_value(std::list<T, A> const& v) {
|
|
299
|
+
return hash_range(v.begin(), v.end());
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
template <class T, class A>
|
|
303
|
+
std::hash_result_t hash_value(std::deque<T, A> const& v) {
|
|
304
|
+
return hash_range(v.begin(), v.end());
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
template <class K, class C, class A>
|
|
308
|
+
std::hash_result_t hash_value(std::set<K, C, A> const& v) {
|
|
309
|
+
return hash_range(v.begin(), v.end());
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
template <class K, class C, class A>
|
|
313
|
+
std::hash_result_t hash_value(std::multiset<K, C, A> const& v) {
|
|
314
|
+
return hash_range(v.begin(), v.end());
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
template <class K, class T, class C, class A>
|
|
318
|
+
std::hash_result_t hash_value(std::map<K, T, C, A> const& v) {
|
|
319
|
+
return hash_range(v.begin(), v.end());
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
template <class K, class T, class C, class A>
|
|
323
|
+
std::hash_result_t hash_value(std::multimap<K, T, C, A> const& v) {
|
|
324
|
+
return hash_range(v.begin(), v.end());
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
template <class T>
|
|
328
|
+
std::hash_result_t hash_value(std::complex<T> const& v) {
|
|
329
|
+
gboost::hash<T> hasher;
|
|
330
|
+
std::hash_result_t seed = hasher(v.imag());
|
|
331
|
+
seed ^= hasher(v.real()) + (seed << 6) + (seed >> 2);
|
|
332
|
+
return seed;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
//
|
|
336
|
+
// gboost::hash
|
|
337
|
+
//
|
|
338
|
+
|
|
339
|
+
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
340
|
+
#define BOOST_HASH_SPECIALIZE(type) \
|
|
341
|
+
template <> \
|
|
342
|
+
struct hash<type> : public std::unary_function<type, std::hash_result_t> { \
|
|
343
|
+
std::hash_result_t operator()(type v) const { \
|
|
344
|
+
return gboost::hash_value(v); \
|
|
345
|
+
} \
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
#define BOOST_HASH_SPECIALIZE_REF(type) \
|
|
349
|
+
template <> \
|
|
350
|
+
struct hash<type> : public std::unary_function<type, std::hash_result_t> { \
|
|
351
|
+
std::hash_result_t operator()(type const& v) const { \
|
|
352
|
+
return gboost::hash_value(v); \
|
|
353
|
+
} \
|
|
354
|
+
};
|
|
355
|
+
#else
|
|
356
|
+
#define BOOST_HASH_SPECIALIZE(type) \
|
|
357
|
+
template <> \
|
|
358
|
+
struct hash<type> : public std::unary_function<type, std::hash_result_t> { \
|
|
359
|
+
std::hash_result_t operator()(type v) const { \
|
|
360
|
+
return gboost::hash_value(v); \
|
|
361
|
+
} \
|
|
362
|
+
}; \
|
|
363
|
+
\
|
|
364
|
+
template <> \
|
|
365
|
+
struct hash<const type> \
|
|
366
|
+
: public std::unary_function<const type, std::hash_result_t> { \
|
|
367
|
+
std::hash_result_t operator()(const type v) const { \
|
|
368
|
+
return gboost::hash_value(v); \
|
|
369
|
+
} \
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
#define BOOST_HASH_SPECIALIZE_REF(type) \
|
|
373
|
+
template <> \
|
|
374
|
+
struct hash<type> : public std::unary_function<type, std::hash_result_t> { \
|
|
375
|
+
std::hash_result_t operator()(type const& v) const { \
|
|
376
|
+
return gboost::hash_value(v); \
|
|
377
|
+
} \
|
|
378
|
+
}; \
|
|
379
|
+
\
|
|
380
|
+
template <> \
|
|
381
|
+
struct hash<const type> \
|
|
382
|
+
: public std::unary_function<const type, std::hash_result_t> { \
|
|
383
|
+
std::hash_result_t operator()(type const& v) const { \
|
|
384
|
+
return gboost::hash_value(v); \
|
|
385
|
+
} \
|
|
386
|
+
};
|
|
387
|
+
#endif
|
|
388
|
+
|
|
389
|
+
BOOST_HASH_SPECIALIZE(bool)
|
|
390
|
+
BOOST_HASH_SPECIALIZE(char)
|
|
391
|
+
BOOST_HASH_SPECIALIZE(signed char)
|
|
392
|
+
BOOST_HASH_SPECIALIZE(unsigned char)
|
|
393
|
+
#if !defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
|
394
|
+
BOOST_HASH_SPECIALIZE(wchar_t)
|
|
395
|
+
#endif
|
|
396
|
+
BOOST_HASH_SPECIALIZE(short)
|
|
397
|
+
BOOST_HASH_SPECIALIZE(unsigned short)
|
|
398
|
+
BOOST_HASH_SPECIALIZE(int)
|
|
399
|
+
BOOST_HASH_SPECIALIZE(unsigned int)
|
|
400
|
+
BOOST_HASH_SPECIALIZE(long)
|
|
401
|
+
BOOST_HASH_SPECIALIZE(unsigned long)
|
|
402
|
+
|
|
403
|
+
BOOST_HASH_SPECIALIZE(float)
|
|
404
|
+
BOOST_HASH_SPECIALIZE(double)
|
|
405
|
+
BOOST_HASH_SPECIALIZE(long double)
|
|
406
|
+
|
|
407
|
+
#undef BOOST_HASH_SPECIALIZE
|
|
408
|
+
#undef BOOST_HASH_SPECIALIZE_REF
|
|
409
|
+
|
|
410
|
+
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
|
411
|
+
template <class T>
|
|
412
|
+
struct hash<T*> : public std::unary_function<T*, std::hash_result_t> {
|
|
413
|
+
std::hash_result_t operator()(T* v) const {
|
|
414
|
+
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
|
|
415
|
+
return gboost::hash_value(v);
|
|
416
|
+
#else
|
|
417
|
+
std::hash_result_t x =
|
|
418
|
+
static_cast<std::hash_result_t>(reinterpret_cast<std::ptrdiff_t>(v));
|
|
419
|
+
|
|
420
|
+
return x + (x >> 3);
|
|
421
|
+
#endif
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
#else
|
|
425
|
+
namespace hash_detail {
|
|
426
|
+
template <bool IsPointer>
|
|
427
|
+
struct hash_impl;
|
|
428
|
+
|
|
429
|
+
template <>
|
|
430
|
+
struct hash_impl<true> {
|
|
431
|
+
template <class T>
|
|
432
|
+
struct inner : public std::unary_function<T, std::hash_result_t> {
|
|
433
|
+
std::hash_result_t operator()(T val) const {
|
|
434
|
+
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590)
|
|
435
|
+
return gboost::hash_value(val);
|
|
436
|
+
#else
|
|
437
|
+
std::hash_result_t x = static_cast<std::hash_result_t>(
|
|
438
|
+
reinterpret_cast<std::ptrdiff_t>(val));
|
|
439
|
+
|
|
440
|
+
return x + (x >> 3);
|
|
441
|
+
#endif
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
} // namespace hash_detail
|
|
446
|
+
|
|
447
|
+
template <class T>
|
|
448
|
+
struct hash : public gboost::hash_detail::hash_impl<
|
|
449
|
+
boost::is_pointer<T>::value>::BOOST_NESTED_TEMPLATE inner<T> {
|
|
450
|
+
};
|
|
451
|
+
#endif
|
|
452
|
+
} // namespace gboost
|
|
453
|
+
|
|
454
|
+
#endif // BOOST_FUNCTIONAL_HASH_HASH_HPP
|
|
455
|
+
|
|
456
|
+
// Include this outside of the include guards in case the file is included
|
|
457
|
+
// twice - once with BOOST_HASH_NO_EXTENSIONS defined, and then with it
|
|
458
|
+
// undefined.
|
|
459
|
+
|
|
460
|
+
#if !defined(GBOOST_HASH_NO_EXTENSIONS) && \
|
|
461
|
+
!defined(GBOOST_FUNCTIONAL_HASH_EXTENSIONS_HPP)
|
|
462
|
+
#include <RDGeneral/hash/extensions.hpp>
|
|
463
|
+
#endif
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
// Copyright 2005-2009 Daniel James.
|
|
3
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
4
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
5
|
+
|
|
6
|
+
// Based on Peter Dimov's proposal
|
|
7
|
+
// http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
|
|
8
|
+
// issue 6.18.
|
|
9
|
+
|
|
10
|
+
#if !defined(GBOOST_FUNCTIONAL_HASH_FWD_HPP)
|
|
11
|
+
#define GBOOST_FUNCTIONAL_HASH_FWD_HPP
|
|
12
|
+
|
|
13
|
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
14
|
+
#pragma once
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#include <cstdint>
|
|
18
|
+
namespace std {
|
|
19
|
+
typedef std::uint32_t hash_result_t;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#include <boost/config.hpp>
|
|
23
|
+
#include <cstddef>
|
|
24
|
+
#include <boost/detail/workaround.hpp>
|
|
25
|
+
|
|
26
|
+
namespace gboost {
|
|
27
|
+
template <class T>
|
|
28
|
+
struct hash;
|
|
29
|
+
|
|
30
|
+
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
31
|
+
template <class T>
|
|
32
|
+
void hash_combine(std::hash_result_t& seed, T& v);
|
|
33
|
+
#else
|
|
34
|
+
template <class T>
|
|
35
|
+
void hash_combine(std::hash_result_t& seed, T const& v);
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
template <class It>
|
|
39
|
+
std::hash_result_t hash_range(It, It);
|
|
40
|
+
template <class It>
|
|
41
|
+
void hash_range(std::hash_result_t&, It, It);
|
|
42
|
+
|
|
43
|
+
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
|
44
|
+
template <class T>
|
|
45
|
+
inline std::hash_result_t hash_range(T*, T*);
|
|
46
|
+
template <class T>
|
|
47
|
+
inline void hash_range(std::hash_result_t&, T*, T*);
|
|
48
|
+
#endif
|
|
49
|
+
} // namespace gboost
|
|
50
|
+
|
|
51
|
+
#endif
|