scim::FunctionSlot0< R > Class Template Reference
[SignalSlotSignalSlot]

A slot template for static functions taking no arguments and returning a value of type R. More...

#include <scim_slot.h>

Inheritance diagram for scim::FunctionSlot0< R >:

Inheritance graph
[legend]
Collaboration diagram for scim::FunctionSlot0< R >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FunctionSlot0 (PF function)
virtual R call () const

Detailed Description

template<typename R>
class scim::FunctionSlot0< R >

A slot template for static functions taking no arguments and returning a value of type R.


Constructor & Destructor Documentation

template<typename R>
scim::FunctionSlot0< R >::FunctionSlot0 PF  function  )  [inline]
 

Construct a new function slot for a static function.

Parameters:
function - static function with the signature R (*PF)().


Member Function Documentation

template<typename R>
virtual R scim::FunctionSlot0< R >::call  )  const [inline, virtual]
 

Calls the function connected to this slot.

Returns:
a value of type R returned by the called function.

Implements scim::Slot0< R >.


The documentation for this class was generated from the following file:
Generated on Mon Oct 8 13:19:22 2007 for scim by  doxygen 1.4.6