Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLProgramReleaseCallback

extends Callback
implements CLProgramReleaseCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLProgramReleaseCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opencl.CLProgramReleaseCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the SetProgramReleaseCallback method.

Type


void (*invoke) (
    cl_program program,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
CLProgramReleaseCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static CLProgramReleaseCallback

Returns:

the new CLProgramReleaseCallback
create
(long functionPointer)

Creates a CLProgramReleaseCallback instance from the specified function pointer.

public static CLProgramReleaseCallback
create(CLProgramReleaseCallbackI instance)

Creates a CLProgramReleaseCallback instance that delegates to the specified CLProgramReleaseCallbackI instance.

public static CLProgramReleaseCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLProgramReleaseCallbackback to summary
protected CLProgramReleaseCallback()
CLProgramReleaseCallbackback to summary
pack-priv CLProgramReleaseCallback(long functionPointer)

Method Detail

createback to summary
public static CLProgramReleaseCallback create(long functionPointer)

Creates a CLProgramReleaseCallback instance from the specified function pointer.

Returns:CLProgramReleaseCallback

the new CLProgramReleaseCallback

createback to summary
public static CLProgramReleaseCallback create(CLProgramReleaseCallbackI instance)

Creates a CLProgramReleaseCallback instance that delegates to the specified CLProgramReleaseCallbackI instance.

createSafeback to summary
public static CLProgramReleaseCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLProgramReleaseCallback.Container

extends CLProgramReleaseCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLProgramReleaseCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, CLProgramReleaseCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the program object whose destructors are being called. When the user callback is called by the implementation, this program object is no longer valid. program is only provided for reference purposes.
program
,
long
the user-specified value that was passed when calling SetProgramReleaseCallback
user_data
)

Implements org.lwjgl.opencl.CLProgramReleaseCallbackI.invoke.

Will be called after destructors (if any) for program scope global variables (if any) are called and before the program is released.
Inherited from org.lwjgl.opencl.CLProgramReleaseCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLProgramReleaseCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, CLProgramReleaseCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long program, long user_data)

Implements org.lwjgl.opencl.CLProgramReleaseCallbackI.invoke.

Doc from org.lwjgl.opencl.CLProgramReleaseCallbackI.invoke.

Will be called after destructors (if any) for program scope global variables (if any) are called and before the program is released.

Parameters
program:long

the program object whose destructors are being called. When the user callback is called by the implementation, this program object is no longer valid. program is only provided for reference purposes.

user_data:long

the user-specified value that was passed when calling SetProgramReleaseCallback

Annotations
@Override