GCC Code Coverage Report


Directory: ./
File: tmp_project/PhoenixFileParser/src/PNestedCall.cpp
Date: 2025-03-14 12:18:05
Exec Total Coverage
Lines: 27 50 54.0%
Branches: 1 3 33.3%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7
8 #include "PNestedCall.h"
9
10 ///Constructor of class PNestedStr
11 8 PNestedStr::PNestedStr(){
12
13 8 }
14
15 ///Copy Constructor of class PNestedStr
16 /** @param other : PNestedStr we want ot copy
17 */
18 13 PNestedStr::PNestedStr(const PNestedStr & other){
19
1/1
✓ Branch 1 taken 13 times.
13 copyPNestedStr(other);
20 13 }
21
22 ///Destructor of class PNestedStr
23 42 PNestedStr::~PNestedStr(){
24
25 }
26
27 ///Operator = of class PNestedStr
28 /** @param other : PNestedStr we want ot copy
29 * @return copied class PNestedStr
30 */
31 PNestedStr & PNestedStr::operator = (const PNestedStr & other){
32 copyPNestedStr(other);
33 return *this;
34 }
35
36 ///Sets the value of the PNestedStr
37 /** @param value : value of the PNestedStr
38 */
39 8 void PNestedStr::setValue(const PString & value){
40 8 p_value = value;
41 8 }
42
43 ///Sets the isVarCall of the PNestedStr
44 /** @param isVarCall : isVarCall of the PNestedStr
45 */
46 8 void PNestedStr::setIsVarCall(bool isVarCall){
47 8 p_isVarCall = isVarCall;
48 8 }
49
50 ///Gets the value of the PNestedStr
51 /** @return value of the PNestedStr
52 */
53 9 const PString & PNestedStr::getValue() const{
54 9 return p_value;
55 }
56
57 ///Gets the value of the PNestedStr
58 /** @return value of the PNestedStr
59 */
60 PString & PNestedStr::getValue(){
61 return p_value;
62 }
63
64 ///Gets the isVarCall of the PNestedStr
65 /** @return isVarCall of the PNestedStr
66 */
67 8 bool PNestedStr::getIsVarCall() const{
68 8 return p_isVarCall;
69 }
70
71 ///Gets the isVarCall of the PNestedStr
72 /** @return isVarCall of the PNestedStr
73 */
74 bool & PNestedStr::getIsVarCall(){
75 return p_isVarCall;
76 }
77
78 ///Copy Function of class PNestedStr
79 /** @param other : PNestedStr we want ot copy
80 */
81 13 void PNestedStr::copyPNestedStr(const PNestedStr & other){
82 13 p_value = other.p_value;
83 13 p_isVarCall = other.p_isVarCall;
84 13 }
85
86 ///Constructor of class PNestedCall
87 4 PNestedCall::PNestedCall(){
88
89 4 }
90
91 ///Copy Constructor of class PNestedCall
92 /** @param other : PNestedCall we want ot copy
93 */
94 PNestedCall::PNestedCall(const PNestedCall & other){
95 copyPNestedCall(other);
96 }
97
98 ///Destructor of class PNestedCall
99 8 PNestedCall::~PNestedCall(){
100
101 }
102
103 ///Operator = of class PNestedCall
104 /** @param other : PNestedCall we want ot copy
105 * @return copied class PNestedCall
106 */
107 PNestedCall & PNestedCall::operator = (const PNestedCall & other){
108 copyPNestedCall(other);
109 return *this;
110 }
111
112 ///Sets the name of the PNestedCall
113 /** @param name : name of the PNestedCall
114 */
115 void PNestedCall::setName(const PString & name){
116 p_name = name;
117 }
118
119 ///Sets the vecNestedStr of the PNestedCall
120 /** @param vecNestedStr : vecNestedStr of the PNestedCall
121 */
122 void PNestedCall::setVecNestedStr(const std::vector<PNestedStr> & vecNestedStr){
123 p_vecNestedStr = vecNestedStr;
124 }
125
126 ///Gets the name of the PNestedCall
127 /** @return name of the PNestedCall
128 */
129 const PString & PNestedCall::getName() const{
130 return p_name;
131 }
132
133 ///Gets the name of the PNestedCall
134 /** @return name of the PNestedCall
135 */
136 PString & PNestedCall::getName(){
137 return p_name;
138 }
139
140 ///Gets the vecNestedStr of the PNestedCall
141 /** @return vecNestedStr of the PNestedCall
142 */
143 4 const std::vector<PNestedStr> & PNestedCall::getVecNestedStr() const{
144 4 return p_vecNestedStr;
145 }
146
147 ///Gets the vecNestedStr of the PNestedCall
148 /** @return vecNestedStr of the PNestedCall
149 */
150 8 std::vector<PNestedStr> & PNestedCall::getVecNestedStr(){
151 8 return p_vecNestedStr;
152 }
153
154 ///Copy Function of class PNestedCall
155 /** @param other : PNestedCall we want ot copy
156 */
157 void PNestedCall::copyPNestedCall(const PNestedCall & other){
158 p_name = other.p_name;
159 p_vecNestedStr = other.p_vecNestedStr;
160 }
161
162