X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fmembind.hh;h=5cb73d095ad515c437069a0402445e2fdfb07a7b;hb=83df9651fac5af034774ff9314ee18eeb8a5ec2a;hp=b8768907cecef60ec7a6a853a3b791aa8b0968bf;hpb=553781d9e9bce316dca24ac4f0c42e5613e849e0;p=senf.git diff --git a/Utils/membind.hh b/Utils/membind.hh index b876890..5cb73d0 100644 --- a/Utils/membind.hh +++ b/Utils/membind.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -33,7 +33,7 @@ int test(int x); }; - Foo * foo = ...; + Foo * foo = ...; boost::function f = senf::membind(&Foo::test,foo); int rv = f(1); // Calls foo->test(1) \endcode @@ -41,7 +41,7 @@ \idea Make the \a ob argument type an additional P template parameter (using call_traits for the exact arg type? Probably we'll get deduction problems then) . The only operation this - object musst suppoprt is ob->*fn. This would allow the use of + object must support is ob->*fn. This would allow the use of smart pointers. We should keep the T & version to still support ob.*fn use. */ @@ -72,13 +72,13 @@ namespace senf { /** \brief Build bound member function object - membind() supports up to 9 function parameters (represented as - \a Args here). The \a ob argument can be either a pointer or a - reference to \a T - \param[in] fn member function pointer - \param[in] ob object instance to bind this pointer to - \returns Boost.Function object representing a bound call of \a - fn on \a ob + membind() supports up to 9 function parameters (represented as + \a Args here). The \a ob argument can be either a pointer or a + reference to \a T + \param[in] fn member function pointer + \param[in] ob object instance to bind this pointer to + \returns Boost.Function object representing a bound call of \a + fn on \a ob */ template boost::function membind(R (T::* fn)( Args ), T * ob); @@ -98,4 +98,10 @@ namespace senf { // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: