Commit 81f3b580 authored by jlopez's avatar jlopez
Browse files

Rename

parent 9d572fab
......@@ -27,11 +27,11 @@ public:
private:
std::vector<unsigned long> P;
std::vector<double> R;
std::vector<double> T;
std::vector<unsigned long> NM;
std::vector<double> NPC;
std::vector<unsigned long> m_P;
std::vector<double> m_R;
std::vector<double> m_T;
std::vector<unsigned long> m_NM;
std::vector<double> m_NPC;
};
......
......@@ -5,49 +5,49 @@
#include "../headers/Rescuers.h"
Rescuers::Rescuers(unsigned long size) {
P.resize(size);
R.resize(size);
T.resize(size);
NM.resize(size);
NPC.resize(size);
m_P.resize(size);
m_R.resize(size);
m_T.resize(size);
m_NM.resize(size);
m_NPC.resize(size);
}
unsigned long Rescuers::getP(unsigned long index) const {
return P.at(index);
return m_P.at(index);
}
double Rescuers::getR(unsigned long index) const {
return R.at(index);
return m_R.at(index);
}
double Rescuers::getT(unsigned long index) const {
return T.at(index);
return m_T.at(index);
}
unsigned long Rescuers::getNM(unsigned long index) const {
return NM.at(index);
return m_NM.at(index);
}
double Rescuers::getNPC(unsigned long index) const {
return NPC.at(index);
return m_NPC.at(index);
}
void Rescuers::setP(unsigned long index, unsigned long value) {
P[index] = value;
m_P[index] = value;
}
void Rescuers::setR(unsigned long index, double value) {
R[index] = value;
m_R[index] = value;
}
void Rescuers::setT(unsigned long index, double value) {
T[index] = value;
m_T[index] = value;
}
void Rescuers::setNM(unsigned long index, unsigned long value) {
NM[index] = value;
m_NM[index] = value;
}
void Rescuers::setNPC(unsigned long index, double value) {
NPC[index] = value;
m_NPC[index] = value;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment