winccoa-manager
    Preparing search index...

    Interface Mapping

    Interface representing a mapping of key-value pairs. Corresponds to the MappingVar class in the C++ API.

    interface Mapping {
        get entries(): IterableIterator<[Vrpc.Variant, Vrpc.Variant]>;
        get keys(): IterableIterator<Vrpc.Variant>;
        get size(): number;
        get values(): IterableIterator<Vrpc.Variant>;
        clear(): void;
        convertToObject(manager?: WinccoaManager): object;
        delete(key: Vrpc.Variant): boolean;
        get(key: Vrpc.Variant): Vrpc.Variant;
        has(key: Vrpc.Variant): boolean;
        set(key: Vrpc.Variant, value: Vrpc.Variant): void;
    }
    Index

    Accessors

    • get keys(): IterableIterator<Vrpc.Variant>

      Gets an iterator for the keys in the mapping.

      Returns IterableIterator<Vrpc.Variant>

      An iterator for the keys.

    • get size(): number

      The number of key-value pairs in the mapping.

      Returns number

    • get values(): IterableIterator<Vrpc.Variant>

      Gets an iterator for the values in the mapping.

      Returns IterableIterator<Vrpc.Variant>

      An iterator for the values.

    Methods

    • Clears all key-value pairs from the mapping.

      Returns void

    • Converts the Mapping to a JavaScript object.

      Parameters

      • Optionalmanager: WinccoaManager

        The manager to get formating options from.

      Returns object

      The converted object.

    • Deletes a key-value pair from the mapping.

      Parameters

      Returns boolean

      True if the key was deleted, false otherwise.

    • Checks if a given key exists in the mapping.

      Parameters

      Returns boolean

      True if the key exists, false otherwise.