TypeMap

class dsviper.TypeMap(key_type, element_type)

Bases: object

A class used to represent a map<element_type> type.

static cast(type: Type) TypeMap

Return the type map<key_type, element_type> or raise.

description(*, namespace: NameSpace | None = None) str

Return the description.

element_type() Type

Return the element type.

item_type() TypeTuple

Return the type for item.

items_type() TypeVector

Return the type for items.

key_type() Type

Return the KeyType.

keys_type() TypeSet

Return the type for keys.

representation(*, namespace: NameSpace | None = None) str

Return the representation.

runtime_id() ValueUUId

Return the uuid assigned by the runtime.

type_code() str

Return the type code.

values_type() TypeVector

Return the type for values.