Classes | |
| union | MolStackUnion |
| used to store components in the molecular stack More... | |
| class | MolStackElem |
| these are the actual elements in the molecular stack More... | |
Typedefs | |
| typedef std::vector< MolStackElem > | MolStack |
| typedef std::pair< int, std::pair< int, RDKit::Bond * > > | PossibleType |
| used to represent possible branches from an atom | |
Enumerations | |
| enum | AtomColors { WHITE_NODE = 0, GREY_NODE, BLACK_NODE } |
| used in traversals of the molecule More... | |
| enum | MolStackTypes { MOL_STACK_ATOM = 0, MOL_STACK_BOND, MOL_STACK_RING, MOL_STACK_BRANCH_OPEN, MOL_STACK_BRANCH_CLOSE } |
| used to indicate types of entries in the molecular stack: More... | |
Functions | |
| PossibleType | makePossible (int rank, int atomIdx, RDKit::Bond *bond) |
| returns a PossibleType | |
| int | _possibleComp (const PossibleType &arg1, const PossibleType &arg2) |
| compare two PossibleTypes | |
| void | canonicalizeFragment (RDKit::ROMol &mol, int atomIdx, std::vector< AtomColors > &colors, std::vector< int > &ranks, MolStack &molStack) |
| constructs the canonical traversal order for a molecular fragment | |
Variables | |
| const int | MAX_NATOMS = 1000 |
| used in the canonical traversal code | |
| const int | MAX_CYCLES = 50 |
| used in the canonical traversal code | |
| typedef std::vector<MolStackElem> Canon::MolStack |
| typedef std::pair< int, std::pair< int, RDKit::Bond * > > Canon::PossibleType |
| enum Canon::AtomColors |
| enum Canon::MolStackTypes |
| int Canon::_possibleComp | ( | const PossibleType & | arg1, | |
| const PossibleType & | arg2 | |||
| ) |
compare two PossibleTypes
| void Canon::canonicalizeFragment | ( | RDKit::ROMol & | mol, | |
| int | atomIdx, | |||
| std::vector< AtomColors > & | colors, | |||
| std::vector< int > & | ranks, | |||
| MolStack & | molStack | |||
| ) |
constructs the canonical traversal order for a molecular fragment
| mol | the ROMol we're working on | |
| atomIdx | the index of the atom to start the traversal from | |
| colors | the traversal status of each atom in mol | |
| ranks | the assigned rank of each atom in mol | |
| molStack | the current traversal stack (used to return the results) |
mol will, in general, be modified by this operation as bond directions and the like are changed to fit the canonical traversal order | PossibleType Canon::makePossible | ( | int | rank, | |
| int | atomIdx, | |||
| RDKit::Bond * | bond | |||
| ) |
returns a PossibleType
| const int Canon::MAX_CYCLES = 50 |
| const int Canon::MAX_NATOMS = 1000 |
1.5.5