Search Results for

    Show / Hide Table of Contents

    Class PrimitiveDataStorage.PrimitiveStorage<TPrimType>

    Inheritance
    System.Object
    PrimitiveDataStorage.PrimitiveStorage<TPrimType>
    Implements
    IRnIDGeneratable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.RoadNetwork.Data
    Assembly: cs.temp.dll.dll
    Syntax
    public class PrimitiveStorage<TPrimType> : IRnIDGeneratable where TPrimType : IPrimitiveData
    Type Parameters
    Name Description
    TPrimType

    Properties

    DataList

    Declaration
    public IReadOnlyList<TPrimType> DataList { get; }
    Property Value
    Type Description
    IReadOnlyList<TPrimType>

    Methods

    ClearAll()

    ストレージのクリア すべてのデータが消えるので注意

    Declaration
    public void ClearAll()

    GetIds()

    ストレージのID群を取得

    Declaration
    public RnID<TPrimType>[] GetIds()
    Returns
    Type Description
    RnID<TPrimType>[]

    Read(in RnID<TPrimType>)

    点の情報を読み込む

    Declaration
    public TPrimType Read(in RnID<TPrimType> id)
    Parameters
    Type Name Description
    RnID<TPrimType> id
    Returns
    Type Description
    TPrimType

    RegisterFreeIDs(in RnID<TPrimType>[])

    未使用のデータのIDを登録する 未使用のデータIDは未登録である必要がある

    Declaration
    public void RegisterFreeIDs(in RnID<TPrimType>[] ids)
    Parameters
    Type Name Description
    RnID<TPrimType>[] ids

    Release(Int32)

    ストレージの解放

    Declaration
    public void Release(int size)
    Parameters
    Type Name Description
    System.Int32 size

    RequestFreeIDs()

    未使用のデータのIDを取得する 未使用のデータIDのリストが無効になる

    Declaration
    public RnID<TPrimType>[] RequestFreeIDs()
    Returns
    Type Description
    RnID<TPrimType>[]

    RequsetID(Int32)

    IDの要求 同一のhandleIndexを渡した時 同じIDが返ることを保証する

    Declaration
    public RnID<TPrimType> RequsetID(int handleIndex)
    Parameters
    Type Name Description
    System.Int32 handleIndex
    Returns
    Type Description
    RnID<TPrimType>

    Write(in RnID<TPrimType>, in TPrimType)

    点の情報を書き込む

    Declaration
    public void Write(in RnID<TPrimType> id, in TPrimType val)
    Parameters
    Type Name Description
    RnID<TPrimType> id
    TPrimType val

    WriteNew(in TPrimType[])

    新しくデータを書き込む 容量の確保も行う

    Declaration
    public RnID<TPrimType>[] WriteNew(in TPrimType[] values)
    Parameters
    Type Name Description
    TPrimType[] values
    Returns
    Type Description
    RnID<TPrimType>[]

    Implements

    IRnIDGeneratable
    In This Article
    Back to top PLATEAU SDK for Unity