maxon.Tuple

Description

maxon.Tuple provides in-place static storage for elements of arbitrary types.
Represents an immutable list of items of identical type.

Is similar to maxon.Pair but supports more than two elements.

Inheritance diagram

Inheritance

Parent Class:

Methods Signature

__init__(typename)

Initializes the appropriate C++ Data object and store it within the _data member.

Methods Definition

Tuple.__init__(typename)

Initializes the appropriate C++ Data object and store it within the _data member.

If C is a Data then _data store a copy the C++ Data is done and stored.
If C is a C++ Data then _data store a reference of the C++ Data.
If C is not defined the C++ data is created and stored in the _data member.
Parameters

C (Union[None, maxon.Data]) – Input data from which the Data should be created.