Chemical Descriptors Library: exclude_implicit_h_filter
|
Atom Functors
|
|
exclude_implicit_h_filter
Object type
Unary predicate
Description
The predicate returns true if the vertex is an implicit hydrogen added by CDL.
This predicate (actually, its utility ftor) is to be used for the
get_filtered_graph() function of the molecule: it filters the
implicit hydrogens added by CDL.
Prototype
template <class Molecule>
struct exclude_implicit_h_filter : std::unary_function<typename Molecule::vertex_descriptor, bool> {
exclude_implicit_h_filter(const Molecule& m_);
template <class Vertex>
bool operator()(const Vertex vrtx) const;
};
And the utility functor :
struct exclude_implicit_h_filter_factory {
template <class Molecule>
exclude_implicit_h_filter<Molecule>
make_filter(const Molecule& m) const {
return exclude_implicit_h_filter<Molecule>(m);
}
};
Associated types
None
Definition
#include <morpho/cdl/atom/functors/atom_filters.hpp>
Preconditions
Complexity
Example
References
Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006