OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
function.hpp
Go to the documentation of this file.
1 #ifndef FUNCTION_HPP
2 #define FUNCTION_HPP
3 
4 #include <vector>
5 
6 #include "boost/function.hpp"
7 #include "boost/tuple/tuple.hpp"
8 #include "boost/variant/variant.hpp"
9 
10 namespace client { namespace function {
11 
12  typedef boost::variant <
13  double
14  , bool
15  , std::string
16  >
18 
19  typedef std::vector<argument_t> arguments_t;
20 
21  typedef boost::function<boost::tuple<double, bool> (arguments_t)> type;
22 
23  typedef std::pair<std::string, type> named_t;
24 
25 }}
26 
27 #endif
boost::variant< double, bool, std::string > argument_t
Definition: function.hpp:17
std::vector< argument_t > arguments_t
Definition: function.hpp:19
std::pair< std::string, type > named_t
Definition: function.hpp:23
boost::function< boost::tuple< double, bool >arguments_t)> type
Definition: function.hpp:21