ENH: adding const access to reactingMixture list

This commit is contained in:
Sergio Ferraris
2013-11-25 10:46:52 +00:00
parent c3e9d8bd20
commit 72530d40ba

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -96,6 +96,11 @@ public:
{
return PtrList<Reaction<ThermoType> >::operator[](i);
}
const Reaction<ThermoType>& operator [] (const label i) const
{
return PtrList<Reaction<ThermoType> >::operator[](i);
}
};