docs.unity.cn
    Show / Hide Table of Contents

    Class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>

    Inheritance
    Object
    KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
    Namespace: UnityEditor.ShaderGraph.Internal
    Syntax
    public abstract class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet> : object 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

    all

    Declaration
    public TAll all { get; }
    Property Value
    Type Description
    TAll

    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
    Type Description
    TBase

    baseStorage

    Declaration
    protected TStorage baseStorage { get; set; }
    Property Value
    Type Description
    TStorage

    Item[Int32]

    Declaration
    public TForPermutation this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    TForPermutation

    permutationCount

    Declaration
    public int permutationCount { get; }
    Property Value
    Type Description
    Int32

    permutationStorages

    Declaration
    protected IEnumerable<TStorage> permutationStorages { get; }
    Property Value
    Type Description
    IEnumerable<TStorage>

    Methods

    CreateAllPermutationsSmartPointer()

    Declaration
    protected abstract TAllPermutations CreateAllPermutationsSmartPointer()
    Returns
    Type Description
    TAllPermutations

    CreateAllSmartPointer()

    Declaration
    protected abstract TAll CreateAllSmartPointer()
    Returns
    Type Description
    TAll

    CreateBaseSmartPointer()

    Declaration
    protected abstract TBase CreateBaseSmartPointer()
    Returns
    Type Description
    TBase

    CreateForPermutationSmartPointer(Int32)

    Declaration
    protected abstract TForPermutation CreateForPermutationSmartPointer(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    TForPermutation

    GetOrCreateForPermutationIndex(Int32)

    Declaration
    protected TStorage GetOrCreateForPermutationIndex(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    TStorage

    SetForPermutationIndex(Int32, TStorage)

    Declaration
    protected void SetForPermutationIndex(int index, TStorage value)
    Parameters
    Type Name Description
    Int32 index
    TStorage value
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, September 9, 2021