Re: How does libsigc++ accept member functions?

2009-06-05 Thread Daniel Elstner
Am Freitag, den 05.06.2009, 08:51 +0400 schrieb Igor Gorbounov: Thanks, Daniel, it was helpfull, though it seems to be impossible to transfer this pointer to some outward object, knowing nothing about the class with member function. You need to know the function signature. This is not

Re: How does libsigc++ accept member functions?

2009-06-05 Thread Chris Vine
On Fri, 05 Jun 2009 08:51:38 +0400 Igor Gorbounov igorbou...@topazelectro.ru wrote: Daniel Elstner пишет: Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov: [...] As an example, I'm calling a method directly through a PMF here:

How does libsigc++ accept member functions?

2009-06-04 Thread Igor Gorbounov
Hi, Murray, I'm trying (in vain) to understand how it works. In my AVR-GCC program I'd like to implement some mechanism to use libsigc++ - like callback functions. The compiler prevents me from transferring things like Dispatcher::on_settings_button_pressed to a button (self-made, too). I've

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Daniel Elstner
Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov: I'm trying (in vain) to understand how it works. In my AVR-GCC program I'd like to implement some mechanism to use libsigc++ - like callback functions. The compiler prevents me from transferring things like

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Igor Gorbounov
Daniel Elstner пишет: Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov: Because it looks very ugly, I'm eager to understand how did you bypassed all this stuff using libsigc++? The term you are looking for is PMF (Pointer to Member Function). It is this very

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Daniel Elstner
Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov: The term you are looking for is PMF (Pointer to Member Function). It is this very pointer to member function that C++ does not allow me to get. I meant to say that PMF is the term you want to Google for. As an

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Chris Vine
On Thu, 04 Jun 2009 16:01:33 +0400 Igor Gorbounov igorbou...@topazelectro.ru wrote: Daniel Elstner пишет: Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov: Because it looks very ugly, I'm eager to understand how did you bypassed all this stuff using libsigc++?

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Igor Gorbounov
Chris Vine пишет: On Thu, 04 Jun 2009 16:01:33 +0400 Igor Gorbounov igorbou...@topazelectro.ru wrote: [...] T* obj; void (T::*func)(); Once you have assigned values to obj and func you can call the assigned method on the assigned object with this: (obj-*func)(); [...] Thanks, Chris! It

Re: How does libsigc++ accept member functions?

2009-06-04 Thread Igor Gorbounov
Daniel Elstner пишет: Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov: [...] As an example, I'm calling a method directly through a PMF here: http://github.com/danielkitta/kcio/blob/8edc530dbfe3d998c682da0218263d7c577f5c46/kc-keyboard/controller.cc#L162 Thanks, Daniel,