RDKit
Open-source cheminformatics and machine learning.
Edge.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 "Descriptor.h"
14 
15 namespace RDKit {
16 
17 class Bond;
18 
19 namespace CIPLabeler {
20 
21 class Node;
22 
23 class Edge {
24 
25 public:
26  Edge() = delete;
27  Edge(const Edge &) = delete;
28  Edge &operator=(const Edge &) = delete;
29 
30  Edge(Node *beg, Node *end, Bond *bond);
31 
32  Node *getOther(const Node *node) const;
33 
34  Node *getBeg() const;
35 
36  Node *getEnd() const;
37 
38  Bond *getBond() const;
39 
40  Descriptor getAux() const;
41 
42  bool isBeg(const Node *node) const;
43 
44  bool isEnd(const Node *node) const;
45 
46  void setAux(Descriptor aux);
47 
48  void flip();
49 
50 private:
51  Node *dp_beg;
52  Node *dp_end;
53  Bond *dp_bond;
55 };
56 
57 } // namespace CIPLabeler
58 } // namespace RDKit
class for representing a bond
Definition: Bond.h:47
Edge & operator=(const Edge &)=delete
Node * getOther(const Node *node) const
bool isEnd(const Node *node) const
void setAux(Descriptor aux)
Node * getBeg() const
Edge(const Edge &)=delete
Edge(Node *beg, Node *end, Bond *bond)
bool isBeg(const Node *node) const
Descriptor getAux() const
Node * getEnd() const
Bond * getBond() const
Std stuff.
Definition: Abbreviations.h:17