Nymph  v1.5.2
Flow-Based Data Processing Framework
Public Types | Public Member Functions | Protected Attributes | List of all members
KTSlotDataOneType< XDataType > Class Template Reference

#include <KTSlot.hh>

Public Types

typedef XDataType data_type
 
typedef boost::function< void(KTDataPtr) > function_signature
 
typedef function_signature::result_type return_type
 
typedef function_signature::argument_type argument_type
 

Public Member Functions

template<class XFuncOwnerType >
 KTSlotDataOneType (const std::string &name, XFuncOwnerType *owner, bool(XFuncOwnerType::*func)(data_type &), KTSignalData *signalPtr=NULL)
 Constructor for the case where the processor has the function that will be called by the slot. More...
 
template<class XFuncOwnerType >
 KTSlotDataOneType (const std::string &name, KTProcessor *proc, XFuncOwnerType *owner, bool(XFuncOwnerType::*func)(data_type &), KTSignalData *signalPtr=NULL)
 Constructor for the case where the processor and the object with the function that will be called are different. More...
 
virtual ~KTSlotDataOneType ()
 
void operator() (KTDataPtr data)
 

Protected Attributes

boost::function< bool(data_type &) > fFunc
 
KTSignalDatafSignalPtr
 

Detailed Description

template<class XDataType>
class Nymph::KTSlotDataOneType< XDataType >

Definition at line 229 of file KTSlot.hh.

Member Typedef Documentation

◆ argument_type

typedef function_signature::argument_type argument_type

Definition at line 235 of file KTSlot.hh.

◆ data_type

typedef XDataType data_type

Definition at line 232 of file KTSlot.hh.

◆ function_signature

typedef boost::function< void (KTDataPtr) > function_signature

Definition at line 233 of file KTSlot.hh.

◆ return_type

typedef function_signature::result_type return_type

Definition at line 234 of file KTSlot.hh.

Constructor & Destructor Documentation

◆ KTSlotDataOneType() [1/2]

KTSlotDataOneType ( const std::string &  name,
XFuncOwnerType *  owner,
bool(XFuncOwnerType::*)(data_type &)  func,
KTSignalData signalPtr = NULL 
)

Constructor for the case where the processor has the function that will be called by the slot.

Definition at line 315 of file KTSlot.hh.

◆ KTSlotDataOneType() [2/2]

KTSlotDataOneType ( const std::string &  name,
KTProcessor proc,
XFuncOwnerType *  owner,
bool(XFuncOwnerType::*)(data_type &)  func,
KTSignalData signalPtr = NULL 
)

Constructor for the case where the processor and the object with the function that will be called are different.

Definition at line 324 of file KTSlot.hh.

◆ ~KTSlotDataOneType()

~KTSlotDataOneType ( )
virtual

Definition at line 332 of file KTSlot.hh.

Member Function Documentation

◆ operator()()

void operator() ( KTDataPtr  data)

Definition at line 337 of file KTSlot.hh.

Member Data Documentation

◆ fFunc

boost::function< bool (data_type&) > fFunc
protected

Definition at line 249 of file KTSlot.hh.

◆ fSignalPtr

KTSignalData* fSignalPtr
protected

Definition at line 251 of file KTSlot.hh.


The documentation for this class was generated from the following file: