Tanoda
Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct > Struct Template Reference

A two-generic-argument variant of an enumerator that allows an IIndexableStruct to quickly define an Enumerator that avoids allocation. More...

Public Member Functions

 IndexableStructEnumerator (IndexableStruct indexable)
 
IndexableStructEnumerator< Element, IndexableStruct > GetEnumerator ()
 
bool MoveNext ()
 
void Reset ()
 

Public Attributes

IndexableStruct? maybeIndexable
 
int index
 

Properties

Element Current [get]
 

Detailed Description

A two-generic-argument variant of an enumerator that allows an IIndexableStruct to quickly define an Enumerator that avoids allocation.

Type Constraints
IndexableStruct :struct 
IndexableStruct :IIndexableStruct 
IndexableStruct :Element 
IndexableStruct :IndexableStruct 

Definition at line 113 of file IIndexableStruct.cs.

Constructor & Destructor Documentation

◆ IndexableStructEnumerator()

Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.IndexableStructEnumerator ( IndexableStruct  indexable)

Definition at line 119 of file IIndexableStruct.cs.

Member Function Documentation

◆ GetEnumerator()

IndexableStructEnumerator< Element, IndexableStruct > Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.GetEnumerator ( )

Definition at line 124 of file IIndexableStruct.cs.

◆ MoveNext()

bool Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.MoveNext ( )

Definition at line 128 of file IIndexableStruct.cs.

◆ Reset()

void Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.Reset ( )

Definition at line 133 of file IIndexableStruct.cs.

Member Data Documentation

◆ index

int Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.index

Definition at line 117 of file IIndexableStruct.cs.

◆ maybeIndexable

IndexableStruct? Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.maybeIndexable

Definition at line 116 of file IIndexableStruct.cs.

Property Documentation

◆ Current

Element Leap.Unity.IndexableStructEnumerator< Element, IndexableStruct >.Current
get

Definition at line 137 of file IIndexableStruct.cs.


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