Incrementor

public class Incrementor
Provides a logical integer incrementer.

Constructors

Incrementor

#
public Incrementor(int stackDepth, int initialLength, int newIndex)
Create a new incrementor.
stackDepth (int)Maximum stack depth.
initialLength (int)Initial length of sequence.
newIndex (int)New index to use when growing the sequence.

Incrementor

#
public Incrementor(int stackDepth, int initialLength)
Create a new incrementor.
stackDepth (int)Maximum stack depth.
initialLength (int)Initial length of sequence.

Incrementor

#
public Incrementor(int stackDepth)
Create a new incrementor.
stackDepth (int)Maximum stack depth.

Properties

SequenceLength

#
public int SequenceLength { get; }
Gets the number of integers in the current permutation.

Indexers

this[]

#
public int this[int index] { get; }
Gets the sequence integer for the given position.
index (int)Index of integer to retrieve.
Integer at given index within sequence.

Methods

CreateSymbolSequence

#
public static string[] CreateSymbolSequence(int count, params string[] fragments)
Create a sequence of symbols.
count (int)Number of items in the sequence.
fragments (params string[])String fragments to recombine into sequence.
An array containing the sequence.

CreateSymbolSequence

#
public static string[] CreateSymbolSequence(int count, string characterPool)
Create a sequence of symbols.
count (int)Number of items in the sequence.
characterPool (string)String to draw character symbols from.
An array containing the sequence.

Increment

#
public void Increment()
Increment the sequence by one.

IncrementOften

#
public void IncrementOften(int count)
Increment the sequence a number of times.
count (int)Number of increments.

ToString

#
public override string ToString()
Gets a string representation of this incrementor.
Object.ToString