Raised This Month: $ Target: $400
 0% 

The best way of listing a Trie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
addicted2sex
Senior Member
Join Date: May 2009
Location: localhost
Old 01-02-2016 , 17:27   The best way of listing a Trie
Reply With Quote #1

The idea is to be able to list all records in a Trie without knowing anything about the data in them (only we know that the Trie has key [nickname] and a value [unique ID]), only the Trie handle ?!
__________________
Let 7he gr0ovE r3Lease y0ur m!nd

Last edited by addicted2sex; 01-02-2016 at 17:29.
addicted2sex is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-02-2016 , 17:50   Re: The best way of listing a Trie
Reply With Quote #2

For 1.8.2, you can check CellTravTrie include, it's a combinaison of Trie + Array. It's more expensive, but if you need absolutely that, it may help.

In 1.8.3-dev, you have some TrieSnapshot API which allows to create a snapshot of your keys, then you can list them. It will be likely removed or replaced as design kind of suck right now.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode