Loading...
Searching...
No Matches
MolInterchange/details.h
Go to the documentation of this file.
//
// Copyright (C) 2018-2022 Greg Landrum
//
// @@ 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.
//
#include <RDGeneral/export.h>
#ifndef RD_MOLINTERCHANGEDETAILS_H_FEB2018
#define RD_MOLINTERCHANGEDETAILS_H_FEB2018
#include <GraphMol/Atom.h>
#include <GraphMol/Bond.h>
#include <GraphMol/StereoGroup.h>
namespace RDKit {
namespace MolInterchange {
constexpr int currentMolJSONVersion = 10;
constexpr int currentRDKitJSONVersion = 11;
constexpr int currentRDKitRepresentationVersion = 2;
constexpr int currentChargeRepresentationVersion = 10;
constexpr int currentQueryRepresentationVersion = 10;
static const std::map<std::string, Atom::ChiralType> chilookup = {
{"unspecified", Atom::CHI_UNSPECIFIED},
{"cw", Atom::CHI_TETRAHEDRAL_CW},
{"ccw", Atom::CHI_TETRAHEDRAL_CCW},
{"other", Atom::CHI_OTHER}};
static const std::map<Atom::ChiralType, std::string> inv_chilookup = {
{Atom::CHI_UNSPECIFIED, "unspecified"},
{Atom::CHI_TETRAHEDRAL_CW, "cw"},
{Atom::CHI_TETRAHEDRAL_CCW, "ccw"},
{Atom::CHI_OTHER, "other"}};
static const std::map<unsigned int, Bond::BondType> bolookup = {
{0, Bond::ZERO}, {1, Bond::SINGLE}, {2, Bond::DOUBLE},
{3, Bond::TRIPLE}, {4, Bond::QUADRUPLE}, {17, Bond::DATIVE}};
static const std::map<Bond::BondType, unsigned int> inv_bolookup = {
{Bond::ZERO, 0}, {Bond::SINGLE, 1}, {Bond::DOUBLE, 2},
{Bond::TRIPLE, 3}, {Bond::QUADRUPLE, 4}, {Bond::DATIVE, 17}};
static const std::map<std::string, Bond::BondStereo> stereoBondlookup = {
{"unspecified", Bond::STEREONONE},
{"cis", Bond::STEREOCIS},
{"trans", Bond::STEREOTRANS},
{"either", Bond::STEREOANY}};
static const std::map<Bond::BondStereo, std::string> inv_stereoBondlookup = {
{Bond::STEREONONE, "unspecified"}, {Bond::STEREOCIS, "cis"},
{Bond::STEREOTRANS, "trans"}, {Bond::STEREOZ, "cis"},
{Bond::STEREOE, "trans"}, {Bond::STEREOANY, "either"}};
static const std::map<std::string, StereoGroupType> stereoGrouplookup = {
{"abs", StereoGroupType::STEREO_ABSOLUTE},
{"and", StereoGroupType::STEREO_AND},
{"or", StereoGroupType::STEREO_OR}};
static const std::map<StereoGroupType, std::string> inv_stereoGrouplookup = {
{StereoGroupType::STEREO_ABSOLUTE, "abs"},
{StereoGroupType::STEREO_AND, "and"},
{StereoGroupType::STEREO_OR, "or"}};
} // namespace MolInterchange
} // namespace RDKit
#endif
Atom.h
Defines the Atom class and associated typedefs.
Bond.h
StereoGroup.h
Defines the class StereoGroup which stores relationships between the absolute configurations of atoms...
RDKit::Atom::CHI_OTHER
@ CHI_OTHER
some unrecognized type of chirality
Definition Atom.h:106
RDKit::Atom::CHI_TETRAHEDRAL_CW
@ CHI_TETRAHEDRAL_CW
tetrahedral: clockwise rotation (SMILES @@)
Definition Atom.h:103
RDKit::Atom::CHI_UNSPECIFIED
@ CHI_UNSPECIFIED
chirality that hasn't been specified
Definition Atom.h:102
RDKit::Atom::CHI_TETRAHEDRAL_CCW
@ CHI_TETRAHEDRAL_CCW
tetrahedral: counter-clockwise rotation (SMILES
Definition Atom.h:104
RDKit::Bond::ZERO
@ ZERO
Zero-order bond (from.
Definition Bond.h:78
RDKit::Bond::QUADRUPLE
@ QUADRUPLE
Definition Bond.h:61
RDKit::Bond::DOUBLE
@ DOUBLE
Definition Bond.h:59
RDKit::Bond::TRIPLE
@ TRIPLE
Definition Bond.h:60
RDKit::Bond::DATIVE
@ DATIVE
standard two-electron dative
Definition Bond.h:74
RDKit::Bond::SINGLE
@ SINGLE
Definition Bond.h:58
RDKit::Bond::STEREOTRANS
@ STEREOTRANS
Definition Bond.h:103
RDKit::Bond::STEREOE
@ STEREOE
Definition Bond.h:101
RDKit::Bond::STEREOZ
@ STEREOZ
Definition Bond.h:100
RDKit::Bond::STEREOCIS
@ STEREOCIS
Definition Bond.h:102
RDKit::Bond::STEREONONE
@ STEREONONE
Definition Bond.h:96
RDKit::Bond::STEREOANY
@ STEREOANY
Definition Bond.h:97
export.h
RDKit::MolInterchange::inv_chilookup
static const std::map< Atom::ChiralType, std::string > inv_chilookup
Definition MolInterchange/details.h:29
RDKit::MolInterchange::currentMolJSONVersion
constexpr int currentMolJSONVersion
Definition MolInterchange/details.h:18
RDKit::MolInterchange::inv_bolookup
static const std::map< Bond::BondType, unsigned int > inv_bolookup
Definition MolInterchange/details.h:38
RDKit::MolInterchange::currentRDKitRepresentationVersion
constexpr int currentRDKitRepresentationVersion
Definition MolInterchange/details.h:20
RDKit::MolInterchange::inv_stereoGrouplookup
static const std::map< StereoGroupType, std::string > inv_stereoGrouplookup
Definition MolInterchange/details.h:56
RDKit::MolInterchange::currentChargeRepresentationVersion
constexpr int currentChargeRepresentationVersion
Definition MolInterchange/details.h:21
RDKit::MolInterchange::chilookup
static const std::map< std::string, Atom::ChiralType > chilookup
Definition MolInterchange/details.h:24
RDKit::MolInterchange::currentQueryRepresentationVersion
constexpr int currentQueryRepresentationVersion
Definition MolInterchange/details.h:22
RDKit::MolInterchange::stereoBondlookup
static const std::map< std::string, Bond::BondStereo > stereoBondlookup
Definition MolInterchange/details.h:42
RDKit::MolInterchange::currentRDKitJSONVersion
constexpr int currentRDKitJSONVersion
Definition MolInterchange/details.h:19
RDKit::MolInterchange::bolookup
static const std::map< unsigned int, Bond::BondType > bolookup
Definition MolInterchange/details.h:35
RDKit::MolInterchange::inv_stereoBondlookup
static const std::map< Bond::BondStereo, std::string > inv_stereoBondlookup
Definition MolInterchange/details.h:47
RDKit::MolInterchange::stereoGrouplookup
static const std::map< std::string, StereoGroupType > stereoGrouplookup
Definition MolInterchange/details.h:52
RDKit
Std stuff.
Definition Abbreviations.h:19
RDKit::StereoGroupType::STEREO_OR
@ STEREO_OR
RDKit::StereoGroupType::STEREO_AND
@ STEREO_AND
RDKit::StereoGroupType::STEREO_ABSOLUTE
@ STEREO_ABSOLUTE