Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_MapHelperT< Class T, Class U > Interface Template Reference

T being the key type and U being the value type In the case of references, simply use SCR_MapHelperT<ClassA, ClassB>, not SCR_MapHelperT<ref ClassA, ref ClassB> Some methods may seem quadruplicated but they are actually variants for <T, U>, <T, ref U>, <ref T, U> and <ref T, ref U> More...

Static Public Member Functions

static bool AreEqual (notnull map< T, U > map1, notnull map< T, U > map2)
 Check if two maps are equal - shallow check, only class references are verified (not same class/same value)
 
static bool AreEqual (notnull map< T, ref U > map1, notnull map< T, ref U > map2)
 Check if two maps are equal - shallow check, only class references are verified (not same class/same value)
 
static bool AreEqual (notnull map< ref T, U > map1, notnull map< ref T, U > map2)
 Check if two maps are equal - shallow check, only class references are verified (not same class/same value)
 
static bool AreEqual (notnull map< ref T, ref U > map1, notnull map< ref T, ref U > map2)
 Check if two maps are equal - shallow check, only class references are verified (not same class/same value)
 
static map< T, U > ArraysToMap (notnull array< T > indices, notnull array< U > values)
 Create a map with indices[x] -> values[x] map.
 
static map< T, ref U > ArraysToMap (notnull array< T > indices, notnull array< ref U > values)
 Create a map with indices[x] -> values[x] map.
 
static map< ref T, U > ArraysToMap (notnull array< ref T > indices, notnull array< U > values)
 Create a map with indices[x] -> values[x] map.
 
static map< ref T, ref U > ArraysToMap (notnull array< ref T > indices, notnull array< ref U > values)
 Create a map with indices[x] -> values[x] map.
 
static array< T > GetKeys (notnull map< T, U > input)
 
static array< T > GetKeys (notnull map< T, ref U > input)
 
static array< ref T > GetKeys (notnull map< ref T, U > input)
 
static array< ref T > GetKeys (notnull map< ref T, ref U > input)
 
static array< U > GetElements (notnull map< T, U > input)
 
static array< ref U > GetElements (notnull map< T, ref U > input)
 
static array< U > GetElements (notnull map< ref T, U > input)
 
static array< ref U > GetElements (notnull map< ref T, ref U > input)
 
static void InsertAll (notnull map< T, U > receiver, notnull map< T, U > sender, bool allowOverride=true)
 
static void InsertAll (notnull map< T, ref U > receiver, notnull map< T, ref U > sender, bool allowOverride=true)
 
static void InsertAll (notnull map< ref T, U > receiver, notnull map< ref T, U > sender, bool allowOverride=true)
 
static void InsertAll (notnull map< ref T, ref U > receiver, notnull map< ref T, ref U > sender, bool allowOverride=true)
 

Detailed Description

T being the key type and U being the value type In the case of references, simply use SCR_MapHelperT<ClassA, ClassB>, not SCR_MapHelperT<ref ClassA, ref ClassB> Some methods may seem quadruplicated but they are actually variants for <T, U>, <T, ref U>, <ref T, U> and <ref T, ref U>

Member Function Documentation

◆ AreEqual() [1/4]

static bool SCR_MapHelperT< Class T, Class U >.AreEqual ( notnull map< ref T, ref U > map1,
notnull map< ref T, ref U > map2 )
static

Check if two maps are equal - shallow check, only class references are verified (not same class/same value)

Parameters
[in]map1
[in]map2
Returns
true if equal, false if not

◆ AreEqual() [2/4]

static bool SCR_MapHelperT< Class T, Class U >.AreEqual ( notnull map< ref T, U > map1,
notnull map< ref T, U > map2 )
static

Check if two maps are equal - shallow check, only class references are verified (not same class/same value)

Parameters
[in]map1
[in]map2
Returns
true if equal, false if not

◆ AreEqual() [3/4]

static bool SCR_MapHelperT< Class T, Class U >.AreEqual ( notnull map< T, ref U > map1,
notnull map< T, ref U > map2 )
static

Check if two maps are equal - shallow check, only class references are verified (not same class/same value)

Parameters
[in]map1
[in]map2
Returns
true if equal, false if not

◆ AreEqual() [4/4]

static bool SCR_MapHelperT< Class T, Class U >.AreEqual ( notnull map< T, U > map1,
notnull map< T, U > map2 )
static

Check if two maps are equal - shallow check, only class references are verified (not same class/same value)

Parameters
[in]map1
[in]map2
Returns
true if equal, false if not

◆ ArraysToMap() [1/4]

static map< ref T, ref U > SCR_MapHelperT< Class T, Class U >.ArraysToMap ( notnull array< ref T > indices,
notnull array< ref U > values )
static

Create a map with indices[x] -> values[x] map.

The result will be of the size of the smallest array.

Parameters
[in]indices
[in]values
Returns

◆ ArraysToMap() [2/4]

static map< ref T, U > SCR_MapHelperT< Class T, Class U >.ArraysToMap ( notnull array< ref T > indices,
notnull array< U > values )
static

Create a map with indices[x] -> values[x] map.

The result will be of the size of the smallest array.

Parameters
[in]indices
[in]values
Returns

◆ ArraysToMap() [3/4]

static map< T, ref U > SCR_MapHelperT< Class T, Class U >.ArraysToMap ( notnull array< T > indices,
notnull array< ref U > values )
static

Create a map with indices[x] -> values[x] map.

The result will be of the size of the smallest array.

Parameters
[in]indices
[in]values
Returns

◆ ArraysToMap() [4/4]

static map< T, U > SCR_MapHelperT< Class T, Class U >.ArraysToMap ( notnull array< T > indices,
notnull array< U > values )
static

Create a map with indices[x] -> values[x] map.

The result will be of the size of the smallest array.

Parameters
[in]indices
[in]values
Returns

◆ GetElements() [1/4]

static array< ref U > SCR_MapHelperT< Class T, Class U >.GetElements ( notnull map< ref T, ref U > input)
static
Parameters
[in]input
Returns

◆ GetElements() [2/4]

static array< U > SCR_MapHelperT< Class T, Class U >.GetElements ( notnull map< ref T, U > input)
static
Parameters
[in]input
Returns

◆ GetElements() [3/4]

static array< ref U > SCR_MapHelperT< Class T, Class U >.GetElements ( notnull map< T, ref U > input)
static
Parameters
[in]input
Returns

◆ GetElements() [4/4]

static array< U > SCR_MapHelperT< Class T, Class U >.GetElements ( notnull map< T, U > input)
static
Parameters
[in]input
Returns

◆ GetKeys() [1/4]

static array< ref T > SCR_MapHelperT< Class T, Class U >.GetKeys ( notnull map< ref T, ref U > input)
static
Parameters
[in]input
Returns

◆ GetKeys() [2/4]

static array< ref T > SCR_MapHelperT< Class T, Class U >.GetKeys ( notnull map< ref T, U > input)
static
Parameters
[in]input
Returns

◆ GetKeys() [3/4]

static array< T > SCR_MapHelperT< Class T, Class U >.GetKeys ( notnull map< T, ref U > input)
static
Parameters
[in]input
Returns

◆ GetKeys() [4/4]

static array< T > SCR_MapHelperT< Class T, Class U >.GetKeys ( notnull map< T, U > input)
static
Parameters
[in]input
Returns

◆ InsertAll() [1/4]

static void SCR_MapHelperT< Class T, Class U >.InsertAll ( notnull map< ref T, ref U > receiver,
notnull map< ref T, ref U > sender,
bool allowOverride = true )
static
Parameters
[in]receiver
[in]sender
[in]allowOverride

◆ InsertAll() [2/4]

static void SCR_MapHelperT< Class T, Class U >.InsertAll ( notnull map< ref T, U > receiver,
notnull map< ref T, U > sender,
bool allowOverride = true )
static
Parameters
[in]receiver
[in]sender
[in]allowOverride

◆ InsertAll() [3/4]

static void SCR_MapHelperT< Class T, Class U >.InsertAll ( notnull map< T, ref U > receiver,
notnull map< T, ref U > sender,
bool allowOverride = true )
static
Parameters
[in]receiver
[in]sender
[in]allowOverride

◆ InsertAll() [4/4]

static void SCR_MapHelperT< Class T, Class U >.InsertAll ( notnull map< T, U > receiver,
notnull map< T, U > sender,
bool allowOverride = true )
static
Parameters
[in]receiver
[in]sender
[in]allowOverride

The documentation for this interface was generated from the following file: