20 #ifndef __CANVAS_LOOKUP_TABLE_H__
21 #define __CANVAS_LOOKUP_TABLE_H__
24 #include <boost/multi_array.hpp>
41 virtual std::vector<Item*>
get (
Rect const &) = 0;
76 friend class ::OptimizingLookupTableTest;
78 typedef std::vector<Item*>
Cell;
bool has_item_at_point(Duple const &point) const
std::vector< Item * > get(Rect const &)
DumbLookupTable(Item const &)
std::vector< Item * > items_at_point(Duple const &) const
virtual std::vector< Item * > get(Rect const &)=0
virtual bool has_item_at_point(Duple const &point) const =0
LookupTable(Item const &)
virtual std::vector< Item * > items_at_point(Duple const &) const =0
void area_to_indices(Rect const &, int &, int &, int &, int &) const
void point_to_indices(Duple, int &, int &) const
std::vector< Item * > Cell
static int default_items_per_cell
std::vector< Item * > items_at_point(Duple const &) const
std::vector< Item * > get(Rect const &)
bool has_item_at_point(Duple const &point) const
OptimizingLookupTable(Item const &, int)