From 7b6e0ca99f8521e034452f0d0243a7f3e33843a9 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 28 May 2024 17:23:20 +0200 Subject: Docs and Sycl fixes --- modules/async/c++/async.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules/async') diff --git a/modules/async/c++/async.hpp b/modules/async/c++/async.hpp index b56742c..0f58536 100644 --- a/modules/async/c++/async.hpp +++ b/modules/async/c++/async.hpp @@ -12,6 +12,12 @@ namespace saw { class conveyor_storage; + +/** + * The inner base conveyor node type. + * It serves as a base for the asynchronous pipe/conveyor + * structure. + */ class conveyor_node { public: conveyor_node(); @@ -40,8 +46,14 @@ public: virtual void notify_parent_attached(conveyor_node &){}; }; +/** + * Conveyor helper type to provide some basic storage for child conveyor nodes. + */ class conveyor_node_with_child_mixin final { public: + /** + * The child itself. + */ own child = nullptr; conveyor_node_with_child_mixin(own &&child_, @@ -56,6 +68,9 @@ public: error_or> swap_child(own &&swapee); }; +/** + * Conveyor helper type to provide some basic reference helper. + */ class conveyor_node_with_parent_mixin final { public: conveyor_node *parent = nullptr; -- cgit v1.2.3