coil::Async_t< Object, Func > Class Template Reference

Async_t template class. More...

#include <Async.h>

Inheritance diagram for coil::Async_t< Object, Func >:
coil::Async coil::Task

List of all members.

Public Member Functions

 Async_t (Object *obj, Func func, bool auto_delete=false)
 Constructor.
virtual ~Async_t ()
 Destructor.
virtual int svc ()
 Thread execution function for asynchronous invoke.
virtual void finalize ()
 Finalize the asynchronous function.
virtual void invoke ()
 Asynchronous function Activation.
virtual bool finished ()
 Check on completion state.

Detailed Description

template<typename Object, typename Func>
class coil::Async_t< Object, Func >

Async_t template class.


Constructor & Destructor Documentation

template<typename Object, typename Func>
coil::Async_t< Object, Func >::Async_t ( Object *  obj,
Func  func,
bool  auto_delete = false 
) [inline]

Constructor.

Constructor

Parameters:
obj The target object for the asynchronous function.
func Asynchronous function.
auto_delete flag for automatic instance destruction.
template<typename Object, typename Func>
virtual coil::Async_t< Object, Func >::~Async_t (  )  [inline, virtual]

Destructor.

Destructor


Member Function Documentation

template<typename Object, typename Func>
virtual void coil::Async_t< Object, Func >::finalize (  )  [inline, virtual]

Finalize the asynchronous function.

Finalize the asynchronous function for preparing it for destruction.

Reimplemented from coil::Task.

template<typename Object, typename Func>
virtual bool coil::Async_t< Object, Func >::finished (  )  [inline, virtual]

Check on completion state.

Return a completion state.

Returns:
true: finished, false: unfinished

Implements coil::Async.

template<typename Object, typename Func>
virtual void coil::Async_t< Object, Func >::invoke (  )  [inline, virtual]

Asynchronous function Activation.

Activate of Asynchronous function.

Implements coil::Async.

References coil::Task::activate().

template<typename Object, typename Func>
virtual int coil::Async_t< Object, Func >::svc ( void   )  [inline, virtual]

Thread execution function for asynchronous invoke.

Invoke the registered objects operation.

Returns:
The execution result.

Reimplemented from coil::Task.

Generated on Fri Oct 28 18:31:17 2016 for OpenRTM-aist by  doxygen 1.6.3