Chemical Descriptors Library: exclude_h_bond_filter
|
Bond Functors
|
|
exclude_h_bond_filter
Object type
Unary predicate
Description
The predicate returns true if the bond is not a hydrogen bond.
This predicate (actually, its utility ftor) is to be used for the
get_filtered_graph() function of the molecule: it filters the hydrogen bonds.
Prototype
template <class Molecule>
struct exclude_h_bond_filter : std::unary_function<typename Molecule::edge_descriptor, bool> {
exclude_h_bond_filter(const Molecule& m_) : mol(&m_), h_bond(BondT::h_bond()) {}
template <class Edge>
bool operator()(const Edge& edge) const;
};
And its utility functor
struct exclude_h_bond_filter_factory {
template <class Molecule>
exclude_h_bond_filter<Molecule>
make_filter(const Molecule& m) const {
return exclude_h_bond_filter<Molecule>(m);
}
};
Associated types
None
Definition
#include <morpho/cdl/bond/functors/bond_filters.hpp>
Preconditions
Complexity
Example
References
Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006