maxon.InternedId

Description

maxon.InternedId represents an maxon.Id which has been interned into a pool of unique maxon.Id objects.

I.e., there are no two different Id objects with an equal id string, so for equality comparison you can compare pointers instead of whole strings.

Inheritance diagram

Inheritance

Parent Class:

Methods Signature

__eq__(other)

Checks if other interned string value is equal to the current value`.

__init__([C])

Initializes an maxon.InternedId with the passed data, if a maxon.Data is passed a copy is done.

__ne__(other)

Checks if other interned string value is unequal to the current value`.

__repr__()

Returns the string representation of an maxon.InternedId.

Methods Definition

InternedId.__eq__(other)

Checks if other interned string value is equal to the current value`.

Parameters

other (Union[str, maxon.String maxon.Id, maxon.InternedId]) – The other identifier to compare.

Returns

True if other is equal to the current value, otherwise False.

Return type

bool

InternedId.__init__(C=None)

Initializes an maxon.InternedId with the passed data, if a maxon.Data is passed a copy is done.

Parameters

C (Optional[maxon.Data]) – The input data to derive the maxon.InternedId.

InternedId.__ne__(other)

Checks if other interned string value is unequal to the current value`.

Parameters

other (Union[str, maxon.String maxon.Id, maxon.InternedId]) – The other identifier to compare.

Returns

True if other is unequal to the current value, otherwise False.

Return type

bool

InternedId.__repr__()

Returns the string representation of an maxon.InternedId.

Return type

str