An enumerator for Variations when the type is set to WithRepetition.
More...
|
| EnumeratorWithRepetition (Variations< T > source) |
| Construct a enumerator with the parent object. More...
|
|
void | Reset () |
| Resets the Variations enumerator to the first variation. More...
|
|
bool | MoveNext () |
| Advances to the next variation. More...
|
|
void | Dispose () |
| Cleans up non-managed resources, of which there are none used here. More...
|
|
| Variations (IList< T > values, int lowerIndex) |
| Create a variation set from the indicated list of values. The upper index is calculated as values.Count, the lower index is specified. Collection type defaults to MetaCollectionType.WithoutRepetition More...
|
|
| Variations (IList< T > values, int lowerIndex, GenerateOption type) |
| Create a variation set from the indicated list of values. The upper index is calculated as values.Count, the lower index is specified. More...
|
|
IEnumerator< IList< T > > | GetEnumerator () |
| Gets an enumerator for the collection of Variations. More...
|
|
|
IList< T > | Current [get] |
| The current variation More...
|
|
long | Count [get] |
| The number of unique variations that are defined in this meta-collection. More...
|
|
GenerateOption | Type [get] |
| The type of Variations set that is generated. More...
|
|
int | UpperIndex [get] |
| The upper index of the meta-collection, equal to the number of items in the initial set. More...
|
|
int | LowerIndex [get] |
| The lower index of the meta-collection, equal to the number of items returned each iteration. More...
|
|
long | Count [get] |
| The count of items in the collection. This is not inherited from ICollection since this meta-collection cannot be extended by users. More...
|
|
GenerateOption | Type [get] |
| The type of the meta-collection, determining how the collections are determined from the inputs. More...
|
|
int | UpperIndex [get] |
| The upper index of the meta-collection, which is the size of the input collection. More...
|
|
int | LowerIndex [get] |
| The lower index of the meta-collection, which is the size of each output collection. More...
|
|
|
| Variations () |
| No default constructor, must provided a list of values and size. More...
|
|
An enumerator for Variations when the type is set to WithRepetition.
Matching.Variations< T >.EnumeratorWithRepetition.EnumeratorWithRepetition |
( |
Variations< T > |
source | ) |
|
Construct a enumerator with the parent object.
- Parameters
-
source | The source Variations object. |
void Matching.Variations< T >.EnumeratorWithRepetition.Dispose |
( |
| ) |
|
Cleans up non-managed resources, of which there are none used here.
bool Matching.Variations< T >.EnumeratorWithRepetition.MoveNext |
( |
| ) |
|
Advances to the next variation.
- Returns
- True if successfully moved to next variation, False if no more variations exist.
Increments the internal myListIndexes collection by incrementing the last index and overflow/carrying into others just like grade-school arithemtic. If the finaly carry flag is set, then we would wrap around and are therefore done.
void Matching.Variations< T >.EnumeratorWithRepetition.Reset |
( |
| ) |
|
Resets the Variations enumerator to the first variation.
IList<T> Matching.Variations< T >.EnumeratorWithRepetition.Current |
|
get |
The documentation for this class was generated from the following file:
- D:/Documents/Polytech/5ème_année/PFE/Dépôt_Projet/GraphMatchingSeb/GraphMatching/Matching/Combinatorics/Variations.cs