From 8d8f0ac24d45b9cda0e14581955ed2b1dc87a037 Mon Sep 17 00:00:00 2001 From: FritzFlorian Date: Wed, 31 Jul 2019 11:57:20 +0200 Subject: [PATCH] Expose dataflow API in a single header file. Now end users only have to #include to use all parts of the API. We split dataflow out from the general algorithms header, as it is a rather big API and could bloat the users namespace/includes. --- lib/pls/include/pls/dataflow/dataflow.h | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/lib/pls/include/pls/dataflow/dataflow.h b/lib/pls/include/pls/dataflow/dataflow.h index a02c54a..e61d8a5 100644 --- a/lib/pls/include/pls/dataflow/dataflow.h +++ b/lib/pls/include/pls/dataflow/dataflow.h @@ -2,8 +2,35 @@ #ifndef PLS_DATAFLOW_DATAFLOW_H_ #define PLS_DATAFLOW_DATAFLOW_H_ -#include "graph.h" -#include "pls/dataflow/internal/inputs.h" -#include "pls/dataflow/internal/outputs.h" +#include "internal/graph.h" +#include "internal/function_node.h" +#include "internal/merge_node.h" +#include "internal/switch_node.h" +#include "internal/split_node.h" + +#include "internal/inputs.h" +#include "internal/outputs.h" + +namespace pls { +namespace dataflow { + +template +using graph = internal::graph; +template +using function_node = internal::function_node; +template +using merge_node = internal::merge_node; +template +using switch_node = internal::switch_node; +template +using split_node = internal::split_node; + +template +using inputs = internal::inputs; +template +using outputs = internal::outputs; + +} +} #endif //PLS_DATAFLOW_DATAFLOW_H_ -- libgit2 0.26.0