00001 #ifndef ATLFAST_SIMPLEASSOCSDISPATCHER_H 00002 #define ATLFAST_SIMPLEASSOCSDISPATCHER_H 00006 #ifndef ATLFAST_IAOO_H 00007 #include "AtlfastEvent/IAOO.h" 00008 #endif 00009 00010 #ifndef STD_ALGORITHM_H 00011 #include <algorithm> 00012 #define STD_ALGORITHM_H 00013 #endif 00014 00015 namespace Atlfast{ 00016 template<class Visitor> 00017 Visitor SimpleAssocsDispatcher(const IAOO* iaoo, Visitor visitor){ 00018 visitor = std::for_each(iaoo->begin(), iaoo->end(), visitor); 00019 return visitor; 00020 } 00021 } 00022 #endif