RDKit
Open-source cheminformatics and machine learning.
MolInterchange/details.h
Go to the documentation of this file.
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 #include <RDGeneral/export.h>
11 #ifndef RD_MOLINTERCHANGEDETAILS_H_FEB2018
12 #define RD_MOLINTERCHANGEDETAILS_H_FEB2018
13 #include <GraphMol/Atom.h>
14 #include <GraphMol/Bond.h>
15 namespace RDKit {
16 namespace MolInterchange {
17 static const int currentMolJSONVersion = 10;
18 static const int currentRDKitRepresentationVersion = 1;
19 static const int currentChargeRepresentationVersion = 10;
20 
21 static const std::map<std::string, Atom::ChiralType> chilookup = {
22  {"unspecified", Atom::CHI_UNSPECIFIED},
25  {"other", Atom::CHI_OTHER}};
26 static const std::map<Atom::ChiralType, std::string> inv_chilookup = {
27  {Atom::CHI_UNSPECIFIED, "unspecified"},
30  {Atom::CHI_OTHER, "other"}};
31 
32 static const std::map<unsigned int, Bond::BondType> bolookup = {
33  {0, Bond::ZERO}, {1, Bond::SINGLE}, {2, Bond::DOUBLE}, {3, Bond::TRIPLE}};
34 static const std::map<Bond::BondType, unsigned int> inv_bolookup = {
35  {Bond::ZERO, 0}, {Bond::SINGLE, 1}, {Bond::DOUBLE, 2}, {Bond::TRIPLE, 3}};
36 
37 static const std::map<std::string, Bond::BondStereo> stereolookup = {
38  {"unspecified", Bond::STEREONONE},
39  {"cis", Bond::STEREOCIS},
40  {"trans", Bond::STEREOTRANS},
41  {"either", Bond::STEREOANY}};
42 static const std::map<Bond::BondStereo, std::string> inv_stereolookup = {
43  {Bond::STEREONONE, "unspecified"}, {Bond::STEREOCIS, "cis"},
44  {Bond::STEREOTRANS, "trans"}, {Bond::STEREOZ, "cis"},
45  {Bond::STEREOE, "trans"}, {Bond::STEREOANY, "either"}};
46 }
47 }
48 #endif
static const int currentMolJSONVersion
static const std::map< Atom::ChiralType, std::string > inv_chilookup
static const std::map< unsigned int, Bond::BondType > bolookup
static const int currentRDKitRepresentationVersion
static const std::map< std::string, Bond::BondStereo > stereolookup
some unrecognized type of chirality
Definition: Atom.h:96
tetrahedral: clockwise rotation (SMILES @@)
Definition: Atom.h:93
static const std::map< std::string, Atom::ChiralType > chilookup
static const std::map< Bond::BondType, unsigned int > inv_bolookup
Std stuff.
Definition: Atom.h:30
static const std::map< Bond::BondStereo, std::string > inv_stereolookup
static const int currentChargeRepresentationVersion
Zero-order bond (from.
Definition: Bond.h:78
tetrahedral: counter-clockwise rotation (SMILES
Definition: Atom.h:94
Defines the Atom class and associated typedefs.
chirality that hasn&#39;t been specified
Definition: Atom.h:92