scim 1.4.18
|
A slot template for methods in a class of type T taking two arguments of type P1 and P2, and returning a value of type R. More...
#include <scim_slot.h>
Public Member Functions | |
MethodSlot2 (T *object, PMF function) | |
virtual R | call (P1 p1, P2 p2) const |
![]() | |
R | operator() (P1 p1, P2 p2) const |
Function operator; Calls call(). | |
![]() | |
bool | is_referenced () const |
void | ref () |
Increase an object's reference count by one. | |
void | unref () |
Additional Inherited Members | |
![]() | |
Slot2 () | |
Constructor. | |
![]() | |
Slot () | |
Constructor. | |
virtual | ~Slot ()=0 |
Destructor. | |
![]() | |
ReferencedObject () | |
Constructor. | |
virtual | ~ReferencedObject ()=0 |
Destructor. | |
void | set_referenced (bool reference) |
A slot template for methods in a class of type T taking two arguments of type P1 and P2, and returning a value of type R.
Construct a new method slot for a class member function.
object | - a pointer to an object of type T. |
function | - a class method with the signature R (T::*PMF)(P1, P2). |
Calls the class method connected to this slot passing it arguments p1 and p2.
Implements scim::Slot2< R, P1, P2 >.
References scim::ReferencedObject::Pointer.