AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The best way of listing a Trie (https://forums.alliedmods.net/showthread.php?t=277102)

addicted2sex 01-02-2016 17:27

The best way of listing a Trie
 
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 ?!

Arkshine 01-02-2016 17:50

Re: The best way of listing a Trie
 
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.


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

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