GCC Code Coverage Report


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