Chemical Descriptors Library: exclude_h_atom_filter
Atom Functors

exclude_h_atom_filter

Object type

Unary predicate

Description

The predicate returns true if the vertex is not a hydrogen.
This predicate (actually, its utility ftor) is to be used for the get_filtered_graph() function of the molecule: it filters the hydrogen atoms.

Prototype

  template <class Molecule>
  struct exclude_h_atom_filter : std::unary_function<typename Molecule::vertex_descriptor, bool> {

    exclude_h_atom_filter(const Molecule& m_) : mol(&m_), h_anum(1) {}

    template <class Vertex>
    bool operator()(const Vertex vrtx) const {

  };
And the utility functor :
  struct exclude_h_atom_filter_factory {
    template <class Molecule>
    exclude_h_atom_filter<Molecule> make_filter(const Molecule& m) const {
      return exclude_h_atom_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