Re: std::vector<Tile*> tiles; || std::vector<std::vector<Tile*> > tiles; || what? Ideas?




Thomas wrote:
> Basically my problem is that i want to be able to hold huge maps and
> even just having null pointers on a 5000,5000 grid or somthing huge for

Tile your map into smaller, 50x50 regions. This lets you trivially
compress the empty regions and only store real data.
--
Jeff Lait
(POWDER: http://www.zincland.com/powder)

.



Relevant Pages

  • Re: Run-time representation of classes
    ... byte or word maps rather than bits). ... which may hold any number of useful function pointers. ... for the tagged reference would be). ... for simple object types, the GC calls a "mark handler", which is a special ...
    (comp.compilers)
  • Re: Biz Tree Challenge
    ... is a programming technique that involves tables of pointers to ... relational rules make it easier to follow and disect structures. ... OO is generally maps of pointers to maps. ...
    (comp.object)
  • Re: Help with containers, pointers, and threads.
    ... use pointers to elements in maps and vectors. ... As I understand it, the pointers could be invalidated if I had say, a thread, adding items to the map or list in the background right? ... Are the .net collection classes thread safe? ...
    (borland.public.delphi.non-technical)
  • Help with containers, pointers, and threads.
    ... I use pointers to elements in maps and vectors. ... Are the .net collection classes thread safe? ...
    (borland.public.delphi.non-technical)
  • Re: Sorting a map by value
    ... >> You can't sort maps. ... >What are the arguments to this functor (values, pointers or ... The same as to std::less, namely (const reference to) key_type, and it ...
    (comp.lang.cpp)