IMP logo

IMP::TripletFunctor 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::TripletModifier

Public Member Functions

void operator() (ParticleTriplet p) const
 TripletFunctor (const TripletModifier *f, DerivativeAccumulator *da)
 TripletFunctor (const TripletModifier *f)
 Store the TripletModifier and the optional DerivativeAccumulator.

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

Generated on Mon Mar 8 23:08:46 2010 for IMP by doxygen 1.5.8