ParametricTupleType Class Reference

#include <parametric_type.h>

Inheritance diagram for ParametricTupleType:

Public Member Functions

maxon::Result< TupleDataTypeInstantiate (const maxon::Block< const DataType > &types) const
 
maxon::Result< TupleDataTypeInstantiate (const maxon::Block< const Member > &members) const
 

Member Function Documentation

◆ Instantiate() [1/2]

maxon::Result<TupleDataType> Instantiate ( const maxon::Block< const DataType > &  types) const

Returns a TupleDataType with members of the given types. On the first invocation for a specific types array, the data type will be constructed, later invocations will return the same data type object. The identifier of a tuple data type is a parenthesized list of the identifiers of the member types.

Parameters
[in]typesArray of member types for the tuple data type.
Returns
TupleDataType consisting of the given member types.

◆ Instantiate() [2/2]

maxon::Result<TupleDataType> Instantiate ( const maxon::Block< const Member > &  members) const