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