tuple_andtuple_andTupleAndTupleAnd (Operator)
Name
tuple_andtuple_andTupleAndTupleAnd — Berechnen des logischen Und zweier Tupel.
Signatur
Herror tuple_and(const Hlong T1, const Hlong T2, Hlong* And)
Herror T_tuple_and(const Htuple T1, const Htuple T2, Htuple* And)
void TupleAnd(const HTuple& T1, const HTuple& T2, HTuple* And)
HTuple HTuple::TupleAnd(const HTuple& T2) const
Beschreibung
tuple_andtuple_andTupleAndTupleAndTupleAnd berechnet das logische Und der Eingabetupel
T1T1T1T1t1 und T2T2T2T2t2. Falls beide Tupel dieselbe Länge
haben, werden die entsprechenden Elemente der beiden Tupel
veknüpft. Ansonsten muss entweder T1T1T1T1t1 oder T2T2T2T2t2 die
Länge 1 haben. In diesem Fall wird die Operation für jedes
Element des längeren Tupels mit dem einzigen Element des anderen
Tupels ausgeführt. Die Eingabezahlen müssen ganze Zahlen sein.
Sonderfall: Leere Eingabetupel
Falls eines oder mehrere Eingabetupel leer sind, wird eine Fehlermeldung
angezeigt.
HDevelop Inline-Operation
HDevelop unterstützt eine Inline-Operation für tuple_andtuple_andTupleAndTupleAndTupleAnd,
die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden
kann:
And := T1 and T2
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
T1T1T1T1t1 (input_control) integer(-array) → HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Eingabetupel 1.
T2T2T2T2t2 (input_control) integer(-array) → HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Eingabetupel 2.
AndAndAndAndand (output_control) integer(-array) → HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Logisches Und der Eingabetupel.
Alternativen
tuple_ortuple_orTupleOrTupleOrTupleOr,
tuple_xortuple_xorTupleXorTupleXorTupleXor,
tuple_nottuple_notTupleNotTupleNotTupleNot
Siehe auch
tuple_bandtuple_bandTupleBandTupleBandTupleBand,
tuple_bortuple_borTupleBorTupleBorTupleBor,
tuple_bxortuple_bxorTupleBxorTupleBxorTupleBxor,
tuple_bnottuple_bnotTupleBnotTupleBnotTupleBnot
Modul
Foundation