 | ContainerHelperMappingClone Method (Object, IDictionaryIGraphElement, IGraphElement) |
Creates a shallow clone of the given container, mapping the contained elements according to the input new to old elements map
(clones a container, transplanting contained graph elements from an old to a new graph).
Namespace:
de.unika.ipd.grGen.libGr
Assembly:
libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntaxpublic static Object MappingClone(
Object oldContainer,
IDictionary<IGraphElement, IGraphElement> oldToNewElements
)
Parameters
- oldContainer
- Type: SystemObject
The container to clone. - oldToNewElements
- Type: System.Collections.GenericIDictionaryIGraphElement, IGraphElement
A map from old elements of an old graph to their clones, i.e. new elements in a new graph.
Return Value
Type:
ObjectA shallow clone of the container
See Also