tuple_sem_typeT_tuple_sem_typeTupleSemTypeTupleSemType (Operator)

Name

tuple_sem_typeT_tuple_sem_typeTupleSemTypeTupleSemType — Zurückgeben den semantischen Typs eines Tupels.

Signatur

tuple_sem_type( : : T : SemType)

Herror T_tuple_sem_type(const Htuple T, Htuple* SemType)

void TupleSemType(const HTuple& T, HTuple* SemType)

HTuple HTuple::TupleSemType() const

HString HHandle::TupleSemType() const

static void HOperatorSet.TupleSemType(HTuple t, out HTuple semType)

HTuple HTuple.TupleSemType()

string HHandle.TupleSemType()

Beschreibung

tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemType gibt den semantischen Typ des Eingabetuples TTTTt zurück. Der Typ wird als String in SemTypeSemTypeSemTypeSemTypesemType zurückgegeben.

Falls TTTTt nur gültige Handles des gleichen Typs enthält, wird dessen semantischer Typ zurückgegeben (z.B. 'matrix'"matrix""matrix""matrix""matrix"). Falls das Eingabetupel nur gültige und ungültige Handles oder Handles verschiedenen Typs enthält, wird 'handle'"handle""handle""handle""handle" zurückgegeben. Falls TTTTt Elemente verschiedenen Typs enthält, wird 'any'"any""any""any""any" zurückgegeben.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator den Wert 'any'"any""any""any""any" zurück.

Ausführungsinformationen

Parameter

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

Eingabetupel.

SemTypeSemTypeSemTypeSemTypesemType (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Semantischer Typ des Eingabetupels als String.

Beispiel (HDevelop)

create_matrix (3, 3, 0, MatrixID)
tuple_sem_type (MatrixID, SemType)
* SemType == 'matrix' (Handle of specific type)
clear_handle (MatrixID)
tuple_sem_type (MatrixID, SemType)
* SemType == 'handle' (Cleared handle)
tuple_sem_type ([MatrixID,123], SemType)
* SemType == 'any' (Mixed types)

Ergebnis

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

Alternativen

tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInt, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumber, tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsReal, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsString, tuple_typetuple_typeTupleTypeTupleTypeTupleType

Siehe auch

get_obj_classget_obj_classGetObjClassGetObjClassGetObjClass

Modul

Foundation