System::Collections::Generic::ISet class

ISet class

Interface of collection containing a set of unique elements. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

template<typename T>class ISet : public System::Collections::Generic::ICollection<T>
ParameterDescription
TElement type.

Methods

MethodDescription
virtual ExceptWith(IEnumerablePtr)Removes group of elements.
virtual IntersectWith(IEnumerablePtr)Removes elements not present in different container.
virtual IsProperSubsetOf(IEnumerablePtr)Checks if current set is a strict subset of other container.
virtual IsProperSupersetOf(IEnumerablePtr)Checks if current set is a strict superset of other container.
virtual IsSubsetOf(IEnumerablePtr)Checks if current set is a subset of other container.
virtual IsSupersetOf(IEnumerablePtr)Checks if current set is a superset of other container.
virtual Overlaps(IEnumerablePtr)Checks if set overlaps with other container.
virtual SetEquals(IEnumerablePtr)Checks if set and container contain same elements.
virtual SymmetricExceptWith(IEnumerablePtr)Calculates symmetric exception of two containers. Removes all elements that are present in both containers, but at the same time adds all elements present in other, but not in current set.
virtual UnionWith(IEnumerablePtr)Adds elements from specified collection that are not present in current set yet.
virtual ~ISet()Destructor.

Typedefs

TypedefDescription
IEnumerablePtrRTTI information.

See Also