MADNESS
0.10.1
|
Serialization container for sending tasks to remote nodes. More...
#include <world_task_queue.h>
Public Member Functions | |
TaskHandlerInfo ()=default | |
TaskHandlerInfo (const refT &ref, functionT func, const TaskAttributes &attr) | |
Construct task info object. More... | |
template<typename Archive > | |
void | serialize (const Archive &ar) |
Serialization of an object. More... | |
Public Attributes | |
TaskAttributes | attr |
Task attributes. More... | |
functionT | func |
A task function. More... | |
refT | ref |
Remote reference for a task result future. More... | |
Private Member Functions | |
template<typename fnT , typename Archive > | |
std::enable_if< is_any_function_pointer_v< fnT > >::type | serialize_internal (const Archive &ar) |
Serialization for function pointers and member function pointers. More... | |
template<typename fnT , typename Archive > | |
std::enable_if<!is_any_function_pointer_v< fnT > >::type | serialize_internal (const Archive &ar) |
Serialization for non- function pointers and member function pointers. More... | |
Serialization container for sending tasks to remote nodes.
refT | The remote reference type for task result future. |
functionT | The task function type. |
|
default |
|
inline |
Construct task info object.
[in] | ref | Remote reference to the result future. |
[in] | func | The task function. |
[in] | attr | The task attrubutes. |
|
inline |
Serialization of an object.
Archive | The serialization archive type. |
[in,out] | ar | The serialization archive. |
|
inlineprivate |
Serialization for function pointers and member function pointers.
fnT | The function type. |
Archive | The serialization archive type. |
[in,out] | ar | The serialization archive. |
References madness::detail::TaskHandlerInfo< refT, functionT >::attr, madness::detail::TaskHandlerInfo< refT, functionT >::func, and madness::detail::TaskHandlerInfo< refT, functionT >::ref.
|
inlineprivate |
Serialization for non- function pointers and member function pointers.
fnT | The function type. |
Archive | The serialization archive type. |
[in,out] | ar | The serialization archive. |
References madness::detail::TaskHandlerInfo< refT, functionT >::attr, madness::detail::TaskHandlerInfo< refT, functionT >::func, and madness::detail::TaskHandlerInfo< refT, functionT >::ref.
TaskAttributes madness::detail::TaskHandlerInfo< refT, functionT >::attr |
Task attributes.
Referenced by madness::detail::TaskHandlerInfo< refT, functionT >::serialize_internal().
functionT madness::detail::TaskHandlerInfo< refT, functionT >::func |
A task function.
Referenced by madness::detail::TaskHandlerInfo< refT, functionT >::serialize_internal().
refT madness::detail::TaskHandlerInfo< refT, functionT >::ref |
Remote reference for a task result future.
Referenced by madness::detail::TaskHandlerInfo< refT, functionT >::serialize_internal().