clear_handleT_clear_handleClearHandleClearHandleclear_handle (Operator)
Name
clear_handleT_clear_handleClearHandleClearHandleclear_handle
— Clear the content of a handle.
Signature
Herror T_clear_handle(const Htuple Handle)
void ClearHandle(const HTuple& Handle)
void HTuple::ClearHandle() const
void HHandle::ClearHandle() const
def clear_handle(handle: MaybeSequence[HHandle]) -> None
Description
clear_handleclear_handleClearHandleClearHandleClearHandleclear_handle
clears the content of the handle contained in
HandleHandleHandleHandlehandlehandle
.
The handle is left in a cleared state afterwards. Attempts to use it
in any other operator will raise an error.
Usually, handles are automatically cleared once all references in
all tuples are overwritten.
clear_handleclear_handleClearHandleClearHandleClearHandleclear_handle
can be used to clear a handle at a specific
time, even if there are still references to it.
This operator can be used to clear handles of any type instead of the more
specialized operators, such as
clear_matrixclear_matrixClearMatrixClearMatrixClearMatrixclear_matrix
or clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model
.
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters
HandleHandleHandleHandlehandlehandle
(input_control, state is modified) tuple(-array) →
HTupleMaybeSequence[HHandle]HTupleHtuple (handle) (HHandle) (HHandle) (handle)
Handle to clear.
Result
If the parameters are valid, the operator clear_handleclear_handleClearHandleClearHandleClearHandleclear_handle
returns the value TRUE. Otherwise, an exception is raised.
See also
tuple_is_valid_handletuple_is_valid_handleTupleIsValidHandleTupleIsValidHandleTupleIsValidHandletuple_is_valid_handle
Module
Foundation