geomc 1.0
A c++ linear algebra template library
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
BinLatticePartition< T, N, O > Class Template Reference

Classes

class  region_iterator
 

Public Types

typedef Rect< index_t, N >::point_t bin_t
 
typedef Rect< T, N >::point_t point_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 cellmap_t::iterator bin_iterator
 

Public Member Functions

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

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: