Chemical Descriptors Library: num_hydrogens()
|
Number of Hydrogens
|
|
num_hydrogens
Prototype
Its an overloaded name :
template <class Molecule>
size_t num_hydrogens(typename Molecule::const_atom_iterator ai,const Molecule& m);
template <class Molecule>
size_t num_hydrogens(typename Molecule::vertex_iterator vi, const Molecule& m);
Arguments
Parameter | Description | Models |
ai or vi |
atom iterator or vertex iterator |
const_atom_iterator or vertex_iterator |
m |
The molecule |
CDL's molecule |
Description
Returns the number of total hydrogens attached to an atom.
Definition
#include <morpho/cdl/atom/algorithms/atom_algorithms.hpp>
Preconditions
Complexity
References
Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006