@@ -251,7 +251,7 @@ int SBF::GetCell(unsigned int index) const
251
251
// Prints the filter and related statistics to the standart output
252
252
// mode: 0 prints SBF stats only
253
253
// mode: 1 prints SBF information and the full SBF content
254
- void SBF::PrintFilter (int mode) const
254
+ void SBF::PrintFilter (const int mode) const
255
255
{
256
256
int potential_elements;
257
257
@@ -313,7 +313,7 @@ void SBF::PrintFilter(int mode) const
313
313
// Prints the filter and related statistics onto a CSV file (path)
314
314
// mode: 1 writes SBF metadata (CSV: key;value)
315
315
// mode: 0 writes SBF cells (CSV: value)
316
- void SBF::SaveToDisk (std::string path, int mode)
316
+ void SBF::SaveToDisk (const std::string path, int mode)
317
317
{
318
318
std::ofstream myfile;
319
319
@@ -375,7 +375,7 @@ void SBF::SaveToDisk(std::string path, int mode)
375
375
// char *string element to be mapped
376
376
// int size length of the element
377
377
// int area the area label
378
- void SBF::Insert (char *string, int size, int area)
378
+ void SBF::Insert (const char *string, const int size, const int area)
379
379
{
380
380
char * buffer = new char [size];
381
381
@@ -432,7 +432,7 @@ void SBF::Insert(char *string, int size, int area)
432
432
// belongs to a set, 0 otherwise.
433
433
// char *string the element to be verified
434
434
// int size length of the element
435
- int SBF::Check (char *string, int size) const
435
+ int SBF::Check (const char *string, const int size) const
436
436
{
437
437
char * buffer = new char [size];
438
438
int area = 0 ;
@@ -622,7 +622,7 @@ void SBF::SetAreaFpp()
622
622
623
623
624
624
// Returns the number of inserted elements for the input area
625
- int SBF::GetAreaMembers (int area) const
625
+ int SBF::GetAreaMembers (const int area) const
626
626
{
627
627
return this ->AREA_members [area];
628
628
}
@@ -675,7 +675,7 @@ float SBF::GetFilterFpp() const
675
675
676
676
677
677
// Returns the expected emersion value for the input area
678
- float SBF::GetExpectedAreaEmersion (int area) const
678
+ float SBF::GetExpectedAreaEmersion (const int area) const
679
679
{
680
680
double p;
681
681
int nfill = 0 ;
@@ -692,7 +692,7 @@ float SBF::GetExpectedAreaEmersion(int area) const
692
692
693
693
694
694
// Returns the emersion value for the input area
695
- float SBF::GetAreaEmersion (int area) const
695
+ float SBF::GetAreaEmersion (const int area) const
696
696
{
697
697
float ret, a, b;
698
698
if ((this ->AREA_members [area]==0 ) || (this ->HASH_number ==0 )) ret = -1 ;
0 commit comments