API reference
API reference
Select your platform
No SDKs available
No versions available

HashSetExtensions Class

Non-allocating HashSet extension methods mirroring MS implementation https://referencesource.microsoft.com/#system.core/system/Collections/Generic/HashSet.cs.

Overview

Static Public Member Functions

static void
UnionWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
HashSet< T > other )
Take the union of this HashSet with other.
static void
UnionWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
IList< T > other )
Take the union of this HashSet with other.
static void
ExceptWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
HashSet< T > other )
Remove items in other from this set.
static void
ExceptWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
IList< T > other )
Remove items in other from this set.
static bool
OverlapsNonAlloc< T >
( this HashSet< T > hashSetToCheck,
HashSet< T > other )
Checks if this set overlaps other (i.e.
static bool
OverlapsNonAlloc< T >
( this HashSet< T > hashSetToCheck,
IList< T > other )
Checks if this set overlaps other (i.e.

Details

Static Member Functions

static void Oculus.Interaction.HashSetExtensions.UnionWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
HashSet< T > other )
Take the union of this HashSet with other.
Modifies this set.
Parameters
other
HashSet with items to add
static void Oculus.Interaction.HashSetExtensions.UnionWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
IList< T > other )
Take the union of this HashSet with other.
Modifies this set.
Parameters
other
IList with items to add
static void Oculus.Interaction.HashSetExtensions.ExceptWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
HashSet< T > other )
Remove items in other from this set.
Modifies this set
Parameters
other
HashSet with items to remove
static void Oculus.Interaction.HashSetExtensions.ExceptWithNonAlloc< T >
( this HashSet< T > hashSetToModify,
IList< T > other )
Remove items in other from this set.
Modifies this set
Parameters
other
IList with items to remove
static bool Oculus.Interaction.HashSetExtensions.OverlapsNonAlloc< T >
( this HashSet< T > hashSetToCheck,
HashSet< T > other )
Checks if this set overlaps other (i.e.
they share at least one item)
Parameters
other
HashSet to check overlap against
Returns
true if these have at least one common element; false if disjoint
static bool Oculus.Interaction.HashSetExtensions.OverlapsNonAlloc< T >
( this HashSet< T > hashSetToCheck,
IList< T > other )
Checks if this set overlaps other (i.e.
they share at least one item)
Parameters
other
IList to check overlap against
Returns
true if these have at least one common element; false if disjoint
Did you find this page helpful?
Thumbs up icon
Thumbs down icon