stim::object_handle class

A generic handle capable of opaquely representing any simulation object.

Constructors, destructors, conversion operators

object_handle() defaulted constexpr noexcept
Default-constructs a null handle.
object_handle(const object_handle&) defaulted constexpr noexcept
Copy constructor.
operator bool() const explicit constexpr noexcept
Returns true if this handle represents a valid object (i.e is not null).
operator force_feedback_emitter_handle() const explicit noexcept
Casts this handle to a force_feedback_emitter_handle.
operator rigid_body_handle() const explicit noexcept
Casts this handle to a rigid_body_handle.
operator soft_body_handle() const explicit noexcept
Casts this handle to a soft_body_handle.
operator volumetric_body_handle() const explicit noexcept
Casts this handle to a volumetric_body_handle.

Public functions

auto operator=(const object_handle&) -> object_handle& defaulted noexcept
Copy-assignment operator.