42 return std::hash<ValueType>{}(
value);
54 virtual ~AutoCleanup() =
default;
56 std::shared_ptr<AutoCleanup> _cleanup = {};
92struct hash<superdex::SceneHandle> :
public hash<superdex::Handle> {};
94struct hash<superdex::ActorHandle> :
public hash<superdex::Handle> {};
96struct hash<superdex::ShapeHandle> :
public hash<superdex::Handle> {};
98struct hash<superdex::CallbackHandle> :
public hash<superdex::Handle> {};
100struct hash<superdex::ConstraintHandle> :
public hash<superdex::Handle> {};
102struct hash<superdex::StateHandle> :
public hash<superdex::Handle> {};
104struct hash<superdex::QueryHandle> :
public hash<superdex::Handle> {};
constexpr uint64_t kInvalidHandle
Default value for an invalid handle.
Generic 64-bit handle providing base functionality for strongly-typed handles.
uint64_t GetHash() const
Compute a hash of the handle for use in unordered containers.
bool operator<(Handle const &rhs) const
uint64_t ValueType
Raw 64-bit identifier type.
ValueType value
Raw 64-bit identifier.
bool operator!=(Handle const &rhs) const
bool operator==(Handle const &rhs) const
bool IsValid() const
Check whether the handle is valid (i.e., its value is non-zero).
Runtime handle to a loaded nested prefab (the resolved target of a prefab::PrefabReference).
Handle to a shape (mesh, sphere, plane, etc.) within a Context.
Top-level prefab describing a complete or partial physics scene (possibly just one actor).