|
AvogadroLibs 2.1.0-20261111
|
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 |
| void | setProperty (const std::string &name, double value) |
| void | setProperty (const std::string &name, int value) |
| void | setProperty (const std::string &name, const std::string &value) |
| void | setProperty (const std::string &name, const MatrixX &value) |
| template<typename T> | |
| std::optional< T > | property (const std::string &name) 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)
| void setProperty | ( | const std::string & | name, |
| double | value ) |
Custom property access. Setters are overloaded by value type. The template getter returns std::nullopt if the property is missing or if the requested type does not match the stored type. int and double values convert to string automatically.
| void setProperty | ( | const std::string & | name, |
| int | value ) |
Custom property access. Setters are overloaded by value type. The template getter returns std::nullopt if the property is missing or if the requested type does not match the stored type. int and double values convert to string automatically.
| void setProperty | ( | const std::string & | name, |
| const std::string & | value ) |
Custom property access. Setters are overloaded by value type. The template getter returns std::nullopt if the property is missing or if the requested type does not match the stored type. int and double values convert to string automatically.
| void setProperty | ( | const std::string & | name, |
| const MatrixX & | value ) |
Custom property access. Setters are overloaded by value type. The template getter returns std::nullopt if the property is missing or if the requested type does not match the stored type. int and double values convert to string automatically.
| std::optional< T > property | ( | const std::string & | name | ) | const |
Custom property access. Setters are overloaded by value type. The template getter returns std::nullopt if the property is missing or if the requested type does not match the stored type. int and double values convert to string automatically.