|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.xbig.base.NativeObjectPointer<T>
public class NativeObjectPointer<T extends INativeObject>
The native object pointer is a generic to handle pointer pointers in C. E.g. float ** a.
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
NativeObjectPointer(InstancePointer pInstance)
Creates a new java object that points to a pointer-pointer created remote. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
getObject(T nativeObject)
Retreives the native object this NativeObjectPointer points to. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, finalize, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NativeObjectPointer(InstancePointer pInstance)
Note: This is not public API. Constructor is public for internal use only.
pInstance - The instance pointer for this NativeObjectPointer.| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void getObject(T nativeObject)
Note: For the given native object this function will free
possible alocated memory by calling INativeObject.delete().
nativeObject - The native object to set the instance pointer.
java.lang.NullPointerException - if the native object is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||