IMP Reference Guide
2.6.1
The Integrative Modeling Platform
|
Geometric Hash table. More...
#include <IMP/multifit/GeometricHash.h>
Geometric Hash table.
GeometricHash<T, D> stores values of type T with D-dimensional points whose coordinates are of type double inside D-dimensional buckets (cubes)
Definition at line 26 of file GeometricHash.h.
Public Types | |
typedef boost::array< int, D > | Bucket |
typedef std::vector< Bucket > | BucketList |
typedef GeomMap::const_iterator | const_iterator |
enum | Distance { INF, EUCLIDEAN } |
typedef std::map< const Bucket, PointList > | GeomMap |
typedef std::vector< const ValueType * > | HashResult |
typedef IMP::Vector< T > | HashResultT |
typedef GeomMap::iterator | iterator |
typedef algebra::VectorD< D > | Point |
typedef std::vector< ValueType > | PointList |
typedef std::pair< Point, T > | ValueType |
Public Member Functions | |
GeometricHash (double radius=1) | |
template<typename X > | |
GeometricHash (const X &radii) | |
GeometricHash (const algebra::VectorD< D > &radii) | |
void | add (const Point &pt, const T &data) |
template<typename X > | |
void | add (const X &coordinates, const T &data) |
iterator | begin () |
const_iterator | begin () const |
PointList const * | bucket (const Point &pt) const |
void | clear () |
Remove all data from the hash map. More... | |
iterator | end () |
const_iterator | end () const |
BucketList | get_buckets () const |
Return vector of buckets. More... | |
GeomMap const & | Map () const |
Return the hash map. More... | |
HashResult | neighbors (Distance dt, const Point ¢er, double radius) const |
template<typename X > | |
HashResult | neighbors (Distance dt, const X ¢er_coordinates, double radius) const |
void | neighbors (Distance dt, const Point ¢er, double radius, HashResultT &values) |
template<typename X > | |
HashResult | neighbors (const Point ¢er, const X &radii) const |
HashResult | neighbors (const Point ¢er) |
template<typename X > | |
HashResult | neighbors (const X ¢er_coordinates) |
HashResultT | neighbors_data (Distance dt, const Point ¢er, double radius) const |
double | resolution (int axis=0) const |
void IMP::multifit::GeometricHash< T, D >::clear | ( | ) |
Remove all data from the hash map.
Definition at line 156 of file GeometricHash.h.
BucketList IMP::multifit::GeometricHash< T, D >::get_buckets | ( | ) | const |
Return vector of buckets.
Definition at line 147 of file GeometricHash.h.
GeomMap const& IMP::multifit::GeometricHash< T, D >::Map | ( | ) | const |
Return the hash map.
Definition at line 136 of file GeometricHash.h.