#include <LocalOperationCaller.hpp>
Public Types | |
typedef boost::function_traits< Signature >::result_type | result_reference |
typedef boost::function_traits< Signature >::result_type | result_type |
typedef boost::shared_ptr< LocalOperationCallerImpl > | shared_ptr |
typedef FunctionT | Signature |
typedef boost::function_traits< Signature > | traits |
Public Types inherited from RTT::base::OperationCallerBase< FunctionT > | |
typedef boost::shared_ptr< OperationCallerBase< FunctionT > > | shared_ptr |
Public Types inherited from RTT::base::OperationCallerInterface | |
typedef boost::shared_ptr< OperationCallerInterface > | shared_ptr |
Public Types inherited from RTT::base::DisposableInterface | |
typedef boost::shared_ptr< DisposableInterface > | shared_ptr |
Public Types inherited from RTT::internal::CollectBase< FunctionT > | |
typedef boost::shared_ptr< CollectBase< FunctionT > > | shared_ptr |
Public Member Functions | |
template<class Xignored > | |
result_type | call_impl () |
template<class T1 > | |
result_type | call_impl (T1 a1) |
template<class T1 , class T2 > | |
result_type | call_impl (T1 a1, T2 a2) |
template<class T1 , class T2 , class T3 > | |
result_type | call_impl (T1 a1, T2 a2, T3 a3) |
template<class T1 , class T2 , class T3 , class T4 > | |
result_type | call_impl (T1 a1, T2 a2, T3 a3, T4 a4) |
template<class T1 , class T2 , class T3 , class T4 , class T5 > | |
result_type | call_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 > | |
result_type | call_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 , class T7 > | |
result_type | call_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7) |
bool | checkCaller () const |
virtual shared_ptr | cloneRT () const =0 |
SendStatus | collect_impl () const |
template<class T1 > | |
SendStatus | collect_impl (T1 &a1) const |
template<class T1 , class T2 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2) const |
template<class T1 , class T2 , class T3 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2, T3 &a3) const |
template<class T1 , class T2 , class T3 , class T4 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5, T6 &a6) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 , class T7 > | |
SendStatus | collect_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5, T6 &a6, T7 &a7) const |
SendStatus | collectIfDone_impl () const |
template<class T1 > | |
SendStatus | collectIfDone_impl (T1 &a1) const |
template<class T1 , class T2 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2) const |
template<class T1 , class T2 , class T3 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2, T3 &a3) const |
template<class T1 , class T2 , class T3 , class T4 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5, T6 &a6) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 , class T7 > | |
SendStatus | collectIfDone_impl (T1 &a1, T2 &a2, T3 &a3, T4 &a4, T5 &a5, T6 &a6, T7 &a7) const |
void | dispose () |
SendHandle< Signature > | do_send (shared_ptr cl) |
void | executeAndDispose () |
virtual bool | isError () const |
LocalOperationCallerImpl () | |
virtual bool | ready () const |
result_type | ret_impl () const |
template<class T1 > | |
result_type | ret_impl (T1 a1) const |
template<class T1 , class T2 > | |
result_type | ret_impl (T1 a1, T2 a2) const |
template<class T1 , class T2 , class T3 > | |
result_type | ret_impl (T1 a1, T2 a2, T3 a3) const |
template<class T1 , class T2 , class T3 , class T4 > | |
result_type | ret_impl (T1 a1, T2 a2, T3 a3, T4 a4) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 > | |
result_type | ret_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 > | |
result_type | ret_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) const |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 , class T7 > | |
result_type | ret_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7) const |
SendHandle< Signature > | send_impl () |
template<class T1 > | |
SendHandle< Signature > | send_impl (T1 a1) |
template<class T1 , class T2 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2) |
template<class T1 , class T2 , class T3 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2, T3 a3) |
template<class T1 , class T2 , class T3 , class T4 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2, T3 a3, T4 a4) |
template<class T1 , class T2 , class T3 , class T4 , class T5 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) |
template<class T1 , class T2 , class T3 , class T4 , class T5 , class T6 , class T7 > | |
SendHandle< Signature > | send_impl (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7) |
Public Member Functions inherited from RTT::base::OperationCallerBase< FunctionT > | |
virtual OperationCallerBase< FunctionT > * | cloneI (ExecutionEngine *caller) const =0 |
virtual | ~OperationCallerBase () |
Public Member Functions inherited from RTT::base::OperationCallerInterface | |
ExecutionEngine * | getMessageProcessor () const |
ExecutionThread | getThread () const |
bool | isSend () |
OperationCallerInterface () | |
OperationCallerInterface (OperationCallerInterface const &orig) | |
void | reportError () |
virtual void | setCaller (ExecutionEngine *ee) |
virtual void | setOwner (ExecutionEngine *ee) |
bool | setThread (ExecutionThread et, ExecutionEngine *executor) |
virtual | ~OperationCallerInterface () |
Public Member Functions inherited from RTT::base::DisposableInterface | |
virtual | ~DisposableInterface () |
Protected Types | |
typedef BindStorage< FunctionT > | Store |
Protected Attributes | |
base::OperationCallerBase< FunctionT >::shared_ptr | self |
Protected Attributes inherited from RTT::base::OperationCallerInterface | |
ExecutionEngine * | caller |
ExecutionThread | met |
ExecutionEngine * | myengine |
Implements call, send, collect, collectIfDone for all function arities.
You can pass arguments by (const) value and by (const) reference. Passing pointers is 'accidentally' supported in-process, it will not work with out-of-process calls. The send takes all arguments (C++ doesn't know pure out args), the collect() only takes the return value and the 'reference' arguments (if any)
If this object is disposed, the collection of results is no longer possible and this will generate a SendFailure at caller side.
Definition at line 77 of file LocalOperationCaller.hpp.
typedef boost::function_traits<Signature>::result_type RTT::internal::LocalOperationCallerImpl< FunctionT >::result_reference |
Definition at line 86 of file LocalOperationCaller.hpp.
typedef boost::function_traits<Signature>::result_type RTT::internal::LocalOperationCallerImpl< FunctionT >::result_type |
Definition at line 85 of file LocalOperationCaller.hpp.
typedef boost::shared_ptr<LocalOperationCallerImpl> RTT::internal::LocalOperationCallerImpl< FunctionT >::shared_ptr |
Definition at line 89 of file LocalOperationCaller.hpp.
typedef FunctionT RTT::internal::LocalOperationCallerImpl< FunctionT >::Signature |
Definition at line 84 of file LocalOperationCaller.hpp.
|
protected |
Definition at line 621 of file LocalOperationCaller.hpp.
typedef boost::function_traits<Signature> RTT::internal::LocalOperationCallerImpl< FunctionT >::traits |
Definition at line 87 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 83 of file LocalOperationCaller.hpp.
|
inline |
Invoke this operator if the method has no arguments.
Definition at line 352 of file LocalOperationCaller.hpp.
|
inline |
Invoke this operator if the method has one argument.
Definition at line 376 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 400 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 422 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 444 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 466 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 488 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 510 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 284 of file LocalOperationCaller.hpp.
|
pure virtual |
|
inline |
Definition at line 294 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 300 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 307 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 314 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 321 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 328 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 335 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 342 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 204 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 215 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 225 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 235 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 245 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 255 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 265 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 275 of file LocalOperationCaller.hpp.
|
inlinevirtual |
As long as dispose (or executeAndDispose() ) is not called, this object will not be destroyed.
Implements RTT::base::DisposableInterface.
Definition at line 126 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 130 of file LocalOperationCaller.hpp.
|
inlinevirtual |
Execute functionality and free this object. You may no longer use this object after calling this method.
Implements RTT::base::DisposableInterface.
Definition at line 99 of file LocalOperationCaller.hpp.
|
inlinevirtual |
Definition at line 95 of file LocalOperationCaller.hpp.
|
inlinevirtual |
Available such that implementations have a way to expose their ready-ness, ie being able to do the call.
Implements RTT::base::OperationCallerInterface.
Definition at line 91 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 531 of file LocalOperationCaller.hpp.
|
inline |
This function has the same signature of call() and returns the stored return value, and tries to return all arguments.
Definition at line 543 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 554 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 565 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 576 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 587 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 598 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 609 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 143 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 148 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 156 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 164 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 172 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 180 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 188 of file LocalOperationCaller.hpp.
|
inline |
Definition at line 196 of file LocalOperationCaller.hpp.
|
protected |
Used to refcount self as long as dispose() is not called. This refcount is real-time since both shared_ptr and object were allocated with the rt_allocator class.
Definition at line 627 of file LocalOperationCaller.hpp.