RDKit
Open-source cheminformatics and machine learning.
Toggle main menu visibility
Loading...
Searching...
No Matches
Sp2Bond.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
15
namespace
RDKit
{
16
namespace
CIPLabeler
{
17
18
class
Sp2Bond
:
public
Configuration
{
19
public
:
20
Sp2Bond
() =
delete
;
21
22
Sp2Bond
(
const
CIPMol
&mol,
Bond
*bond,
Atom
*startAtom,
Atom
*endAtom,
23
Bond::BondStereo
cfg);
24
25
void
setPrimaryLabel
(
Descriptor
desc)
override
;
26
27
bool
hasPrimaryLabel
()
const override
;
28
29
Descriptor
label
(
const
Rules
&comp)
override
;
30
31
Descriptor
label
(
Node
*root1,
Digraph
&digraph,
const
Rules
&comp)
override
;
32
33
private
:
34
Bond
*dp_bond;
35
36
// bond->getStereo() can return both E/Z or CIS/TRANS,
37
// so we cache CIS/TRANS we found.
38
Bond::BondStereo
d_cfg;
39
40
std::vector<unsigned int> d_ranked_anchors;
41
};
42
43
}
// namespace CIPLabeler
44
}
// namespace RDKit
Configuration.h
RDKit::Atom
The class for representing atoms.
Definition
Atom.h:75
RDKit::Bond
class for representing a bond
Definition
Bond.h:48
RDKit::Bond::BondStereo
BondStereo
the nature of the bond's stereochem (for cis/trans)
Definition
Bond.h:96
RDKit::CIPLabeler::CIPMol
Definition
CIPMol.h:66
RDKit::CIPLabeler::Configuration::Configuration
Configuration()=delete
RDKit::CIPLabeler::Digraph
Definition
Digraph.h:49
RDKit::CIPLabeler::Node
Definition
Node.h:28
RDKit::CIPLabeler::Rules
Definition
Rules.h:22
RDKit::CIPLabeler::Sp2Bond::setPrimaryLabel
void setPrimaryLabel(Descriptor desc) override
RDKit::CIPLabeler::Sp2Bond::hasPrimaryLabel
bool hasPrimaryLabel() const override
RDKit::CIPLabeler::Sp2Bond::label
Descriptor label(Node *root1, Digraph &digraph, const Rules &comp) override
RDKit::CIPLabeler::Sp2Bond::Sp2Bond
Sp2Bond()=delete
RDKit::CIPLabeler::Sp2Bond::Sp2Bond
Sp2Bond(const CIPMol &mol, Bond *bond, Atom *startAtom, Atom *endAtom, Bond::BondStereo cfg)
RDKit::CIPLabeler::Sp2Bond::label
Descriptor label(const Rules &comp) override
RDKit::CIPLabeler
Definition
CIPLabeler.h:27
RDKit::CIPLabeler::Descriptor
Descriptor
Definition
Descriptor.h:26
RDKit
Std stuff.
Definition
Abbreviations.h:19
GraphMol
CIPLabeler
configs
Sp2Bond.h
Generated on
for RDKit by
1.17.0