Public Member Functions | Public Attributes | List of all members
qi::TaskCall< T > Class Template Reference

#include <task-call.hpp>

Inheritance diagram for qi::TaskCall< T >:
Inheritance graph
[legend]

Public Member Functions

virtual bool interrupt ()
 
virtual void start (const AnyVarArguments &args)
 
 TaskCall (AnyFunction f)
 
- Public Member Functions inherited from qi::Task
 Task ()
 
virtual ~Task ()
 

Public Attributes

AnyFunction _f
 
GenericProperty result
 
- Public Attributes inherited from qi::Task
Property< std::string > error
 
Property< bool > running
 RO, Indicates if the task is currently running. More...
 

Detailed Description

template<typename T>
class qi::TaskCall< T >

Task wrapper over a function of return type T

Definition at line 18 of file task-call.hpp.

Constructor & Destructor Documentation

◆ TaskCall()

template<typename T >
qi::TaskCall< T >::TaskCall ( AnyFunction  f)
inline

Definition at line 21 of file task-call.hpp.

Member Function Documentation

◆ interrupt()

template<typename T >
virtual bool qi::TaskCall< T >::interrupt ( )
inlinevirtual

Ask the task to interrupt itself.

Returns
true if the request was successful. Does not imply that the Task is effectively stopped, but that it will eventually stop.

Implements qi::Task.

Definition at line 26 of file task-call.hpp.

◆ start()

template<typename T >
virtual void qi::TaskCall< T >::start ( const AnyVarArguments &  args)
inlinevirtual

Definition at line 27 of file task-call.hpp.

Member Data Documentation

◆ _f

template<typename T >
AnyFunction qi::TaskCall< T >::_f

Definition at line 50 of file task-call.hpp.

◆ result

template<typename T >
GenericProperty qi::TaskCall< T >::result

Definition at line 49 of file task-call.hpp.


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


naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41