Class CompositionSet<T>
- Namespace
- NMF.Models.Collections
- Assembly
- NMF.Models.dll
Denotes the base class for a composition implemented as a set
public class CompositionSet<T> : OppositeSet<IModelElement, T>, ISet<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : class, IModelElement
Type Parameters
TThe element type
- Inheritance
-
DecoratedSet<T>CompositionSet<T>
- Implements
-
ISet<T>ICollection<T>IEnumerable<T>
- Inherited Members
Constructors
CompositionSet(IModelElement)
Creates a new instance
public CompositionSet(IModelElement parent)
Parameters
parentIModelElementThe parent model element
Methods
SetOpposite(T, IModelElement)
Sets the opposite of the given item
protected override void SetOpposite(T item, IModelElement newParent)
Parameters
itemTthe item
newParentIModelElementthe new parent or null, if the item is removed from the collection