Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section describes functions that enable use of hash maps.

The following functions for Map described here are:

Table of Contents
maxLevel1


mapClear

Removes all entries in a map.

...

Info
titleExample - Using mapSet

An example of a map definition, including assignment of the first key/value pair.

Code Block
map<int,string> mySyncMap = mapCreateSync( int, string);
mapSet( mySyncMap, 55, "Successful" );



mapCreateOrdered

Creates a new, empty ordered map. This function may be useful when the order of keys is of interest.

Code Block
map<any,any> mapCreateOrdered
 ( any  myKeyType , 
 any  myValueType );


ParameterDescription

myKeyType

Defines the data type of the keys in the map

myValueType

Defines the data type of the values, associated with the keys in the map

Returns

An empty map


Info
titleExample - Using mapCreate

An example of a map definition, including assignment of the first key/value pair.

Code Block
map<string,int> myOrderedMap = mapCreateOrdered( string, int); 
mapSet( myOrderedMap, "Key1", 22 );
mapSet( myOrderedMap, "Key2", 45 );



mapGet

Retrieves the value of a specified key in a map.

...