tuple_sem_type_elemT_tuple_sem_type_elemTupleSemTypeElemTupleSemTypeElemtuple_sem_type_elem (Operator)
Name
tuple_sem_type_elemT_tuple_sem_type_elemTupleSemTypeElemTupleSemTypeElemtuple_sem_type_elem
— Return the semantic type of the elements of a tuple.
Signature
Herror T_tuple_sem_type_elem(const Htuple T, Htuple* SemTypes)
def tuple_sem_type_elem(t: HTupleType) -> Sequence[str]
def tuple_sem_type_elem_s(t: HTupleType) -> str
Description
tuple_sem_type_elemtuple_sem_type_elemTupleSemTypeElemTupleSemTypeElemTupleSemTypeElemtuple_sem_type_elem
returns the semantic type of each element
of the input tuple TTTTtt
.
The semantic type is returned as a tuple of string values in the output
parameter SemTypesSemTypesSemTypesSemTypessemTypessem_types
.
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""handle"
is returned.
Exception: Empty input tuple
If the input tuple is empty, the operator returns an empty tuple.
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TTTTtt
(input_control) tuple(-array) →
HTupleHTupleTypeHTupleHtuple (handle / real / integer / string) (HHandle / double / int / long / string) (HHandle / double / Hlong / HString) (handle / double / Hlong / char*)
Input tuple.
SemTypesSemTypesSemTypesSemTypessemTypessem_types
(output_control) string(-array) →
HTupleSequence[str]HTupleHtuple (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_elemTupleSemTypeElemTupleSemTypeElemTupleSemTypeElemtuple_sem_type_elem
returns the value TRUE.
Alternatives
tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type
,
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed
,
tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int
,
tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real
,
tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string
,
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed
,
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElemtuple_is_int_elem
,
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem
,
tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElemtuple_is_string_elem
,
tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemTupleTypeElemtuple_type_elem
,
tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemTypetuple_sem_type
See also
get_obj_classget_obj_classGetObjClassGetObjClassGetObjClassget_obj_class
Module
Foundation