#include <spatial_hashing_prime_number_function.h>
List of all members.
Detailed Description
Hash Function suggested by Teschner et. al.
Constructor & Destructor Documentation
OpenTissue::spatial_hashing::PrimeNumberHashFunction::PrimeNumberHashFunction |
( |
|
) |
[inline] |
OpenTissue::spatial_hashing::PrimeNumberHashFunction::PrimeNumberHashFunction |
( |
size_t |
size |
) |
[inline] |
Member Function Documentation
size_t OpenTissue::spatial_hashing::PrimeNumberHashFunction::operator() |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k | |
|
) |
| | [inline] |
Hash Function.
- Parameters:
-
| p | A discretized point (this is not verified by the implementation) identifying a unique grid cell. |
- Returns:
- The index of a hash cell, which the grid cell should be mapped to.
void OpenTissue::spatial_hashing::PrimeNumberHashFunction::resize |
( |
size_t |
new_size |
) |
[inline] |
The closest prime number is found and the size is set to this number.
- Parameters:
-
| size | New size of hashtable. |
size_t OpenTissue::spatial_hashing::PrimeNumberHashFunction::size |
( |
|
) |
const [inline] |
Member Data Documentation
The number of hash cells.
The documentation for this class was generated from the following file: