|
AvogadroLibs 1.103.0
|
Public Types | |
| using | MoleculeType = Molecule_T |
| using | AtomType = typename Molecule_T::AtomType |
Public Member Functions | |
| BondTemplate ()=default | |
| BondTemplate (MoleculeType *m, Index i) | |
| bool | operator== (const BondTemplate< MoleculeType > &other) const |
| bool | operator!= (const BondTemplate< MoleculeType > &other) const |
| BondTemplate< MoleculeType > & | operator++ () |
| BondTemplate< MoleculeType > | operator++ (int) |
| BondTemplate< MoleculeType > & | operator-- () |
| BondTemplate< MoleculeType > | operator-- (int) |
| bool | isValid () const |
| MoleculeType * | molecule () const |
| Index | index () const |
| AtomType | getOtherAtom (Index index) const |
| AtomType | getOtherAtom (AtomType atom) const |
| Real | length () const |
| std::string | label () const |
| AtomType | atom1 () const |
| AtomType | atom2 () const |
| void | setOrder (unsigned char o) |
| unsigned char | order () const |
|
default |
Creates a new, invalid bond object.
| BondTemplate | ( | MoleculeType * | m, |
| Index | i ) |
Creates a bond object representing a bond at index i in molecule m.
| bool operator== | ( | const BondTemplate< MoleculeType > & | other | ) | const |
| bool operator!= | ( | const BondTemplate< MoleculeType > & | other | ) | const |
| BondTemplate< Molecule_T > & operator++ | ( | ) |
| BondTemplate< Molecule_T > operator++ | ( | int | ) |
| BondTemplate< Molecule_T > & operator-- | ( | ) |
| BondTemplate< Molecule_T > operator-- | ( | int | ) |
| bool isValid | ( | ) | const |
| BondTemplate< Molecule_T >::MoleculeType * molecule | ( | ) | const |
| Index index | ( | ) | const |
| BondTemplate< Molecule_T >::AtomType atom1 | ( | ) | const |
| BondTemplate< Molecule_T >::AtomType atom2 | ( | ) | const |
| BondTemplate< Molecule_T >::AtomType getOtherAtom | ( | Index | index | ) | const |
| AtomType getOtherAtom | ( | AtomType | atom | ) | const |
| void setOrder | ( | unsigned char | o | ) |
The bond's order (single = 1, double = 2, etc.)
| unsigned char order | ( | ) | const |
The bond's order (single = 1, double = 2, etc.)
| Real length | ( | ) | const |
The length of the bond or 0.0 if the bond is invalid.
| std::string label | ( | ) | const |
A label for the bond (if any)