RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
AtropisomerBond.h
Go to the documentation of this file.
1//
2//
3// Copyright (C) 2020 Schrödinger, LLC
4//
5// @@ All Rights Reserved @@
6// This file is part of the RDKit.
7// The contents are covered by the terms of the BSD license
8// which is included in the file license.txt, found at the root
9// of the RDKit source tree.
10//
11#pragma once
12
13#include "Configuration.h"
14
15namespace RDKit {
16namespace CIPLabeler {
17
19 public:
20 AtropisomerBond() = delete;
21
22 AtropisomerBond(const CIPMol &mol, Bond *bond, Atom *startAtom, Atom *endAtom,
24
25 void setPrimaryLabel(Descriptor desc) override;
26
27 bool hasPrimaryLabel() const override;
28
29 void resetPrimaryLabel() const override;
30
31 Descriptor label(const Rules &comp) override;
32
33 Descriptor label(Node *root1, Digraph &digraph, const Rules &comp) override;
34
35 private:
36 Bond *dp_bond;
37
38 // bond->getStereo() can return both E/Z or CIS/TRANS,
39 // so we cache CIS/TRANS we found.
40 Bond::BondStereo d_cfg;
41
42 std::vector<unsigned int> d_ranked_anchors;
43};
44
45} // namespace CIPLabeler
46} // namespace RDKit
The class for representing atoms.
Definition Atom.h:74
class for representing a bond
Definition Bond.h:46
BondStereo
the nature of the bond's stereochem (for cis/trans)
Definition Bond.h:94
Descriptor label(const Rules &comp) override
void setPrimaryLabel(Descriptor desc) override
Descriptor label(Node *root1, Digraph &digraph, const Rules &comp) override
void resetPrimaryLabel() const override
bool hasPrimaryLabel() const override
AtropisomerBond(const CIPMol &mol, Bond *bond, Atom *startAtom, Atom *endAtom, Bond::BondStereo cfg)
Std stuff.