Public Member Functions | Protected Attributes

OpenTissue::spatial_hashing::GridHashFunction Class Reference

#include <spatial_hashing_grid_function.h>

List of all members.

Public Member Functions

 GridHashFunction ()
 GridHashFunction (size_t size)
size_t operator() (int i, int j, int k)
void resize (size_t new_size)
size_t size () const

Protected Attributes

size_t m_size
int m_dx

Detailed Description

Hash Function suggested by K. Erleben.

Well it seems to work nice if one got a good nice even spread of objects...


Constructor & Destructor Documentation

OpenTissue::spatial_hashing::GridHashFunction::GridHashFunction (  )  [inline]
OpenTissue::spatial_hashing::GridHashFunction::GridHashFunction ( size_t  size  )  [inline]

Member Function Documentation

size_t OpenTissue::spatial_hashing::GridHashFunction::operator() ( int  i,
int  j,
int  k 
) [inline]
void OpenTissue::spatial_hashing::GridHashFunction::resize ( size_t  new_size  )  [inline]
size_t OpenTissue::spatial_hashing::GridHashFunction::size (  )  const [inline]

Member Data Documentation


The documentation for this class was generated from the following file: