Class NativePointerObject

java.lang.Object
org.jocl.NativePointerObject
Direct Known Subclasses:
cl_command_queue, cl_context, cl_context_properties, cl_device_id, cl_device_partition_property, cl_event, cl_kernel, cl_mem, cl_pipe_properties, cl_platform_id, cl_program, cl_queue_properties, cl_sampler, cl_sampler_properties, Pointer

public class NativePointerObject extends Object
Base class for all classes that store a native pointer
  • Constructor Details

    • NativePointerObject

      protected NativePointerObject()
      Creates a new (null) Pointer
  • Method Details

    • getNativePointer

      public long getNativePointer()
      Method to obtain the native pointer value. Clients should usually not use this pointer value directly. It is only intended for interoperability with other JNI based libraries.
      Returns:
      The native pointer value
    • toString

      public String toString()
      Returns a String representation of this object.
      Overrides:
      toString in class Object
      Returns:
      A String representation of this object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object