25 #ifndef WAPPLYCOMBINER_H
26 #define WAPPLYCOMBINER_H
33 #include <boost/shared_ptr.hpp>
35 #include "../WModule.h"
36 #include "../WModuleCombinerTypes.h"
37 #include "WModuleOneToOneCombiner.h"
39 #include "../WModuleInputConnector.h"
40 #include "../WModuleOutputConnector.h"
109 template <
typename T >
113 WCombinerTypes::WOneToOneCombiners lComp;
122 if( ( pcons.size() == 0 ) || ( cons.size() == 0 ) )
128 for( WModule::OutputConnectorList::const_iterator outIter = cons.begin(); outIter != cons.end(); ++outIter )
131 for( WModule::InputConnectorList::const_iterator inIter = pcons.begin(); inIter != pcons.end(); ++inIter )
134 if( ( *outIter )->connectable( *inIter ) && ( *inIter )->connectable( *outIter ) )
137 lComp.push_back( boost::shared_ptr< WApplyCombiner >(
138 new T( module1, ( *outIter )->getName(), module2, ( *inIter )->getName() ) )
153 #endif // WAPPLYCOMBINER_H