IMP logo
Public Member Functions

IMP::PairFunctor Class Reference


Detailed Description

Create a functor which can be used with build in C++ and python commands.

For example, you can do

    std::for_each(particles.begin(), particles.end(),
                  IMP::SingletonFunctor(new IMP::core::Transform(tr)));
    IMP::for_each(particles,
                  IMP::SingletonFunctor(new IMP::core::Transform(tr)));

in C++ (the second can be used with when particles is a temporary value) or

    map(SingletonFunctor(Transform(tr)), particles)
    

in python.

See also:
IMP::PairModifier

Public Member Functions

 PairFunctor (const PairModifier *f)
 Store the PairModifier and the optional DerivativeAccumulator.
 PairFunctor (const PairModifier *f, DerivativeAccumulator *da)
void operator() (ParticlePair p) const

The documentation for this class was generated from the following file:

Generated on Thu Mar 24 2011 02:01:44 for IMP by doxygen 1.7.3