Britbot

Main functionality of this class: it advances iteration it is just like long addition (bad translation?) only you can count up to the given dimension each turn.

Returns:
false if the iteration is finished (gone back to zero), true otherwise

Definition at line 83 of file ExpIterator.cs.

        {
            //going over the vector entries
            for (int i = 0; i < this.Values.Length; i++)
            {
                //if we don't need to go over the top of the dimension just add

                if (this.Values[i] < this.Dimensions[i] - 1)
                {
                    this.Values[i]++;
                    break;
                }
                this.Values[i] = 0;
            }

            //check if we are back at zero
            return !this.IsZero();
        }