![]() |
RDKit
Open-source cheminformatics and machine learning.
|
Captures bond-level information for macro bonds. More...
#include <MacroBondInfo.h>
Classes | |
| struct | BondInfo |
| One macro-bond connection in the owning graph bond's orientation. More... | |
Public Member Functions | |
| virtual | ~MacroBondInfo ()=default |
| MacroBondInfo ()=default | |
| MacroBondInfo (int beginAttachPt, int endAttachPt, unsigned int bondType) | |
| Construct macro bond information with one macro-bond connection. | |
| MacroBondInfo (const MacroBondInfo &other)=default | |
| void | addBond (int beginAttachPt, int endAttachPt, unsigned int bondType) |
| Adds a macro-bond connection. | |
| std::size_t | getNumBonds () const |
| Returns the number of macro-bond connections. | |
| const BondInfo & | getBond (unsigned int idx) const |
| Returns a macro-bond connection by index. | |
| const std::vector< BondInfo > & | getBonds () const |
| Returns all macro-bond connections. | |
| virtual std::unique_ptr< MacroBondInfo > | copy () const |
| Returns a copy of this macro bond information. | |
Captures bond-level information for macro bonds.
Macro bond information is owned by a Bond. Since macro molecules may have multiple macro bonds between the same pair of atoms, this stores one entry for each macro-bond connection represented by the owning graph bond. Use this to retrieve macro bond types; the owning graph bond's bond type is not the macro bond type.
Definition at line 33 of file MacroBondInfo.h.
|
virtualdefault |
|
default |
Referenced by MacroBondInfo().
|
inline |
Construct macro bond information with one macro-bond connection.
| beginAttachPt | the attachment point on the begin atom |
| endAttachPt | the attachment point on the end atom |
| bondType | the numeric Bond::BondType value |
Definition at line 57 of file MacroBondInfo.h.
References addBond().
|
default |
References MacroBondInfo().
|
inline |
Adds a macro-bond connection.
| beginAttachPt | the attachment point on the begin atom |
| endAttachPt | the attachment point on the end atom |
| bondType | the numeric Bond::BondType value |
Definition at line 68 of file MacroBondInfo.h.
Referenced by MacroBondInfo().
|
inlinevirtual |
Returns a copy of this macro bond information.
Definition at line 87 of file MacroBondInfo.h.
|
inline |
Returns a macro-bond connection by index.
| idx | the index of the macro-bond connection |
Definition at line 81 of file MacroBondInfo.h.
|
inline |
Returns all macro-bond connections.
Definition at line 84 of file MacroBondInfo.h.
|
inline |
Returns the number of macro-bond connections.
Definition at line 73 of file MacroBondInfo.h.