ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::client::JDWPThreadAction< TClass > Class Template Reference

#include <jdwpaction.h>

Inheritance diagram for inspectorj::client::JDWPThreadAction< TClass >:

Inheritance graph
[legend]
Collaboration diagram for inspectorj::client::JDWPThreadAction< TClass >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename TClass>
class inspectorj::client::JDWPThreadAction< TClass >

JDWPThreadAction is a template class that takes a callback functor and invokes it in a new thread object.

See also:
InvokerThread

Definition at line 104 of file jdwpaction.h.

Public Member Functions

 JDWPThreadAction (QObject *parent, TClass *cls, void(TClass::*fpt)(JDWPPacket &))
 Constructor.
 ~JDWPThreadAction ()
 Destructor.
void trigger (JDWPPacket &packet)
 Causes this action to invoke the callback in a new thread.

Private Attributes

TClass * clsObject
 Class instance on which to invoke the functor.
void(TClass::* callbackFpt )(JDWPPacket &)
 The callback functor to invoke.


Constructor & Destructor Documentation

template<typename TClass>
inspectorj::client::JDWPThreadAction< TClass >::JDWPThreadAction ( QObject *  parent,
TClass *  cls,
void(TClass::*)(JDWPPacket &)  fpt 
) [inline]

Constructor.

Parameters:
parent The QObject parent
cls The class object
fpt The callback functor

Definition at line 120 of file jdwpaction.h.

template<typename TClass>
inspectorj::client::JDWPThreadAction< TClass >::~JDWPThreadAction (  )  [inline]

Destructor.

Definition at line 129 of file jdwpaction.h.


Member Function Documentation

template<typename TClass>
void inspectorj::client::JDWPThreadAction< TClass >::trigger ( JDWPPacket packet  )  [inline, virtual]

Causes this action to invoke the callback in a new thread.

Parameters:
packet The JDWPPacket passed to the callback
See also:
InvokerThread

Reimplemented from inspectorj::client::JDWPAction.

Definition at line 138 of file jdwpaction.h.

References inspectorj::client::JDWPThreadAction< TClass >::callbackFpt, inspectorj::client::JDWPThreadAction< TClass >::clsObject, and inspectorj::client::JDWPAction::finished().


Member Data Documentation

template<typename TClass>
TClass* inspectorj::client::JDWPThreadAction< TClass >::clsObject [private]

Class instance on which to invoke the functor.

Definition at line 108 of file jdwpaction.h.

Referenced by inspectorj::client::JDWPThreadAction< TClass >::trigger().

template<typename TClass>
void(TClass::* inspectorj::client::JDWPThreadAction< TClass >::callbackFpt)(JDWPPacket &) [private]

The callback functor to invoke.

Referenced by inspectorj::client::JDWPThreadAction< TClass >::trigger().


The documentation for this class was generated from the following file:
Generated on Sun Aug 19 17:08:16 2007 for inspectorJ by  doxygen 1.5.1