org.jocl
Class NativePointerObject

java.lang.Object
  extended by org.jocl.NativePointerObject
Direct Known Subclasses:
cl_command_queue, cl_context, cl_context_properties, cl_device_id, cl_event, cl_kernel, cl_mem, cl_platform_id, cl_program, cl_sampler, Pointer

public class NativePointerObject
extends java.lang.Object

Base class for all classes that store a native pointer


Constructor Summary
protected NativePointerObject()
          Creates a new (null) Pointer
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected  long getNativePointer()
          Package-private method to obtain the native pointer value.
 int hashCode()
           
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NativePointerObject

protected NativePointerObject()
Creates a new (null) Pointer

Method Detail

getNativePointer

protected long getNativePointer()
Package-private method to obtain the native pointer value.

Returns:
The native pointer value

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of this object.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object