Chemical Descriptors Library: exclude_implicit_h_bond_filter
Bond Functors

exclude_implicit_h_bond_filter

Object type

Unary predicate

Description

The predicate returns true if the bond is not an implicit hydrogen bond.
This predicate (actually, its utility ftor) is to be used for the get_filtered_graph() function of the molecule: it filters the implicit hydrogen bonds added by CDL.

Prototype

  template <class Molecule>
  struct exclude_implicit_h_bond_filter : std::unary_function<typename Molecule::edge_descriptor, bool> {

    exclude_implicit_h_bond_filter(const Molecule& m_);

    template <class Edge>
    bool operator()(const Edge& edge) const;

  };
And its utility functor
  struct exclude_impl_h_bond_filt_factory {
    template <class Molecule>
    exclude_implicit_h_bond_filter<Molecule> make_filter(const Molecule& m) const {
      return exclude_implicit_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