OperationCallerBinder.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: FMTC do nov 2 13:06:12 CET 2006 BindStorage.hpp
3 
4  BindStorage.hpp - description
5  -------------------
6  begin : do november 02 2006
7  copyright : (C) 2006 FMTC
8  email : peter.soetens@fmtc.be
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU General Public *
13  * License as published by the Free Software Foundation; *
14  * version 2 of the License. *
15  * *
16  * As a special exception, you may use this file as part of a free *
17  * software library without restriction. Specifically, if other files *
18  * instantiate templates or use macros or inline functions from this *
19  * file, or you compile this file and link it with other files to *
20  * produce an executable, this file does not by itself cause the *
21  * resulting executable to be covered by the GNU General Public *
22  * License. This exception does not however invalidate any other *
23  * reasons why the executable file might be covered by the GNU General *
24  * Public License. *
25  * *
26  * This library is distributed in the hope that it will be useful, *
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
29  * Lesser General Public License for more details. *
30  * *
31  * You should have received a copy of the GNU General Public *
32  * License along with this library; if not, write to the Free Software *
33  * Foundation, Inc., 59 Temple Place, *
34  * Suite 330, Boston, MA 02111-1307 USA *
35  * *
36  ***************************************************************************/
37 
38 
39 #ifndef ORO_TASK_METHOD_BINDER_HPP
40 #define ORO_TASK_METHOD_BINDER_HPP
41 
42 #include <boost/function.hpp>
43 #include <boost/type_traits/function_traits.hpp>
44 #include <boost/bind.hpp>
45 #include <boost/mem_fn.hpp>
46 
47 namespace RTT
48 {
49  namespace internal
50  {
51  template<int, class F>
53 
54  template<class F>
56  {
57  template<class M, class O>
58  boost::function<F> operator()(M m, O o) {
59  return boost::bind( boost::mem_fn(m), o );
60  }
61  };
62 
63  template<class F>
65  {
66  template<class M, class O>
67  boost::function<F> operator()(M m, O o) {
68  return boost::bind( boost::mem_fn(m), o, _1 );
69  }
70  };
71 
72  template<class F>
74  {
75  template<class M, class O>
76  boost::function<F> operator()(M m, O o) {
77  return boost::bind( boost::mem_fn(m), o, _1, _2 );
78  }
79  };
80 
81  template<class F>
83  {
84  template<class M, class O>
85  boost::function<F> operator()(M m, O o) {
86  return boost::bind( boost::mem_fn(m), o, _1, _2, _3 );
87  }
88  };
89 
90  template<class F>
92  {
93  template<class M, class O>
94  boost::function<F> operator()(M m, O o) {
95  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4 );
96  }
97  };
98 
99  template<class F>
101  {
102  template<class M, class O>
103  boost::function<F> operator()(M m, O o) {
104  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4, _5 );
105  }
106  };
107 
108  template<class F>
110  {
111  template<class M, class O>
112  boost::function<F> operator()(M m, O o) {
113  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4, _5, _6 );
114  }
115  };
116 
117  template<class F>
119  {
120  template<class M, class O>
121  boost::function<F> operator()(M m, O o) {
122  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4, _5, _6, _7 );
123  }
124  };
125 
126  template<class F>
128  {
129  template<class M, class O>
130  boost::function<F> operator()(M m, O o) {
131  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4, _5, _6, _7, _8 );
132  }
133  };
134 
135  template<class F>
137  {
138  template<class M, class O>
139  boost::function<F> operator()(M m, O o) {
140  return boost::bind( boost::mem_fn(m), o, _1, _2, _3, _4, _5, _6, _7, _8, _9 );
141  }
142  };
143 
155  template<class F>
157  : public OperationCallerBinderImpl<boost::function_traits<F>::arity, F>
158  {};
159  }
160 }
161 #endif
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:25