Click or drag to resize

GeneratorAbstractGeneratorTResult Class

This class provides a convenient base class to base an implementation of IGenerator on.
Inheritance Hierarchy
SystemObject
  Gamelogic.Extensions.AlgorithmsGeneratorAbstractGeneratorTResult

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class AbstractGenerator<TResult> : IGenerator<TResult>, 
	IGenerator

Type Parameters

TResult
The type of elements this generator generates.

The GeneratorAbstractGeneratorTResult type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCurrent
Top
Methods
  NameDescription
Public methodCloneAndRestart
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveNext
Public methodToString (Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAggregateTResult(FuncTResult, TResult, TResult)Overloaded.
Makes a generator that generates a running aggregate of the source generator.
(Defined by Generator.)
Public Extension MethodAggregateTResult(FuncTResult, TResult, TResult, TResult)Overloaded.
Makes a generator that generates a running aggregate of the source generator.
(Defined by Generator.)
Public Extension MethodCode exampleAggregateTResult, TResult(FuncTResult, TResult, TResult, TResult)Overloaded.
Makes a generator that generates a running aggregate of the source generator.
(Defined by Generator.)
Public Extension MethodCode exampleApplyTResult
Makes a generator that applies a function on the elements it generates.
(Defined by Generator.)
Public Extension MethodCastTResult
Makes a generator that will generate elements by casting the elements of a source generator.
(Defined by Generator.)
Public Extension MethodGroupTResult(Int32)Overloaded.
Makes a generator that returns groups of elements from the source generator.
(Defined by Generator.)
Public Extension MethodGroupTResult(IGeneratorInt32)Overloaded.
Makes a generator that generates groups of items from the source generator.
(Defined by Generator.)
Public Extension MethodCode exampleInterpolateTResult(Int32, FuncTResult, TResult, Single, TResult)Overloaded.
Makes a generator that interpolates between values of a given generator.
(Defined by Generator.)
Public Extension MethodInterpolateTResult(IGeneratorInt32, FuncTResult, TResult, Single, TResult)Overloaded.
Makes a generator that interpolates between values of a given generator.
(Defined by Generator.)
Public Extension MethodInterpolateDitherTResult
Interpolates a sequence, but applies dithering.
(Defined by Generator.)
Public Extension MethodLogTResultOverloaded.
A generator that generates the elements of the source generator, but sends the generated element to the Unity Console.
(Defined by Generator.)
Public Extension MethodCode exampleLogTResult(ActionTResult)Overloaded.
A generator that generates the elements of the source generator, but applies a log function to each element as it is generated.
(Defined by Generator.)
Public Extension MethodMoveNextTResult
Moves the generator by a specified amount forward.
(Defined by Generator.)
Public Extension MethodNextTResultOverloaded.
Returns the next element of the specified generator.
(Defined by Generator.)
Public Extension MethodNextTResult(Int32)Overloaded.
Returns a list of the next n items from the generator.
(Defined by Generator.)
Public Extension MethodCode exampleNextWhileTResult
Generates the elements from the generator while the predicate applied to elements hold an return them in an enumerable. After calling this method, the next element returned by Next (or the current value of Current) will not satisfy the predicate.
(Defined by Generator.)
Public Extension MethodOfTypeTResult
Makes a generator that will generate elements of a source generator that is of the given type.
(Defined by Generator.)
Public Extension MethodCode examplePadTResult(IEnumerableTResult)Overloaded.
Pads the specified generator with elements from a given list.
(Defined by Generator.)
Public Extension MethodCode examplePadTResult(TResult, Int32)Overloaded.
Pads the specified generator with a constant element repeated a specified number of times.
(Defined by Generator.)
Public Extension MethodRepeatEachTResult(Int32)Overloaded.
Makes a new generator that will repeat each of the given generators elements a number of times.
(Defined by Generator.)
Public Extension MethodRepeatEachTResult(IGeneratorInt32)Overloaded.
Makes a new generator that will repeat each of the given generators elements a number of times.
(Defined by Generator.)
Public Extension MethodSelectTResult, TResult
Makes a generator which generates items that are transformed, generated from a given generator.
(Defined by Generator.)
Public Extension MethodSelectManyTResult, TResult
For each item in the source generator, a list of items is generated, but the items are generated one by one (and not as a list of items).
(Defined by Generator.)
Public Extension MethodCode exampleSkipTResult
Makes a generator that skips over the specified number of elements from the source generator.
(Defined by Generator.)
Public Extension MethodCode exampleSkipAndTakeTResult
Makes a generator that repeatedly skips over and takes elements from a given generator.
(Defined by Generator.)
Public Extension MethodSwitchAfterTResult
Generates elements from a source generator for the given number of steps, then switches to a second generator.
(Defined by Generator.)
Public Extension MethodSwitchWhenTResult
Generates elements from the source generator until a condition is met, then generate elements from a second generator.
(Defined by Generator.)
Public Extension MethodCode exampleTakeAndSkipTResult
Makes a generator that repeatedly takes and skips over elements from a given generator.
(Defined by Generator.)
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Public Extension MethodWhereTResult(FuncTResult, Boolean)Overloaded.
Makes a generator that will only generate elements that pass the predicate.
(Defined by Generator.)
Public Extension MethodWhereTResult(IGeneratorBoolean)Overloaded.
Makes a generator that will only generate elements that pass the predicate generated by the predicate generator.
(Defined by Generator.)
Public Extension MethodWhereTResult(FuncTResult, Boolean, Int32)Overloaded.
Makes a generator that will only generate elements that pass the predicate. If the source elements does not provide elements that pass the predicate for the given number of maximum iterations, an exception is thrown. This is to prevent a stalling the generator forever.
(Defined by Generator.)
Public Extension MethodWhereTResult(IGeneratorBoolean, Int32)Overloaded.
Makes a generator that will only generate elements that pass the predicate generated by the predicate generator. If the source elements does not provide elements that pass the predicate for the given number of maximum iterations, an exception is thrown. This is to prevent a stalling the generator forever.
(Defined by Generator.)
Public Extension MethodWhereWindowTResult
Only generates an item if the window of the item passes the predicate.
(Defined by Generator.)
Public Extension MethodCode exampleWindowTResult
Makes a generator that generates a moving window of elements over a given generator.
(Defined by Generator.)
Top
Explicit Interface Implementations
See Also