GCC Code Coverage Report


Directory: ./
File: src/Function/FunctionCall_impl.h
Date: 2026-05-19 15:42:59
Exec Total Coverage
Lines: 11 11 100.0%
Functions: 10 10 100.0%
Branches: 3 3 100.0%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7 #ifndef __FUNCTION_CALL_H_IMPL__
8 #define __FUNCTION_CALL_H_IMPL__
9
10 #include "phoenix_type_stream.h"
11 #include "FunctionCall.h"
12 #include "phoenix_function_call.h"
13
14 using namespace Swarm;
15
16 ///Default constructor of FunctionCall
17 /** @param function : function to be called
18 * @param name : name of the function
19 */
20 template<typename _Callable>
21 3 FunctionCall<_Callable>::FunctionCall(_Callable && function, const PString & name)
22 3 :AbstractFunction(name), p_function(function)
23 {
24
3/3
✓ Branch 0 (3→4) taken 3 times.
✓ Branch 2 (4→5) taken 3 times.
✓ Branch 4 (5→6) taken 3 times.
3 setPrototype(phoenix_getTypeToStr<_Callable>(function));
25 3 initialisationFunctionCall();
26 3 }
27
28 ///Destructor of FunctionCall
29 template<typename _Callable>
30 6 FunctionCall<_Callable>::~FunctionCall(){
31
32 6 }
33
34 ///Call the function with parameter
35 /** @param[out] log : logger
36 * @param[out] outputResult : result of the function call
37 * @param parameter : set of parameters given to the function
38 * @return true on success, false otherwise
39 */
40 template<typename _Callable>
41 3 bool FunctionCall<_Callable>::call(PLog & log, Data & outputResult, const Data & parameter){
42 3 return phoenix_function_call(log, outputResult, parameter.getValue(), p_function);
43 }
44
45 ///Initialisation function of the class FunctionCall
46 template<typename _Callable>
47 3 void FunctionCall<_Callable>::initialisationFunctionCall(){
48
49 3 }
50
51
52
53
54
55 #endif
56
57
58
59