16#ifndef RD_MACROBONDINFO_H
17#define RD_MACROBONDINFO_H
57 MacroBondInfo(
int beginAttachPt,
int endAttachPt,
unsigned int bondType) {
58 addBond(beginAttachPt, endAttachPt, bondType);
68 void addBond(
int beginAttachPt,
int endAttachPt,
unsigned int bondType) {
69 d_bonds.push_back({beginAttachPt, endAttachPt, bondType});
84 const std::vector<BondInfo> &
getBonds()
const {
return d_bonds; }
87 virtual std::unique_ptr<MacroBondInfo>
copy()
const {
88 return std::make_unique<MacroBondInfo>(*
this);
92 std::vector<BondInfo> d_bonds;
const std::vector< BondInfo > & getBonds() const
Returns all macro-bond connections.
std::size_t getNumBonds() const
Returns the number of macro-bond connections.
MacroBondInfo(const MacroBondInfo &other)=default
MacroBondInfo(int beginAttachPt, int endAttachPt, unsigned int bondType)
Construct macro bond information with one macro-bond connection.
const BondInfo & getBond(unsigned int idx) const
Returns a macro-bond connection by index.
virtual ~MacroBondInfo()=default
virtual std::unique_ptr< MacroBondInfo > copy() const
Returns a copy of this macro bond information.
void addBond(int beginAttachPt, int endAttachPt, unsigned int bondType)
Adds a macro-bond connection.
#define RDKIT_GRAPHMOL_EXPORT
One macro-bond connection in the owning graph bond's orientation.
unsigned int bondType
Stored as the numeric Bond::BondType value to avoid a Bond.h dependency.
int endAttachPt
The attachment point on the end atom.
int beginAttachPt
The attachment point on the begin atom.