TypeSet¶
- class dsviper.TypeSet(element_type)¶
Bases:
TypeThe set<element_type> type.
element_type() is the Type of its elements; ValueSet builds values of it.
- description(*, namespace: NameSpace | None = None) str¶
Return the same as representation(): set<element_type>, qualified against namespace.
- elements_type() TypeVector¶
Return vector<element_type>, the type a whole element listing has.
- representation(*, namespace: NameSpace | None = None) str¶
Return the type written out as set<element_type>, with the names qualified against namespace - the global namespace when it is None.
- runtime_id() ValueUUId¶
Return the uuid identifying this type.
It is computed from what the type is, so the same declaration yields the same id in any Definitions. Definitions says what each kind is computed from.
- type_code() str¶
Return the code naming this kind of type, such as “int32”, “struct” or “vector”.