Difference between revisions of "Core.Actions.MapClear"

From emotive
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''MapClear'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | MapClear | Removes all items from a Map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | - }}
 
{{ClassificationActivity | MapClear | Removes all items from a Map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | - }}
Line 14: Line 14:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Map | [[Map]] | [[Variable]] | - | [1] | Identifies the Map which be cleared. }}
+
{{TableRowPropertie1| Map | [[Core.DataTypes.ComplexDataType.ContainerDataType.Map|Map]] | [[Variable]] | - | [1] | Identifies the Map which be cleared. }}
 
|}
 
|}
  
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
public procedure main()
+
Map<Integer,Integer> Map1 = {1:2, 2:3};
{
 
  Map<Integer,Integer> Map1 = {1:2, 2:3};
 
  
  MapClear(Map1);
+
MapClear(Map1);
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[Assignment]] <br/>
+
[[Core.Actions.Assignment|Assignment]] <br/>
[[ProcedureCall]] <br/>
+
[[Core.Actions.ProcedureCall|ProcedureCall]] <br/>
[[ShiftRight]] <br/>
+
[[Core.Actions.ShiftRight|ShiftRight]] <br/>
[[ShiftLeft]] <br/>
+
[[Core.Actions.ShiftLeft|ShiftLeft]] <br/>
[[SetBit]] <br/>
+
[[Core.Actions.SetBit|SetBit]] <br/>
[[ReplaceSubByteField]] <br/>
+
[[Core.Actions.ReplaceSubByteField|ReplaceSubByteField]] <br/>
[[AppendByteField]] <br/>
+
[[Core.Actions.AppendByteField|AppendByteField]] <br/>
[[ListConcatenate]] <br/>
+
[[Core.Actions.ListConcatenate|ListConcatenate]] <br/>
[[ListAppendItems]] <br/>
+
[[Core.Actions.ListAppendItems|ListAppendItems]] <br/>
[[ListInsertItems]] <br/>
+
[[Core.Actions.ListInsertItems|ListInsertItems]] <br/>
[[ListRemoveItems]] <br/>
+
[[Core.Actions.ListRemoveItems|ListRemoveItems]] <br/>
[[ListClear]] <br/>
+
[[Core.Actions.ListClear|ListClear]] <br/>
[[MapUnion]] <br/>
+
[[Core.Actions.MapUnion|MapUnion]] <br/>
[[MapPutItems]] <br/>
+
[[Core.Actions.MapPutItems|MapPutItems]] <br/>
[[MapRemoveItems]]
+
[[Core.Actions.MapRemoveItems|MapRemoveItems]] <br/>

Latest revision as of 08:58, 16 February 2016

Classification

Name MapClear
Short Description Removes all items from a Map
Class Action
Extension OTX Core library
Group MapModifiers related actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

MapClear(MapVariable);

Description

The OTX MapRemoveItems activity removes all items from a Map

Properties

Name Data Type Class Default Cardinality Description
Map Map Variable - [1] Identifies the Map which be cleared.

OTL Examples

Map<Integer,Integer> Map1 = {1:2, 2:3};

MapClear(Map1);

See also

Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems