29 #ifndef CDPL_CHEM_BOND_HPP
30 #define CDPL_CHEM_BOND_HPP
Definition of the class CDPL::Chem::AtomContainer.
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.
Definition of the class CDPL::Base::PropertyContainer.
A class providing methods for the storage and lookup of object properties.
Definition: PropertyContainer.hpp:75
A common interface for data-structures that support a random access to stored Chem::Atom instances.
Definition: AtomContainer.hpp:55
ConstAtomIterator getAtomsBegin() const
Returns a constant iterator pointing to the beginning of the stored const Chem::Atom objects.
ConstAtomIterator getAtomsEnd() const
Returns a constant iterator pointing to the end of the stored const Chem::Atom objects.
Atom.
Definition: Atom.hpp:52
Bond.
Definition: Bond.hpp:50
virtual Atom & getEnd()=0
Returns a non-const reference to the end atom of the bond.
virtual const Atom & getAtom(std::size_t idx) const =0
Returns a const reference to the atom at index idx.
virtual std::size_t getIndex() const =0
Returns the index of the bond in its parent molecule.
virtual Atom & getAtom(std::size_t idx)=0
Returns a non-const reference to the atom at index idx.
virtual const Atom & getNeighbor(const Atom &atom) const =0
Returns a const reference to the connected neighbor of the argument atom.
Bond & operator=(const Bond &bond)
Assignment operator that replaces the current set of properties with the properties of bond;.
virtual std::size_t getNumAtoms() const =0
Returns the number of atoms connected by the bond.
virtual Atom & getBegin()=0
Returns a non-const reference to the start atom of the bond.
AtomContainer::ConstAtomIterator ConstAtomIterator
A constant random access iterator used to iterate over the connected atoms.
Definition: Bond.hpp:61
virtual const Molecule & getMolecule() const =0
Returns a const reference to the parent molecule.
virtual const Atom & getBegin() const =0
Returns a const reference to the start atom of the bond.
virtual bool containsAtom(const Atom &atom) const =0
Tells whether the bond is incident to the specified atom.
virtual Molecule & getMolecule()=0
Returns a non-const reference to the parent molecule.
AtomContainer::AtomIterator AtomIterator
A mutable random access iterator used to iterate over the connected atoms.
Definition: Bond.hpp:56
virtual Atom & getNeighbor(const Atom &atom)=0
Returns a non-const reference to the connected neighbor of the argument atom.
virtual const Atom & getEnd() const =0
Returns a const reference to the end atom of the bond.
virtual ~Bond()
Virtual destructor.
Definition: Bond.hpp:187
virtual std::size_t getAtomIndex(const Atom &atom) const =0
Returns the index of the specified atom.
Molecule.
Definition: Molecule.hpp:49
A STL compatible random access iterator for container elements accessible by index.
Definition: IndexedElementIterator.hpp:125
The namespace of the Chemical Data Processing Library.