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