AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.ReadOnlyHashSet< TElement > Class Template Reference

A wrapper for HashSet<T> that doesn't allow modification of the set. This is useful for handing out references to a set that is going to be modified internally, without giving external consumers the opportunity to accidentally modify the set. More...

Inheritance diagram for HoloToolkit.Unity.ReadOnlyHashSet< TElement >:

Public Member Functions

 ReadOnlyHashSet (HashSet< TElement > underlyingSet)
 
bool Contains (TElement item)
 
void CopyTo (TElement[] array, int arrayIndex)
 
IEnumerator< TElement > GetEnumerator ()
 

Properties

int Count [get]
 

Detailed Description

A wrapper for HashSet<T> that doesn't allow modification of the set. This is useful for handing out references to a set that is going to be modified internally, without giving external consumers the opportunity to accidentally modify the set.

Definition at line 16 of file ReadOnlyHashSet.cs.

Constructor & Destructor Documentation

§ ReadOnlyHashSet()

HoloToolkit.Unity.ReadOnlyHashSet< TElement >.ReadOnlyHashSet ( HashSet< TElement >  underlyingSet)

Definition at line 23 of file ReadOnlyHashSet.cs.

Member Function Documentation

§ Contains()

bool HoloToolkit.Unity.ReadOnlyHashSet< TElement >.Contains ( TElement  item)

Definition at line 50 of file ReadOnlyHashSet.cs.

§ CopyTo()

void HoloToolkit.Unity.ReadOnlyHashSet< TElement >.CopyTo ( TElement []  array,
int  arrayIndex 
)

Definition at line 55 of file ReadOnlyHashSet.cs.

§ GetEnumerator()

IEnumerator<TElement> HoloToolkit.Unity.ReadOnlyHashSet< TElement >.GetEnumerator ( )

Definition at line 60 of file ReadOnlyHashSet.cs.

Property Documentation

§ Count

int HoloToolkit.Unity.ReadOnlyHashSet< TElement >.Count
get

Definition at line 31 of file ReadOnlyHashSet.cs.


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