GrGen.NET v4.4 API: the libGr class library (the type exact interface gets generated)
ContainerHelper Class
Namespacesde.unika.ipd.grGen.libGrContainerHelper
Declaration Syntax
C#
public static class ContainerHelper
Members
All MembersMethods



IconMemberDescription
ArrayAsDeque<(Of <<'(V>)>>)(List<(Of <<'(V>)>>))
Creates a new deque containing all values from the given list.

ArrayAsMap<(Of <<'(V>)>>)(List<(Of <<'(V>)>>))
Creates a new dictionary representing a map containing all values from the given list, mapped to by their index.

ArrayAsSet<(Of <<'(V>)>>)(List<(Of <<'(V>)>>))
Creates a new dictionary representing a set containing all values from the given list.

ArrayAsString(List<(Of <<'(String>)>>), String)
ArrayOrderAscending<(Of <<'(V>)>>)(List<(Of <<'(V>)>>))
Creates a new array containing the content of the old array but sorted.

ArrayOrderAscending(List<(Of <<'(String>)>>))
Creates a new array containing the content of the old array but sorted.

ArrayReverse<(Of <<'(V>)>>)(List<(Of <<'(V>)>>))
Creates a new array containing the content of the old array but reversed.

Clone(Object)
Creates a shallow clone of the given container.

Concatenate<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Creates a new dynamic array and appends all values first from a and then from b.

Concatenate<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Creates a new deque and appends all values first from a and then from b.

ConcatenateChanged<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Appends all values from dynamic array b to a.

ConcatenateChanged<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>), IGraph, INode, AttributeType)
Appends all values from dynamic array b to a.

ConcatenateChanged<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>), IGraph, IEdge, AttributeType)
Appends all values from dynamic array b to a.

ConcatenateChanged<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Appends all values from deque b to a.

ConcatenateChanged<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>), IGraph, INode, AttributeType)
Appends all values from deque b to a.

ConcatenateChanged<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>), IGraph, IEdge, AttributeType)
Appends all values from deque b to a.

ConcatenateIDeque(IDeque, IDeque)
ConcatenateIList(IList, IList)
DequeAsArray<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>))
Creates a new list representing an array containing all values from the given deque.

DequeAsSet<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>))
Creates a new dictionary representing a set containing all values from the given list.

Domain<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>))
Creates a new dictionary representing a set, containing all keys from the given dictionary representing a map map.

Equal<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a equals set/map b. For a map, key and value must be same to be equal.

Equal<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a equals List b. Requires same values at same index for being true.

Equal<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a equals Deque b. Requires same values at same position for being true.

EqualIDeque(IDeque, IDeque)
EqualIDictionary(IDictionary, IDictionary)
Checks if set/map a equals set/map b. For a map, key and value must be same to be equal.

EqualIList(IList, IList)
Except<(Of <<'(K, V, W>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, W>)>>))
Creates a new dictionary containing all key/value pairs from a whose keys are not contained in b.

ExceptChanged<(Of <<'(K, V, W>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, W>)>>))
Removes all key/value pairs from set/map a whose keys are contained in b.

ExceptChanged<(Of <<'(K, V, W>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, W>)>>), IGraph, INode, AttributeType)
Removes all key/value pairs from map a whose keys are contained in b.

ExceptChanged<(Of <<'(K, V, W>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, W>)>>), IGraph, IEdge, AttributeType)
Removes all key/value pairs from map a whose keys are contained in b.

ExceptChanged<(Of <<'(K, W>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, W>)>>), IGraph, INode, AttributeType)
Removes all key/value pairs from set a whose keys are contained in b.

ExceptChanged<(Of <<'(K, W>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, W>)>>), IGraph, IEdge, AttributeType)
Removes all key/value pairs from set a whose keys are contained in b.

GetDequeType(Object, Type%)
If deque is Deque, the Deque is returned together with its value type

GetDequeType(Type, Type%)
The value type of the Deque is returned

GetDictionaryTypes(Object, Type%, Type%)
If dict is dictionary, the dictionary is returned together with its key and value type

GetDictionaryTypes(Type, Type%, Type%)
The key and value types are returned of the dictionary

GetListType(Object, Type%)
If array is List, the List is returned together with its value type

GetListType(Type, Type%)
The value type of the List is returned

GetQualifiedTypeName(String, IGraphModel)
Returns the qualified type name for the type name given

GetTypeFromNameForContainer(String, IGraph)
Returns type object for type name string, to be used for container class, i.e. Dictionary, List, Deque

GetTypeFromNameForContainer(String, IGraphModel)
Returns type object for type name string, to be used for container class, i.e. Dictionary, List, Deque

GreaterOrEqual<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a is a superset/map of b. For a map, key and value must be same to be equal.

GreaterOrEqual<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a is a superlist of b. Requires a to contain more or same number of entries than b and same values at same index for being true.

GreaterOrEqual<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a is a superdeque of b. Requires a to contain more or same number of entries than b and same values at same position for being true.

GreaterOrEqualIDeque(IDeque, IDeque)
GreaterOrEqualIDictionary(IDictionary, IDictionary)
GreaterOrEqualIList(IList, IList)
GreaterThan<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a is a proper superset/map of b. For a map, key and value must be same to be equal.

GreaterThan<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a is a proper superlist of b. Requires a to contain more entries than b and same values at same index for being true.

GreaterThan<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a is a proper superdeque of b. Requires a to contain more entries than b and same values at same position for being true.

GreaterThanIDeque(IDeque, IDeque)
GreaterThanIDictionary(IDictionary, IDictionary)
GreaterThanIList(IList, IList)
IfAttributeOfElementIsContainerThenCloneContainer(IGraphElement, String, Object, AttributeType%)
If the attribute of the given name of the given element is a container attribute then return a clone of the given container value, otherwise just return the original value; additionally returns the AttributeType of the attribute of the element.

IfAttributeOfElementIsContainerThenCloneContainer(IGraphElement, String, Object)
If the attribute of the given name of the given element is a conatiner attribute then return a clone of the given container value, otherwise just return the original value

IndexOf<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), V)
Returns the first position of entry in the array a

IndexOf(IList, Object)
IndexOf<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), V, Int32)
IndexOf(IList, Object, Int32)
IndexOf<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), V)
Returns the first position of entry in the deque a

IndexOf(IDeque, Object)
IndexOf<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), V, Int32)
IndexOf(IDeque, Object, Int32)
IndexOfOrdered<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), V)
Returns the first position of entry in the array a that must be ordered with a binary search

IndexOfOrdered(List<(Of <<'(String>)>>), String)
Intersect<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Creates a new dictionary containing all key/value pairs from a whose keys are also contained in b. If both dictionaries contain one key, the value from a takes precedence, in contrast to union.

IntersectChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Removes all key/value pairs from set/map a whose keys are not also contained in b. If both dictionaries contain one key, the value from a takes precedence, in contrast to union.

IntersectChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>), IGraph, INode, AttributeType)
Removes all key/value pairs from map a whose keys are not also contained in b. If both dictionaries contain one key, the value from a takes precedence, in contrast to union.

IntersectChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>), IGraph, IEdge, AttributeType)
Removes all key/value pairs from map a whose keys are not also contained in b. If both dictionaries contain one key, the value from a takes precedence, in contrast to union.

IntersectChanged<(Of <<'(K>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, SetValueType>)>>), IGraph, INode, AttributeType)
Removes all key/value pairs from set a whose keys are not also contained in b.

IntersectChanged<(Of <<'(K>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, SetValueType>)>>), IGraph, IEdge, AttributeType)
Removes all key/value pairs from set a whose keys are not also contained in b.

LastIndexOf<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), V)
Returns the first position from the end inwards of entry in the array a

LastIndexOf(IList, Object)
LastIndexOf<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), V, Int32)
LastIndexOf(IList, Object, Int32)
LastIndexOf<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), V)
Returns the first position from the end inwards of entry in the deque a

LastIndexOf(IDeque, Object)
LessOrEqual<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a is a subset/map of b. For a map, key and value must be same to be equal.

LessOrEqual<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a is a sublist of b. Requires a to contain less or same number of entries than b and same values at same index for being true.

LessOrEqual<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a is a subdeque of b. Requires a to contain less or same number of entries than b and same values at same positions for being true.

LessOrEqualIDeque(IDeque, IDeque)
LessOrEqualIDictionary(IDictionary, IDictionary)
LessOrEqualIList(IList, IList)
LessThan<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a is a proper subset/map of b. For a map, key and value must be same to be equal.

LessThan<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a is a proper sublist of b. Requires a to contain less entries than b and same values at same index for being true.

LessThan<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a is a proper subseque of b. Requires a to contain less entries than b and same values at same position for being true.

LessThanIDeque(IDeque, IDeque)
LessThanIDictionary(IDictionary, IDictionary)
LessThanIList(IList, IList)
MapAsArray<(Of <<'(V>)>>)(Dictionary<(Of <<'(Int32, V>)>>))
Creates a new list representing an array, containing all values from the given dictionary representing a map map from int to some values.

NewDeque(Type)
Creates a new Deque of the given value type

NewDeque(Type, Object)
Creates a new Deque of the given value type, initialized with the content of the old Deque (clones the old Deque)

NewDictionary(Type, Type)
Creates a new dictionary of the given key type and value type

NewDictionary(Type, Type, Object)
Creates a new dictionary of the given key type and value type, initialized with the content of the old dictionary (clones the old dictionary)

NewList(Type)
Creates a new List of the given value type

NewList(Type, Object)
Creates a new List of the given value type, initialized with the content of the old List (clones the old List)

NotEqual<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
Checks if set/map a is not equal to set/map b. For a map, key and value must be same to be equal.

NotEqual<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), List<(Of <<'(V>)>>))
Checks if List a is not equal List b.

NotEqual<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Deque<(Of <<'(V>)>>))
Checks if Deque a is not equal Deque b.

NotEqualIDeque(IDeque, IDeque)
NotEqualIDictionary(IDictionary, IDictionary)
NotEqualIList(IList, IList)
Peek<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Int32)
Returns the value from the dictionary at the nth position as defined by the iterator of the dictionary.

Peek(Object, Int32)
Returns the value from the dictionary or list or deque at the nth position as defined by the iterator of the dictionary or the index of the list or the iterator of the deque.

Peek(Object)
Returns the value from the deque begin or array end.

Range<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>))
Creates a new dictionary representing a set, containing all values from the given dictionary representing a map map.

SetAsArray<(Of <<'(V>)>>)(Dictionary<(Of <<'(V, SetValueType>)>>))
Creates a new dictionary representing a set containing all values from the given list.

StringAsArray(String, String)
Subarray<(Of <<'(V>)>>)(List<(Of <<'(V>)>>), Int32, Int32)
Creates a new dynamic array with length values copied from a from index start on.

Subdeque<(Of <<'(V>)>>)(Deque<(Of <<'(V>)>>), Int32, Int32)
Creates a new deque with length values copied from a from index start on.

Union<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
UnionChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>))
UnionChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>), IGraph, INode, AttributeType)
UnionChanged<(Of <<'(K, V>)>>)(Dictionary<(Of <<'(K, V>)>>), Dictionary<(Of <<'(K, V>)>>), IGraph, IEdge, AttributeType)
UnionChanged<(Of <<'(K>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, SetValueType>)>>), IGraph, INode, AttributeType)
Adds all key/value pairs from set b to a.

UnionChanged<(Of <<'(K>)>>)(Dictionary<(Of <<'(K, SetValueType>)>>), Dictionary<(Of <<'(K, SetValueType>)>>), IGraph, IEdge, AttributeType)
Adds all key/value pairs from set b to a.

Inheritance Hierarchy
Object
ContainerHelper

Assembly: libGr (Module: libGr) Version: 4.4.0.0 (4.4.0.0)