Rename to StringMap.

This commit is contained in:
David Anderson 2014-06-23 20:06:13 -07:00
parent 4ee04b8a7b
commit 2724659be8
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@
* *
* @return New Map Handle, which must be freed via CloseHandle(). * @return New Map Handle, which must be freed via CloseHandle().
*/ */
native AdtMap:CreateTrie(); native AdtStringMap:CreateTrie();
/** /**
* Sets a value in a hash map, either inserting a new entry or replacing an old one. * Sets a value in a hash map, either inserting a new entry or replacing an old one.
@ -156,8 +156,8 @@ native ClearTrie(Handle:map);
native GetTrieSize(Handle:map); native GetTrieSize(Handle:map);
/* Object-oriented wrapper for maps. */ /* Object-oriented wrapper for maps. */
methodmap AdtMap < Handle { methodmap StringMap < Handle {
public AdtMap() = CreateTrie; public StringMap() = CreateTrie;
public SetValue() = SetTrieValue; public SetValue() = SetTrieValue;
public SetArray() = SetTrieArray; public SetArray() = SetTrieArray;
public SetString() = SetTrieString; public SetString() = SetTrieString;

View File

@ -17,7 +17,7 @@ public OnPluginStart()
public Action:RunTests(argc) public Action:RunTests(argc)
{ {
new AdtMap:map = AdtMap(); new StringMap:map = StringMap();
for (new i = 0; i < 64; i++) { for (new i = 0; i < 64; i++) {
new String:buffer[24]; new String:buffer[24];