aboutsummaryrefslogtreecommitdiff
path: root/libcmix-common
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-common')
-rw-r--r--libcmix-common/CMakeLists.txt2
-rw-r--r--libcmix-common/cmixprotofunctor.hpp14
-rw-r--r--libcmix-common/senderreceiver.cpp1
3 files changed, 14 insertions, 3 deletions
diff --git a/libcmix-common/CMakeLists.txt b/libcmix-common/CMakeLists.txt
index cc3125c..71aa472 100644
--- a/libcmix-common/CMakeLists.txt
+++ b/libcmix-common/CMakeLists.txt
@@ -3,7 +3,7 @@ add_library(cmix-common
cmixprotofunctor.hpp
receiver.hpp
sender.hpp
- senderreceiver.hpp senderreceiver.cpp
+ senderreceiver.hpp
)
target_include_directories(cmix-common
diff --git a/libcmix-common/cmixprotofunctor.hpp b/libcmix-common/cmixprotofunctor.hpp
index effa8bd..0055593 100644
--- a/libcmix-common/cmixprotofunctor.hpp
+++ b/libcmix-common/cmixprotofunctor.hpp
@@ -37,9 +37,19 @@ struct CMixProtoFunctor {
return m; \
} \
+ /*!
+ * \def MESSAGE_SETTER_DEF_ITERATION(Z, N, DATA)
+ * Defines one iteration of the Repeat below,
+ * \param Z level over repeat we are using it should be 1.
+ * \param N current iteration
+ * \param The sequence consisiting of "pairs" of TYPE, NAME
+ */
#define MESSAGE_SETTER_DEF_ITERATION(Z, N, DATA) \
MESSAGE_SETTER_DEF(BOOST_PP_SEQ_ELEM(BOOST_PP_MUL(N, 2), DATA), BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(N, 2), 1), DATA))
+ /*!
+ * Loops over the length of the variadic macro parameter / 2
+ */
#define MESSAGE_SETTER_DEFS(...) \
BOOST_PP_REPEAT(BOOST_PP_DIV(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 2), MESSAGE_SETTER_DEF_ITERATION, BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__))
@@ -54,7 +64,9 @@ struct CMixProtoFunctor {
UserMessage, usermessage,
PrePre, prepre,
PreMix, premix,
- PrePost, prepost
+ PrePost, prepost,
+ RealPre, realpre,
+ RealMix, realmix,
)
#undef MESSAGE_SETTER_DEFS
#undef MESSAGE_SETTER_DEF_ITERATION
diff --git a/libcmix-common/senderreceiver.cpp b/libcmix-common/senderreceiver.cpp
deleted file mode 100644
index 8b13789..0000000
--- a/libcmix-common/senderreceiver.cpp
+++ /dev/null
@@ -1 +0,0 @@
-