scim 1.4.18
|
A slot template for static functions taking one argument of type P1 and returning a value of type R. More...
#include <scim_slot.h>
Public Member Functions | |
FunctionSlot1 (PF function) | |
virtual R | call (P1 p1) const |
![]() | |
R | operator() (P1 p1) const |
Function operator; Calls call(). | |
![]() | |
bool | is_referenced () const |
void | ref () |
Increase an object's reference count by one. | |
void | unref () |
Additional Inherited Members | |
![]() | |
Slot1 () | |
Constructor. | |
![]() | |
Slot () | |
Constructor. | |
virtual | ~Slot ()=0 |
Destructor. | |
![]() | |
ReferencedObject () | |
Constructor. | |
virtual | ~ReferencedObject ()=0 |
Destructor. | |
void | set_referenced (bool reference) |
A slot template for static functions taking one argument of type P1 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). |
Calls the function connected to this slot passing it argument p1.
Implements scim::Slot1< R, P1 >.
References scim::ReferencedObject::Pointer.