IMP  2.1.1
The Integrative Modeling Platform
IMP::multifit::GeometricHash< T, D > Class Template Reference

Geometric Hash table. More...

#include <IMP/multifit/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::base::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 ()
 
iterator end ()
 
const_iterator end () const
 
BucketList get_buckets () const
 
GeomMap const & Map () const
 
HashResult neighbors (Distance dt, const Point &center, double radius) const
 
template<typename X >
HashResult neighbors (Distance dt, const X &center_coordinates, double radius) const
 
void neighbors (Distance dt, const Point &center, double radius, HashResultT &values)
 
template<typename X >
HashResult neighbors (const Point &center, const X &radii) const
 
HashResult neighbors (const Point &center)
 
template<typename X >
HashResult neighbors (const X &center_coordinates)
 
HashResultT neighbors_data (Distance dt, const Point &center, double radius) const
 
double resolution (int axis=0) const
 

Detailed Description

template<typename T, size_t D>
class IMP::multifit::GeometricHash< T, D >

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 27 of file GeometricHash.h.


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