Rename to StringMap.
This commit is contained in:
parent
4ee04b8a7b
commit
2724659be8
@ -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;
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user