Search Results for

    Show / Hide Table of Contents

    Class NativeAttributesMap

    属性の辞書です。 を実装します。 string をキーとし、 NativeAttributeValue が値になります。 this[key] で NativeAttributeValue が返ります。

    Inheritance
    System.Object
    NativeAttributesMap
    Namespace: PLATEAU.CityGML
    Assembly: cs.temp.dll.dll
    Syntax
    public class NativeAttributesMap : IReadOnlyDictionary<string, NativeAttributeValue>

    Properties

    Count

    属性の数を返します。

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[String]

    属性のキーから値を返します。 key が存在しない場合は を投げます。

    Declaration
    public NativeAttributeValue this[string key] { get; }
    Parameters
    Type Name Description
    System.String key
    Property Value
    Type Description
    NativeAttributeValue

    Keys

    属性のキーをすべて返します。 結果はキャッシュされるので2回目以降は速いです。

    Declaration
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Values

    (key, value) のペアのうち value (NativeAttributeValue) をすべて返します。

    Declaration
    public IEnumerable<NativeAttributeValue> Values { get; }
    Property Value
    Type Description
    IEnumerable<NativeAttributeValue>

    Methods

    ContainsKey(String)

    属性に key が含まれていれば true, key がなければ false を返します。

    Declaration
    public bool ContainsKey(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Boolean

    GetEnumerator()

    Declaration
    public IEnumerator<AttrPair> GetEnumerator()
    Returns
    Type Description
    IEnumerator<AttrPair>

    GetValueOrNull(String)

    key に対応する値 NativeAttributeValue を返します。 なければ null を返します。

    Declaration
    public NativeAttributeValue GetValueOrNull(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    NativeAttributeValue

    ToString()

    属性の中身を、見やすくフォーマットした文字列にして返します。 子の属性も再帰的に含みます。

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    TryGetValue(String, out NativeAttributeValue)

    属性辞書の中に key が存在すればその値を value に代入して true を返します。 key が存在しなければ value に null を代入して false を返します。

    Declaration
    public bool TryGetValue(string key, out NativeAttributeValue value)
    Parameters
    Type Name Description
    System.String key
    NativeAttributeValue value
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top PLATEAU SDK for Unity