1 /*
2 * Copyright 2002, The libsigc++ Development Team
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19 #ifndef _SIGC_BIND_HPP_
20 #define _SIGC_BIND_HPP_
21
22 #include <sigc++/adaptors/bind.h>
23
24 #ifndef LIBSIGC_DISABLE_DEPRECATED
25
26 namespace SigC {
27
28 template <class T_bound1, class T_functor>
29 inline ::sigc::bind_functor<-1, T_functor,
30 typename ::sigc::unwrap_reference<T_bound1>::type>
bind(const T_functor & _A_functor,T_bound1 _A_b1)31 bind(const T_functor& _A_functor, T_bound1 _A_b1)
32 { return ::sigc::bind_functor<-1, T_functor,
33 typename ::sigc::unwrap_reference<T_bound1>::type>
34 (_A_functor, _A_b1);
35 }
36
37 template <class T_bound1, class T_bound2, class T_functor>
38 inline ::sigc::bind_functor<-1, T_functor,
39 typename ::sigc::unwrap_reference<T_bound1>::type,
40 typename ::sigc::unwrap_reference<T_bound2>::type>
bind(const T_functor & _A_functor,T_bound1 _A_b1,T_bound2 _A_b2)41 bind(const T_functor& _A_functor, T_bound1 _A_b1, T_bound2 _A_b2)
42 { return ::sigc::bind_functor<-1, T_functor,
43 typename ::sigc::unwrap_reference<T_bound1>::type,
44 typename ::sigc::unwrap_reference<T_bound2>::type>
45 (_A_functor, _A_b1, _A_b2);
46 }
47
48 template <class T_bound1, class T_bound2, class T_bound3, class T_functor>
49 inline ::sigc::bind_functor<-1, T_functor,
50 typename ::sigc::unwrap_reference<T_bound1>::type,
51 typename ::sigc::unwrap_reference<T_bound2>::type,
52 typename ::sigc::unwrap_reference<T_bound3>::type>
bind(const T_functor & _A_functor,T_bound1 _A_b1,T_bound2 _A_b2,T_bound3 _A_b3)53 bind(const T_functor& _A_functor, T_bound1 _A_b1, T_bound2 _A_b2,T_bound3 _A_b3)
54 { return ::sigc::bind_functor<-1, T_functor,
55 typename ::sigc::unwrap_reference<T_bound1>::type,
56 typename ::sigc::unwrap_reference<T_bound2>::type,
57 typename ::sigc::unwrap_reference<T_bound3>::type>
58 (_A_functor, _A_b1, _A_b2, _A_b3);
59 }
60
61 }
62
63 #endif /* LIBSIGC_DISABLE_DEPRECATED */
64
65 #endif /* _SIGC_BIND_HPP_ */
66