tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElem (Operator)
Name
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElem
— Testen, ob die Elemente eines Tupels vom Typ integer
(Ganzzahl)
sind.
Signatur
tuple_is_int_elem( : : T : IsInt)
Herror tuple_is_int_elem(const Hlong T, Hlong* IsInt)
Herror T_tuple_is_int_elem(const Htuple T, Htuple* IsInt)
Beschreibung
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElem
testet die Elemente des Eingabetupels TTTTt
.
Für alle Elemente vom Typ integer
(Ganzzahl) wird 1 (true)
zurückgegeben, ansonsten wird 0 (false) zurückgegeben.
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_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElem
,
die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden
kann:
IsInt := is_int_elem(T)
Achtung
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElem
gibt true
zurück, falls der interne
Datentyp der Elemente des Tupels integer
ist. Im Gegensatz zu
tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumber
wird nicht zurückgegeben, ob die Elemente eines Tupel
als integer
dargestellt werden könnten.
Ausführungsinformationen
- Multithreading-Typ: independent (läuft parallel auch zu exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
TTTTt
(input_control) tuple(-array) →
HTupleHTupleHtuple (integer / real / string / handle) (int / long / double / string / HHandle) (Hlong / double / HString / HHandle) (Hlong / double / char* / handle)
Eingabetupel.
IsIntIsIntIsIntIsIntisInt
(output_control) number(-array) →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Sind die Elemente des Eingabetupels vom Typ integer
(Ganzzahl)?
Beispiel (HDevelop)
tuple_is_int_elem ([3.1416,'pi',3,3.0], IsInt)
* IsInt = [false, false, true, false]
Ergebnis
Sind die Parameterwerte korrekt, dann liefert tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElem
den Wert 2 (H_MSG_TRUE).
Alternativen
tuple_typetuple_typeTupleTypeTupleTypeTupleType
,
tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemTupleTypeElem
,
tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInt
Siehe auch
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixed
,
tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInt
,
tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsReal
,
tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsString
,
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixed
,
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElem
,
tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElem
,
tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumber
,
tuple_is_handle_elemtuple_is_handle_elemTupleIsHandleElemTupleIsHandleElemTupleIsHandleElem
,
tuple_is_handletuple_is_handleTupleIsHandleTupleIsHandleTupleIsHandle
Modul
Foundation