Class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
Inheritance
KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
Assembly: Unity.ShaderGraph.Editor.dll
Syntax
public abstract class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet> where TStorage : new() where TAll : TISet where TAllPermutations : TISet where TForPermutation : TISet, TIInstance where TBase : TISet, TIInstance where TIInstance : KeywordDependentCollection.IInstance where TISet : KeywordDependentCollection.ISet<TIInstance>
Type Parameters
| Name |
Description |
| TStorage |
|
| TAll |
|
| TAllPermutations |
|
| TForPermutation |
|
| TBase |
|
| TIInstance |
|
| TISet |
|
Properties
this[int]
Declaration
public TForPermutation this[int index] { get; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
| Type |
Description |
| TForPermutation |
|
all
Declaration
Property Value
allPermutations
Declaration
public TAllPermutations allPermutations { get; }
Property Value
| Type |
Description |
| TAllPermutations |
|
baseInstance
All permutation will inherit from base's active fields
Declaration
public TBase baseInstance { get; }
Property Value
baseStorage
Declaration
protected TStorage baseStorage { get; set; }
Property Value
| Type |
Description |
| TStorage |
|
permutationCount
Declaration
public int permutationCount { get; }
Property Value
permutationStorages
Declaration
protected IEnumerable<TStorage> permutationStorages { get; }
Property Value
Methods
CreateAllPermutationsSmartPointer()
Declaration
protected abstract TAllPermutations CreateAllPermutationsSmartPointer()
Returns
| Type |
Description |
| TAllPermutations |
|
CreateAllSmartPointer()
Declaration
protected abstract TAll CreateAllSmartPointer()
Returns
CreateBaseSmartPointer()
Declaration
protected abstract TBase CreateBaseSmartPointer()
Returns
CreateForPermutationSmartPointer(int)
Declaration
protected abstract TForPermutation CreateForPermutationSmartPointer(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
Returns
| Type |
Description |
| TForPermutation |
|
GetOrCreateForPermutationIndex(int)
Declaration
protected TStorage GetOrCreateForPermutationIndex(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
Returns
| Type |
Description |
| TStorage |
|
SetForPermutationIndex(int, TStorage)
Declaration
protected void SetForPermutationIndex(int index, TStorage value)
Parameters
| Type |
Name |
Description |
| int |
index |
|
| TStorage |
value |
|