Provides the base interface for the abstraction of sets.
Public Aliases | |
using | iterator |
Represents the iterator of xtd::collections::generic::ienumerable value type. | |
using | const_iterator |
Represents the const iterator of xtd::collections::generic::ienumerable value type. | |
Public Methods | |
virtual bool | add (const type_t &item) noexcept=0 |
Adds an element to the current set and returns a value to indicate if the element was successfully added. | |
virtual void | except_with (const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0 |
Removes all elements in the specified collection from the current set. | |
virtual void | intersec_with (const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0 |
Modifies the current set so that it contains only elements that are also in a specified collection. | |
virtual bool | is_proper_subset_of (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether the current set is a proper (strict) superset of a specified collection. | |
virtual bool | is_proper_superset_of (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether the current set is a proper (strict) superset of a specified collection. | |
virtual bool | is_subset_of (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether a set is a subset of a specified collection. | |
virtual bool | is_superset_of (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether a set is a superset of a specified collection. | |
virtual bool | overlaps (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether the current set overlaps with the specified collection. | |
virtual bool | set_equals (const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0 |
Determines whether the current set and the specified collection contain the same elements. | |
virtual void | symetric_excep_with (const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0 |
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both. | |
virtual void | union_with (const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0 |
Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both. | |
using xtd::collections::generic::iset< type_t >::iterator |
Represents the iterator of xtd::collections::generic::ienumerable value type.
using xtd::collections::generic::iset< type_t >::const_iterator |
Represents the const iterator of xtd::collections::generic::ienumerable value type.
|
pure virtualnoexcept |
Adds an element to the current set and returns a value to indicate if the element was successfully added.
item | The element to add to the set. |
true
if the element is added to the set; false
if the element is already in the set.
|
pure virtualnoexcept |
Removes all elements in the specified collection from the current set.
other | The collection of items to remove from the set. |
|
pure virtualnoexcept |
Modifies the current set so that it contains only elements that are also in a specified collection.
other | The collection to compare to the current set. |
other
.
|
pure virtualnoexcept |
Determines whether the current set is a proper (strict) superset of a specified collection.
other | The collection to compare to the current set. |
true
if the current set is a proper superset of other
; otherwise, false
.
|
pure virtualnoexcept |
Determines whether the current set is a proper (strict) superset of a specified collection.
other | The collection to compare to the current set. |
true
if the current set is a proper superset of other
; otherwise, false
.
|
pure virtualnoexcept |
Determines whether a set is a subset of a specified collection.
other | The collection to compare to the current set. |
true
if the current set is a subset of other
; otherwise, false
.
|
pure virtualnoexcept |
Determines whether a set is a superset of a specified collection.
other | The collection to compare to the current set. |
true
if the current set is a superset of other
; otherwise, false
.
|
pure virtualnoexcept |
Determines whether the current set overlaps with the specified collection.
other | The collection to compare to the current set. |
true
if the current set and other
share at least one common element; otherwise, false
.
|
pure virtualnoexcept |
Determines whether the current set and the specified collection contain the same elements.
other | The collection to compare to the current set. |
true
if the current set is equal to other
; otherwise, false
.
|
pure virtualnoexcept |
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
other | The collection to compare to the current set. |
other
are ignored.
|
pure virtualnoexcept |
Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.
other | The collection to compare to the current set. |
other
are ignored.