Tanoda
Leap.Unity.ReadonlyHashSet< T > Struct Template Reference

A simple wrapper around HashSet to provide readonly access. Useful when you want to return a HashSet to someone but you want to make sure they don't muck it up! More...

Public Member Functions

 ReadonlyHashSet (HashSet< T > set)
 
HashSet< T >.Enumerator GetEnumerator ()
 
bool Contains (T obj)
 
Query< T > Query ()
 

Static Public Member Functions

static implicit operator ReadonlyHashSet< T > (HashSet< T > set)
 
static implicit operator ReadonlyHashSet< T > (SerializableHashSet< T > set)
 

Properties

int Count [get]
 

Detailed Description

A simple wrapper around HashSet to provide readonly access. Useful when you want to return a HashSet to someone but you want to make sure they don't muck it up!

Definition at line 19 of file ReadonlyHashSet.cs.

Constructor & Destructor Documentation

◆ ReadonlyHashSet()

Leap.Unity.ReadonlyHashSet< T >.ReadonlyHashSet ( HashSet< T >  set)

Definition at line 22 of file ReadonlyHashSet.cs.

Member Function Documentation

◆ Contains()

bool Leap.Unity.ReadonlyHashSet< T >.Contains ( obj)

Definition at line 36 of file ReadonlyHashSet.cs.

◆ GetEnumerator()

HashSet< T >.Enumerator Leap.Unity.ReadonlyHashSet< T >.GetEnumerator ( )

Definition at line 32 of file ReadonlyHashSet.cs.

◆ operator ReadonlyHashSet< T >() [1/2]

static implicit Leap.Unity.ReadonlyHashSet< T >.operator ReadonlyHashSet< T > ( HashSet< T >  set)
static

Definition at line 44 of file ReadonlyHashSet.cs.

◆ operator ReadonlyHashSet< T >() [2/2]

static implicit Leap.Unity.ReadonlyHashSet< T >.operator ReadonlyHashSet< T > ( SerializableHashSet< T >  set)
static

Definition at line 48 of file ReadonlyHashSet.cs.

◆ Query()

Definition at line 40 of file ReadonlyHashSet.cs.

Property Documentation

◆ Count

int Leap.Unity.ReadonlyHashSet< T >.Count
get

Definition at line 26 of file ReadonlyHashSet.cs.


The documentation for this struct was generated from the following file: