Tanoda
Leap.Unity.Slice< T > Struct Template Reference
Inheritance diagram for Leap.Unity.Slice< T >:
Leap.Unity.IIndexableStruct< T, Slice< T > >

Public Member Functions

 Slice (IList< T > list, int beginIdx=0, int endIdx=-1)
 Creates a slice into the List with an inclusive beginIdx and an exclusive endIdx. A slice with identical begin and end indices would be an empty slice. More...
 
IndexableStructEnumerator< T, Slice< T > > GetEnumerator ()
 
Query< T > Query ()
 

Properties

this[int index] [get, set]
 
int Count [get]
 
- Properties inherited from Leap.Unity.IIndexableStruct< T, Slice< T > >
this[int idx] [get]
 
int Count [get]
 

Detailed Description

Definition at line 61 of file Slice.cs.

Constructor & Destructor Documentation

◆ Slice()

Leap.Unity.Slice< T >.Slice ( IList< T >  list,
int  beginIdx = 0,
int  endIdx = -1 
)

Creates a slice into the List with an inclusive beginIdx and an exclusive endIdx. A slice with identical begin and end indices would be an empty slice.

A slice whose endIdx is smaller than its beginIdx will index backwards along the underlying List.

Definition at line 77 of file Slice.cs.

Member Function Documentation

◆ GetEnumerator()

IndexableStructEnumerator< T, Slice< T > > Leap.Unity.Slice< T >.GetEnumerator ( )

Definition at line 104 of file Slice.cs.

◆ Query()

Query< T > Leap.Unity.Slice< T >.Query ( )

Definition at line 108 of file Slice.cs.

Property Documentation

◆ Count

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

Definition at line 96 of file Slice.cs.

◆ this[int index]

T Leap.Unity.Slice< T >.this[int index]
getset

Definition at line 85 of file Slice.cs.


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