tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemtuple_type_elem (Operator)

Name

tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemtuple_type_elem — Zurückgeben des Typs der Elemente eines Tupels.

Signatur

tuple_type_elem( : : T : Types)

Herror tuple_type_elem(double T, Hlong* Types)

Herror T_tuple_type_elem(const Htuple T, Htuple* Types)

void TupleTypeElem(const HTuple& T, HTuple* Types)

HTuple HTuple::TupleTypeElem() const

static void HOperatorSet.TupleTypeElem(HTuple t, out HTuple types)

HTuple HTuple.TupleTypeElem()

def tuple_type_elem(t: HTupleType) -> Sequence[int]

def tuple_type_elem_s(t: HTupleType) -> int

Beschreibung

tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemtuple_type_elem gibt den Typ der Elemente des Eingabetupels TTTtt zurück. Die Typen werden als Ganzzahl im Ausgabeparameter TypesTypesTypestypestypes zurückgegeben. In HDevelop stehen entsprechend definierte Konstanten zur Verfügung:

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemtuple_type_elem, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

Types := type_elem(T)

Ausführungsinformationen

Parameter

TTTtt (input_control)  tuple(-array) HTupleHTupleTypeHTupleHtuple (real / integer / string / handle) (double / int / long / string / HHandle) (double / Hlong / HString / HHandle) (double / Hlong / char* / handle)

Eingabetupel.

TypesTypesTypestypestypes (output_control)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Typen der Elemente des Eingabetupels als Ganzzahl.

Beispiel (HDevelop)

tuple_type_elem ([3.1416,'pi',3], Types)
* Types = [H_TYPE_REAL, H_TYPE_STRING, H_TYPE_INT]

Ergebnis

Sind die Parameterwerte korrekt, dann liefert tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemtuple_type_elem den Wert 2 ( H_MSG_TRUE) .

Alternativen

tuple_typetuple_typeTupleTypeTupleTypetuple_type, tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedtuple_is_mixed, tuple_is_inttuple_is_intTupleIsIntTupleIsInttuple_is_int, tuple_is_realtuple_is_realTupleIsRealTupleIsRealtuple_is_real, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringtuple_is_string, tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedtuple_is_mixed, tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemtuple_is_int_elem, tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemtuple_is_real_elem, tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemtuple_is_string_elem

Siehe auch

get_obj_classget_obj_classGetObjClassGetObjClassget_obj_class, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumbertuple_is_number

Modul

Foundation