InputHandlerThreaded Class Reference

InputHandler subclass than can be plugged into SingleChannel to get multi-threaded computations. More...

#include <Channels/InputHandlerThreaded.H>

Inheritance diagram for InputHandlerThreaded:
Inheritance graph
[legend]
Collaboration diagram for InputHandlerThreaded:
Collaboration graph
[legend]

List of all members.

Classes

struct  Job
 Represents a pending SingleChannel input job. More...

Public Member Functions

 InputHandlerThreaded ()
 Constructor.
virtual ~InputHandlerThreaded ()
 Virtual destructor ensures proper destruction of derived classes.
virtual void handleInput (SingleChannel &chan, const Image< float > &bwimg, const SimTime &t, const Image< byte > &clipMask, const rutz::shared_ptr< PyramidCache< float > > &cache)
 Send the input image off to the processing node.
virtual void waitForOutput (SingleChannel &chan)
 Have we received the results from our processing node yet?

Detailed Description

InputHandler subclass than can be plugged into SingleChannel to get multi-threaded computations.

Definition at line 45 of file InputHandlerThreaded.H.


Constructor & Destructor Documentation

InputHandlerThreaded::InputHandlerThreaded (  ) 

Constructor.

Definition at line 110 of file InputHandlerThreaded.C.

InputHandlerThreaded::~InputHandlerThreaded (  )  [virtual]

Virtual destructor ensures proper destruction of derived classes.

Definition at line 116 of file InputHandlerThreaded.C.


Member Function Documentation

void InputHandlerThreaded::handleInput ( SingleChannel chan,
const Image< float > &  bwimg,
const SimTime t,
const Image< byte > &  clipMask,
const rutz::shared_ptr< PyramidCache< float > > &  cache 
) [virtual]

Send the input image off to the processing node.

Implements InputHandler.

Definition at line 120 of file InputHandlerThreaded.C.

References ASSERT, JobServer::enqueueJob(), rutz::shared_ptr< T >::is_valid(), and rutz::make_shared().

void InputHandlerThreaded::waitForOutput ( SingleChannel chan  )  [virtual]

Have we received the results from our processing node yet?

Implements InputHandler.

Definition at line 132 of file InputHandlerThreaded.C.

References ModelComponent::descriptiveName(), rutz::shared_ptr< T >::is_valid(), and rutz::shared_ptr< T >::reset().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:23 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3