29 #ifndef CDPL_CHEM_BASICBOND_HPP
30 #define CDPL_CHEM_BASICBOND_HPP
92 using Bond::operator=;
101 void setIndex(std::size_t idx);
Definition of the class CDPL::Chem::Bond.
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Atom.
Definition: Atom.hpp:52
BasicAtom.
Definition: BasicAtom.hpp:54
BasicBond.
Definition: BasicBond.hpp:49
const Atom & getNeighbor(const Atom &atom) const
Returns a const reference to the connected neighbor of the argument atom.
std::size_t getAtomIndex(const Atom &atom) const
Returns the index of the specified atom.
Molecule & getMolecule()
Returns a non-const reference to the parent molecule.
Atom & getAtom(std::size_t idx)
Returns a non-const reference to the atom at index idx.
const Atom & getBegin() const
Returns a const reference to the start atom of the bond.
std::size_t getNumAtoms() const
Returns the number of atoms connected by the bond.
BasicBond & operator=(const BasicBond &bond)
Assignment operator that replaces the current set of properties with the properties of bond;.
Atom & getEnd()
Returns a non-const reference to the end atom of the bond.
bool containsAtom(const Atom &atom) const
Tells whether the bond is incident to the specified atom.
const Molecule & getMolecule() const
Returns a const reference to the parent molecule.
std::size_t getIndex() const
Returns the index of the bond in its parent molecule.
Atom & getNeighbor(const Atom &atom)
Returns a non-const reference to the connected neighbor of the argument atom.
void orderAtoms(const AtomCompareFunction &func)
Orders the stored atoms according to criteria implemented by the provided atom comparison function.
Atom & getBegin()
Returns a non-const reference to the start atom of the bond.
const Atom & getAtom(std::size_t idx) const
Returns a const reference to the atom at index idx.
const Atom & getEnd() const
Returns a const reference to the end atom of the bond.
BasicMolecule.
Definition: BasicMolecule.hpp:54
Bond.
Definition: Bond.hpp:50
Molecule.
Definition: Molecule.hpp:49
std::function< bool(const Chem::Atom &, const Chem::Atom &)> AtomCompareFunction
A generic wrapper class used to store a user-defined atom compare function.
Definition: AtomCompareFunction.hpp:41
The namespace of the Chemical Data Processing Library.