slsSupportLib and parallel call using variadic templates

This commit is contained in:
Erik Frojdh
2018-10-03 14:02:41 +02:00
parent 6bfc212f19
commit fefdf8e7d6
7 changed files with 420 additions and 0 deletions

View File

@ -149,6 +149,15 @@ public:
*/
void setupMultiDetector(bool verify = true, bool update = true);
template <typename RT, typename... CT>
std::vector<RT> serialCall(RT (slsDetector::*somefunc)(CT...), CT... Args);
template <typename RT, typename... CT>
std::vector<RT> parallelCall(RT (slsDetector::*somefunc)(CT...), CT... Args);
/**
* If specific position, then provide result with that detector at position pos
* else concatenate the result of all detectors