tuple_sem_type_elemT_tuple_sem_type_elemTupleSemTypeElemTupleSemTypeElem (Operator)

Name

tuple_sem_type_elemT_tuple_sem_type_elemTupleSemTypeElemTupleSemTypeElem — Return the semantic type of the elements of a tuple.

Signature

tuple_sem_type_elem( : : T : SemTypes)

Herror T_tuple_sem_type_elem(const Htuple T, Htuple* SemTypes)

void TupleSemTypeElem(const HTuple& T, HTuple* SemTypes)

HTuple HTuple::TupleSemTypeElem() const

static void HOperatorSet.TupleSemTypeElem(HTuple t, out HTuple semTypes)

HTuple HTuple.TupleSemTypeElem()

Description

tuple_sem_type_elemtuple_sem_type_elemTupleSemTypeElemTupleSemTypeElemTupleSemTypeElem returns the semantic type of each element of the input tuple TTTTt. The semantic type is returned as a tuple of string values in the output parameter SemTypesSemTypesSemTypesSemTypessemTypes.

If an element is a valid handle, the corresponding semantic type of the handle is returned. For an invalid or cleared handle, 'handle'"handle""handle""handle""handle" is returned.

Exception: Empty input tuple

If the input tuple is empty, the operator returns an empty tuple.

Execution Information

Parameters

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

Input tuple.

SemTypesSemTypesSemTypesSemTypessemTypes (output_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Semantic types of the elements of the input tuple as strings.

Example (HDevelop)

create_matrix (3, 3, 0, MatrixID)
tuple_sem_type_elem ([MatrixID,1,1.0,'HALCON',HNULL], SemTypeElem)
* SemTypeElem == ['matrix','integer','real','string','handle']

Result

If the parameters are valid, the operator tuple_sem_type_elemtuple_sem_type_elemTupleSemTypeElemTupleSemTypeElemTupleSemTypeElem returns the value 2 (H_MSG_TRUE).

Alternatives

tuple_typetuple_typeTupleTypeTupleTypeTupleType, 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_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElem, tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElem, tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElem, tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemTupleTypeElem, tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemType

See also

get_obj_classget_obj_classGetObjClassGetObjClassGetObjClass

Module

Foundation