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)));
particles is a temporary value) or
map(SingletonFunctor(Transform(tr)), particles)
Public Member Functions | |
| void | operator() (ParticleQuad p) const |
| QuadFunctor (const QuadModifier *f, DerivativeAccumulator *da) | |
| QuadFunctor (const QuadModifier *f) | |
| Store the QuadModifier and the optional DerivativeAccumulator. | |