Package org.bytedeco.javacpp
Class Pointer.CustomDeallocator
java.lang.Object
java.lang.ref.Reference<Pointer>
java.lang.ref.PhantomReference<Pointer>
org.bytedeco.javacpp.Pointer.DeallocatorReference
org.bytedeco.javacpp.Pointer.CustomDeallocator
- All Implemented Interfaces:
Pointer.Deallocator
,Pointer.ReferenceCounter
- Enclosing class:
Pointer
A
Pointer.Deallocator
that calls, during garbage collection, a method with signature
static void deallocate()
from the Pointer object passed to the constructor
and that accepts it as argument. Uses reflection to locate and call the method.- See Also:
-
Field Summary
FieldsFields inherited from class org.bytedeco.javacpp.Pointer.DeallocatorReference
bytes, count, deallocator, head, next, prev, totalBytes, totalCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bytedeco.javacpp.Pointer.DeallocatorReference
add, clear, count, release, remove, retain
Methods inherited from class java.lang.ref.PhantomReference
get
Methods inherited from class java.lang.ref.Reference
clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
Constructor Details
-
CustomDeallocator
-
-
Method Details
-
deallocate
public void deallocate()- Specified by:
deallocate
in interfacePointer.Deallocator
- Overrides:
deallocate
in classPointer.DeallocatorReference
-
toString
- Overrides:
toString
in classPointer.DeallocatorReference
-