fix even more warnings and reduce some tests runtimes

tested under gcc and clang
This commit is contained in:
Johann Dreo 2020-04-28 17:41:50 +02:00
commit 9d3c848dfb
9 changed files with 29 additions and 26 deletions

View file

@ -56,7 +56,7 @@ public:
* particle whose indice is _oneIndice")
* @param _oneIndice - The indice of the particle in its population.
*/
bool contains(unsigned _oneIndice)
bool contains(unsigned _oneIndice) const
{
for (unsigned i=0;i< indicesList.size();i++)
{
@ -77,7 +77,7 @@ public:
/**
* Return the size of the neighborhood.
*/
unsigned size()
unsigned size() const
{
return indicesList.size();
@ -87,7 +87,7 @@ public:
* Return the "_index-th" particle of the neighborhood.
* Throw an exception if its not contained in the neighborhood.
*/
unsigned get(unsigned _index)
unsigned get(unsigned _index) const
{
if (_index < size())
return indicesList[_index];