Tmap - Where is the documentation on this?
BlitzMax Forums/BlitzMax Beginners Area/Tmap - Where is the documentation on this?
| ||
I can't find much information on TMaps in the docs. Any idea which section i should be looking at? Cheers Glenn |
| ||
Help/Misc/Maps (if you are using MaxIDE CE) |
| ||
And if that fails: http://en.wikipedia.org/wiki/Red-black_tree |
| ||
http://en.wikibooks.org/wiki/BlitzMax/Modules/Brl/Map |
| ||
I am using the default BRL IDE. There isn't a Help/Misc section. I will check out the other links later tonight. Regards glenn |
| ||
Help -> Maps appears in my IDE... |
| ||
I have a Help/Modules/Maps but it simply lists the functions. It doesn't tell me anything about what it is for. Still, i am about to checkout the 2 links above. Cheers Glenn |
| ||
It is for what you use it, similar as lists. If you don't know whats the use for an O(log(n)) assoziative storage structure is, then you don't need it :) |
| ||
Well the second link made more sense than the first one, but i still have no idea what they are for. Because it is called a MAP i think of maps for games and i guess path finding would be possible with it, BUT (and there is always a but) the example use words. Can i get a few real world usages for TMaps? Cheers Glenn |
| ||
@Dreamora - you may well be right. i might not need it. but i keep seeing people talk about tmaps. lists i understand. arrays i understand. some other stuff i understand (lol) maps - i am still a blank... |
| ||
TMaps = balanced binary tree A fast way to store data dictionary like and retrieve it again and that not index based but key based, so theoretically you can put anything in. They are NOT for tilemaps and the like, map is the computer science name for data structures that map a free choosable key onto a value in some way. |
| ||
aha, now i understand. that was much simpler than what i had read on the other sites. Cheers glenn |