#include #include "MatchedObjectProperty.hpp" #include "PhysicsObject.hpp" #include "Exceptions.hpp" using namespace std; ClassImp(moan::MatchedObjectProperty) namespace moan { void MatchedObjectProperty::doRun(const std::list &data) { for(list::const_iterator i=data.begin();i!=data.end();++i) { const list &m=(*i)->matched(_match); int count=0; for(list::const_iterator j=m.begin(); j!=m.end(),(count<_max || _max==0);++j,++count) { addValue(_func(*j)); } } } } // end namespace moan