Enhanced C#
Language of your choice: library documentation
Public Member Functions | List of all members
Loyc.Collections.Impl.IEnumeratorFrame< Frame, T > Interface Template Reference

Helper interface for NestedEnumerator<Frame, T>. More...


Source file:

Remarks

Helper interface for NestedEnumerator<Frame, T>.

Template Parameters
FrameA data type that implements this interface.
TType of items enumerated by this interface.
Type Constraints
Frame :IEnumeratorFrame 
Frame :Frame 
Frame :T 

Public Member Functions

int MoveNext (ref Frame frame, ref T current)
 Enumerates the next item, or the next child collection. More...
 

Member Function Documentation

◆ MoveNext()

int Loyc.Collections.Impl.IEnumeratorFrame< Frame, T >.MoveNext ( ref Frame  frame,
ref T  current 
)

Enumerates the next item, or the next child collection.

Parameters
frameCurrent frame (on entry, 'frame' is the same as 'this'). To begin enumerating a child frame, this method must change 'frame' to the desired child frame and return -1.
currentCurrent item (on entry, 'current' is value most recently enumerated by NestedEnumerator<Frame,T>.) To enumerate an item, MoveNext must change the value of 'current' and return 1.
Returns
1 to enumerate 'current', 0 when there are no more items in this frame's sequence, and any other value to enumerate a child frame.