geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
BinLatticePartition< T, N, O > Class Template Reference

Classes

class  region_iterator

Public Types

typedef cellmap_t::iterator bin_iterator
typedef Rect< index_t, N >::point_t bin_t
typedef std::pair< Vec< T, N >, O > item_t
typedef boost::transform_iterator< item_t &(*)(typename cellmap_t::value_type &), typename cellmap_t::iterator > iterator
typedef Rect< T, N >::point_t point_t

Public Member Functions

 BinLatticePartition (T cellsize=1)
iterator begin ()
bin_t binOf (point_t location)
bin_iterator binsBegin ()
bin_iterator binsEnd ()
void clear ()
iterator end ()
void erase (const bin_iterator &i)
void erase (const iterator &i)
void insert (point_t location, O value)
region_iterator query (point_t pt, T radius)
region_iterator query (Rect< T, N > region)
size_t size ()

Protected Types

typedef std::tr1::unordered_multimap< bin_t, item_t > cellmap_t

Protected Member Functions

Rect< index_t, N > binRegion (Rect< T, N > r)

Static Protected Member Functions

static item_t & cell_unwrapper (typename cellmap_t::value_type &item)

Protected Attributes

cellmap_t _cells
_cellsize

Friends

class region_iterator

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