HHu ZhengInit!
61fb54a9创建于 3 天前历史提交
dnl Copyright 2002, The libsigc++ Development Team 
dnl 
dnl This library is free software; you can redistribute it and/or 
dnl modify it under the terms of the GNU Lesser General Public 
dnl License as published by the Free Software Foundation; either 
dnl version 2.1 of the License, or (at your option) any later version. 
dnl 
dnl This library is distributed in the hope that it will be useful, 
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
dnl Lesser General Public License for more details. 
dnl 
dnl You should have received a copy of the GNU Lesser General Public 
dnl License along with this library; if not, write to the Free Software 
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
dnl
divert(-1)

include(template.macros.m4)

define([SLOT_CLASS],[dnl
/** Creates a functor of type SigC::Slot$1 that encapsulates a $4 method and an object instance.
 *
 * This function is part of the compatibility module and therefore deprecated.
 * Use sigc::mem_fun() instead.
 *
 * @param _A_obj Reference to object instance the functor should operate on.
 * @param _A_func Pointer to method that should be wrapped.
 * @return Functor that executes _A_func on invokation.
 *
 * @deprecated Use sigc::mem_fun() instead.
 * @ingroup compat
 */
template <LIST(class T_return, LOOP(class T_arg%1, $1), class T_obj)>
inline Slot$1<LIST(T_return, LOOP(T_arg%1, $1))>
slot_class($3 T_obj& _A_obj, T_return (T_obj::*_A_func)(LOOP(T_arg%1,$1)) $4)
{ return ::sigc::bound_[$2]mem_functor$1<LIST(T_return, T_obj, LOOP(T_arg%1, $1))>(_A_obj, _A_func); }

])


divert(0)

__FIREWALL__

#include <sigc++/slot.h>
#include <sigc++/functors/mem_fun.h>

#ifndef LIBSIGC_DISABLE_DEPRECATED

namespace SigC {

// slot_class()
FOR(0,CALL_SIZE,[[SLOT_CLASS(%1,[],[],[])]])
FOR(0,CALL_SIZE,[[SLOT_CLASS(%1,[const_],[const],[const])]])
FOR(0,CALL_SIZE,[[SLOT_CLASS(%1,[volatile_],[],[volatile])]])
FOR(0,CALL_SIZE,[[SLOT_CLASS(%1,[const_volatile_],[const],[const volatile])]])

}

#endif