mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
added const versions
git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6316 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
4b5f269224
commit
4f70c3947b
10
Surface.cxx
10
Surface.cxx
@ -804,6 +804,16 @@ Find_charge(std::string str)
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
const cxxSurfaceCharge * cxxSurface::
|
||||
Find_charge(std::string str)const
|
||||
{
|
||||
for (size_t i = 0; i < this->surface_charges.size(); i++)
|
||||
{
|
||||
if (Utilities::strcmp_nocase(str.c_str(), this->surface_charges[i].Get_name().c_str()) == 0)
|
||||
return &(this->surface_charges[i]);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
void cxxSurface::
|
||||
Sort_comps(void)
|
||||
{
|
||||
|
||||
@ -36,6 +36,7 @@ public:
|
||||
void totalize();
|
||||
cxxSurfaceComp *Find_comp(std::string str);
|
||||
cxxSurfaceCharge *Find_charge(const std::string str);
|
||||
const cxxSurfaceCharge *Find_charge(const std::string str)const;
|
||||
void Sort_comps();
|
||||
|
||||
#ifdef USE_MPI
|
||||
@ -47,6 +48,7 @@ public:
|
||||
void multiply(LDBLE extensive);
|
||||
|
||||
std::vector < cxxSurfaceComp > & Get_surface_comps() {return this->surface_comps;}
|
||||
const std::vector < cxxSurfaceComp > & Get_surface_comps()const {return this->surface_comps;}
|
||||
void Set_surface_comps(std::vector < cxxSurfaceComp > &sc) {this->surface_comps = sc;}
|
||||
std::vector < cxxSurfaceCharge > & Get_surface_charges() {return this->surface_charges;}
|
||||
void Set_surface_charges(std::vector < cxxSurfaceCharge > &sc) {this->surface_charges = sc;}
|
||||
@ -72,9 +74,9 @@ public:
|
||||
void Set_transport(bool tf) {transport = tf;}
|
||||
cxxNameDouble & Get_totals() {return this->totals;}
|
||||
void Get_totals(cxxNameDouble &nd) {this->totals = nd;}
|
||||
bool Get_solution_equilibria(void) {return solution_equilibria;}
|
||||
bool Get_solution_equilibria(void)const {return solution_equilibria;}
|
||||
void Set_solution_equilibria(bool tf) {solution_equilibria = tf;}
|
||||
int Get_n_solution(void) {return n_solution;}
|
||||
int Get_n_solution(void)const {return n_solution;}
|
||||
void Set_n_solution(int i) {n_solution = i;}
|
||||
|
||||
protected:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user