15 #include <boost/tuple/tuple.hpp> 16 #include <boost/dynamic_bitset.hpp> 114 std::vector<AtomColors> &colors,
115 const std::vector<unsigned int> &ranks,
117 const boost::dynamic_bitset<> *bondsInPlay = 0,
118 const std::vector<std::string> *bondSymbols = 0,
119 bool doIsomericSmiles =
false,
120 bool doRandom =
false);
const int MAX_CYCLES
used in the canonical traversal code
int number
stores our number (relevant for bonds and ring closures)
MolStackElem(Atom *at)
construct an Atom node
AtomColors
used in traversals of the molecule
MolStackElem(Bond *bond, int idx)
construct a bond node
RDKIT_GRAPHMOL_EXPORT void canonicalizeFragment(ROMol &mol, int atomIdx, std::vector< AtomColors > &colors, const std::vector< unsigned int > &ranks, MolStack &molStack, const boost::dynamic_bitset<> *bondsInPlay=0, const std::vector< std::string > *bondSymbols=0, bool doIsomericSmiles=false, bool doRandom=false)
constructs the canonical traversal order for a molecular fragment
used to store components in the molecular stack
boost::tuple< int, int, Bond * > PossibleType
used to represent possible branches from an atom
these are the actual elements in the molecular stack
MolStackUnion obj
holds our pointer (if appropriate)
#define RDKIT_GRAPHMOL_EXPORT
visited, but not finished
MolStackTypes type
stores the type of node
MolStackTypes
used to indicate types of entries in the molecular stack:
MolStackElem(const char *chr, int idx)
construct for a branch opening or closing
class for representing a bond
const int MAX_BONDTYPE
used in the canonical traversal code
MolStackElem(int idx)
construct for a ring closure
const int MAX_NATOMS
used in the canonical traversal code
std::vector< MolStackElem > MolStack
The class for representing atoms.