Lean  $LEAN_TAG$
QuantConnect.Util.MemoizingEnumerable< T > Class Template Reference

Defines an enumerable that can be enumerated many times while only performing a single enumeration of the root enumerable More...

Inheritance diagram for QuantConnect.Util.MemoizingEnumerable< T >:
[legend]

Public Member Functions

 MemoizingEnumerable (IEnumerable< T > enumerable)
 Initializes a new instance of the MemoizingEnumerable<T> class More...
 
IEnumerator< T > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 

Properties

bool Enabled [get, set]
 Allow disableing the buffering More...
 

Detailed Description

Defines an enumerable that can be enumerated many times while only performing a single enumeration of the root enumerable

Template Parameters
T

Definition at line 27 of file MemoizingEnumerable.cs.

Constructor & Destructor Documentation

◆ MemoizingEnumerable()

QuantConnect.Util.MemoizingEnumerable< T >.MemoizingEnumerable ( IEnumerable< T >  enumerable)

Initializes a new instance of the MemoizingEnumerable<T> class

Parameters
enumerableThe source enumerable to be memoized

Definition at line 42 of file MemoizingEnumerable.cs.

Member Function Documentation

◆ GetEnumerator()

IEnumerator<T> QuantConnect.Util.MemoizingEnumerable< T >.GetEnumerator ( )

Returns an enumerator that iterates through the collection.

Returns
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

<filterpriority>1</filterpriority>

Definition at line 55 of file MemoizingEnumerable.cs.

Property Documentation

◆ Enabled

bool QuantConnect.Util.MemoizingEnumerable< T >.Enabled
getset

Allow disableing the buffering

Should be called before the enumeration starts

Definition at line 36 of file MemoizingEnumerable.cs.


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