java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Ref
com.github.stephengold.joltjni.ComputeSystemRef
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A counted reference to a
ComputeSystem. (native type:
Ref<ComputeSystem>)-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
ComputeSystemRef
public ComputeSystemRef()Instantiate an empty reference.
-
-
Method Details
-
getPtr
Access the target system, if any. -
getRtti
Access the run-time type information of the current compute system. (native function: GetRTTI)- Returns:
- a new JVM object with the pre-existing native object assigned
-
targetVa
public long targetVa()Return the address of the nativeComputeSystem. No objects are affected.- Specified by:
targetVain interfaceConstJoltPhysicsObject- Overrides:
targetVain classJoltPhysicsObject- Returns:
- the virtual address, or zero if the reference is empty
-
toRef
Create an additional counted reference to the targeted system.
-