GCC Code Coverage Report


Directory: ./
File: src/Function/AbstractDataFunction.cpp
Date: 2026-05-19 15:42:59
Exec Total Coverage
Lines: 19 19 100.0%
Functions: 7 8 87.5%
Branches: 2 2 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 #include "AbstractDataFunction.h"
8
9 using namespace Swarm;
10
11 ///Default constructor of AbstractDataFunction
12 /** @param name : name of the function
13 */
14
1/1
✓ Branch 0 (3→4) taken 11 times.
11 AbstractDataFunction::AbstractDataFunction(const PString & name){
15
1/1
✓ Branch 0 (4→5) taken 11 times.
11 initialisationAbstractDataFunction(name);
16 11 }
17
18 ///Destructor of AbstractDataFunction
19 1 AbstractDataFunction::~AbstractDataFunction(){
20
21 1 }
22
23 ///Set the name of the function
24 /** @param name : name of the function
25 */
26 1 void AbstractDataFunction::setName(const PString & name){
27 1 p_name = name;
28 1 }
29
30 ///Name of the function
31 /** @return name of the function
32 */
33 15 const PString & AbstractDataFunction::getName() const{
34 15 return p_name;
35 }
36
37 ///Set the prototype of the current function
38 /** @param prototype : prototype of the current function
39 */
40 2 void AbstractDataFunction::setPrototype(const PString & prototype){
41 2 p_prototype = prototype;
42 2 }
43
44 ///Get the prototype of the current function
45 /** @return prototype of the current function
46 */
47 14 const PString & AbstractDataFunction::getPrototype() const{
48 14 return p_prototype;
49 }
50
51 ///Initialisation function of the class AbstractDataFunction
52 /** @param name : name of the function
53 */
54 11 void AbstractDataFunction::initialisationAbstractDataFunction(const PString & name){
55 11 p_name = name;
56 11 p_prototype = name;
57 11 }
58
59
60
61
62
63