[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] SingletonFunctor



wouldn't it be easier to have transform function after all? :)

On Thu, Aug 6, 2009 at 11:20 PM, Daniel Russel<> wrote:
> Side effect of enforcing that IMP::Objects aren't allocated on the stack
> (since they are ref counted).
>
>
> On Aug 6, 2009, at 11:04 PM, Keren Lasker wrote:
>
>> Daniel -
>> why is it better using:
>> IMP_NEW(core::Transform, tsm,(t));
>> for(Particles::iterator it = ps.begin(); it != ps.end();it++) {
>> tsm->apply(*it);
>> }
>> instead of:
>> std::for_each(ps.begin(),ps.end(),SingletonFunctor(new
>> IMP::core::Transform(t)));
>>
>> I saw you changed it in domino .
>>
>> thanks,
>> Keren.
>> _______________________________________________
>> IMP-dev mailing list
>> 
>> https://salilab.org/mailman/listinfo/imp-dev
>
> _______________________________________________
> IMP-dev mailing list
> 
> https://salilab.org/mailman/listinfo/imp-dev
>