Let caller assign a member function, or function pointer, to a method without changing its name.
We use this when we have a Method in a base class that sets its name only, and then in derived classes the method can be set to call a local member function, or it can be set as a proxy to a remote method.
Stephen
Attachment | Size |
---|---|
0001-method-Add-functions-to-set-the-method-from-member-f.patch | 1.78 KB |
Patch to expand RTT::Method interface
On Wednesday 10 February 2010 19:51:43 S Roderick wrote:
> Let caller assign a member function, or function pointer, to a method
> without changing its name.
>
> We use this when we have a Method in a base class that sets its name only,
> and then in derived classes the method can be set to call a local member
> function, or it can be set as a proxy to a remote method.
Seems useful indeed. In 2.x, these functions are no longer necessary, since
the 'Operation::calls' member function does this.
I applied it to svn trunk.
Peter