SAGA Adaptor CPI v.1.0
bulk_strategy_try_exec.hpp
Go to the documentation of this file.
00001 //  Copyright (c) 2005 Stephan Hirmer (shirmer@cct.lsu.edu)
00002 // 
00003 //  Distributed under the Boost Software License, Version 1.0. (See accompanying 
00004 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00005 
00006 #ifndef BULK_STRATEGY_TRY_EXEC_HPP
00007 #define BULK_STRATEGY_TRY_EXEC_HPP
00008 
00009 #include <saga/impl/config.hpp>
00010 #include <saga/impl/engine/task.hpp>
00011 #include <saga/impl/engine/bulk_analyser.hpp>
00012 
00013 #include <saga/saga/adaptors/bulk_strategy_base.hpp>
00014 
00015 
00016 #if defined(BOOST_MSVC)
00017 #pragma warning(push)
00018 #pragma warning(disable: 4251 4231 4275 4660)
00019 #endif
00020 
00021 namespace saga
00022 {
00023     namespace adaptors
00024     {
00025         class bulk_strategy_try_exec : public bulk_strategy_base
00026         {
00027         private:
00028             
00035             saga::task get_first_task(saga::task_container& tc);
00036             
00041             bool prepare_args_for_adaptor(saga::task_container& tc, 
00042                                           TR1::shared_ptr<saga::impl::v1_0::cpi> adp);
00043             
00044             int bond_apply(sorted_tc_type & analyser_res);
00045             
00046             
00047         protected:
00048         public:
00052             bulk_strategy_try_exec(void);
00053             
00057             ~bulk_strategy_try_exec(void) {}
00058             
00072             virtual void apply(sorted_tc_type& analyser_res_);
00073         };
00074     }
00075 }
00076 
00077 #endif // BULK_STRATEGY_TRY_EXEC_HPP
00078 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines