Public Types | Public Member Functions | Public Attributes

OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell Class Reference

#include <spatial_hashing_grid.h>

List of all members.

Public Types

typedef
boost::indirect_iterator
< data_ptr_iterator, data_type
data_iterator

Public Member Functions

 Cell ()
 Cell (Grid *owner)
 Cell (Cell const &cell)
Celloperator= (Cell const &cell)
data_iterator begin ()
data_iterator end ()
void add (data_type const &data)
bool remove (data_type &data)
bool empty () const
size_t size () const

Public Attributes

size_t m_time_stamp
 Timestamp, used to mark last query when data were stored in the cell.
Gridm_owner
 The hash table the cell belongs to.
data_ptr_container m_data
 Data stored in hash cell.
size_t m_query_stamp
 Timestamp, used to guard against hash-collisions.
size_t m_next
 Next free position in data ptr container.

template<typename real_vector3, typename int_vector3, typename data_type_, typename hash_function_type>
class OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell


Member Typedef Documentation

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
typedef boost::indirect_iterator<data_ptr_iterator,data_type> OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::data_iterator

Constructor & Destructor Documentation

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::Cell (  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::Cell ( Grid owner  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::Cell ( Cell const &  cell  )  [inline]

Member Function Documentation

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
void OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::add ( data_type const &  data  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
data_iterator OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::begin (  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
bool OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::empty (  )  const [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
data_iterator OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::end (  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
Cell& OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::operator= ( Cell const &  cell  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
bool OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::remove ( data_type data  )  [inline]
template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
size_t OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::size (  )  const [inline]

Member Data Documentation

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
data_ptr_container OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::m_data

Data stored in hash cell.

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
size_t OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::m_next

Next free position in data ptr container.

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
Grid* OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::m_owner

The hash table the cell belongs to.

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
size_t OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::m_query_stamp

Timestamp, used to guard against hash-collisions.

template<typename real_vector3 , typename int_vector3 , typename data_type_ , typename hash_function_type >
size_t OpenTissue::spatial_hashing::Grid< real_vector3, int_vector3, data_type_, hash_function_type >::Cell::m_time_stamp

Timestamp, used to mark last query when data were stored in the cell.


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