Chemical Descriptors Library: vertex_property_equals
Molecule Functors

vertex_property_equals

Object type

Unary Predicate

Description

The predicate returns true is the property of a vertex equals a property passed to the constructor of the predicate.

Prototype

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

    vertex_property_equals(const value_type val_, const Molecule& m_) : value(val_), mol(m_) {}

    bool operator()(const typename Molecule::vertex_descriptor v) const;

  };

Associated types

type nameDescriptionmember type
value_type The type of the atom's property public

Definition

#include <morpho/cdl/molecule/functors/mol_ftors.hpp>

Preconditions

PropSelector is a valid atomic property selector.

Complexity

Constant

Example



References



Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006