crystalspace.jbind.interfaces
Interface iPointer

All Known Subinterfaces:
iBase, iCacheManager, iCamera, iCameraPosition, iCameraPositionList, iClipper2D, iCollection, iCollectionList, iCommandLineParser, iConfigFile, iConfigIterator, iConfigManager, iCrossHalo, iDataBuffer, iEffectDefinition, iEffectLayer, iEffectPass, iEffectTechnique, iEngine, iEvent, iEventCord, iEventOutlet, iEventQueue, iFile, iFlareHalo, iFont, iFontServer, iFrustumView, iFrustumViewUserdata, iGraphics2D, iGraphics3D, iHalo, iImage, iKeyboardDriver, iKeyComposer, iLight, iLightingInfo, iLightIterator, iLightList, iLoader, iLoaderContext, iLoaderStatus, iLODControl, iMaterial, iMaterialHandle, iMaterialList, iMaterialWrapper, iMeshFactoryList, iMeshFactoryWrapper, iMeshList, iMeshObject, iMeshObjectFactory, iMeshWrapper, iMeshWrapperIterator, iMovable, iNativeWindow, iNovaHalo, iObject, iObjectIterator, iObjectModel, iObjectRegistry, iObjectRegistryIterator, iObjectWatcher, iPluginIterator, iPluginManager, iPolygonBuffer, iPolygonHandle, iPolygonMesh, iPortal, iPortalContainer, iProgressMeter, iRegion, iRegionList, iRenderBuffer, iRendererLightmap, iRenderLoop, iRenderLoopManager, iRenderStepContainer, iRenderView, iSector, iSectorIterator, iSectorList, iShader, iShaderVariableContext, iShadowBlock, iShadowBlockList, iShadowIterator, iSharedVariable, iSharedVariableList, iSoundData, iSoundHandle, iSoundSource, iSoundWrapper, iStringArray, iSuperLightmap, iTextureHandle, iTextureList, iTextureManager, iTextureWrapper, iThingFactoryState, iThingState, iVertexBuffer, iVertexBufferManager, iVFS, iView, iVirtualClock, iVisibilityCuller, iVisibilityObject, iVisibilityObjectIterator
All Known Implementing Classes:
csBase, csCacheManager, csCamera, csCameraPosition, csCameraPositionList, csClipper2D, csCollection, csCollectionList, csCommandLineParser, csConfigFile, csConfigIterator, csConfigManager, csCrossHalo, csDataBuffer, csEffectDefinition, csEffectLayer, csEffectPass, csEffectTechnique, csEngine, csEvent, csEventCord, csEventOutlet, csEventOutlet, csEventQueue, csFile, csFlareHalo, csFont, csFontServer, csFrustumView, csFrustumViewUserdata, csGraphics2D, csGraphics3D, csHalo, csImage, csKeyboardDriver, csKeyComposer, csLight, csLightingInfo, csLightIterator, csLightList, csLoader, csLoaderContext, csLoaderStatus, csLODControl, csMaterial, csMaterialHandle, csMaterialList, csMaterialWrapper, csMeshFactoryList, csMeshFactoryWrapper, csMeshList, csMeshObject, csMeshObjectFactory, csMeshWrapper, csMeshWrapperIterator, csMovable, csNativeObject, csNovaHalo, csObject, csObjectIterator, csObjectModel, csObjectRegistry, csObjectRegistryIterator, csObjectWatcher, csPluginIterator, csPluginManager, csPointer, csPolygonBuffer, csPolygonHandle, csPolygonMesh, csPolygonRange, csPortal, csPortalContainer, csProgressMeter, csRegion, csRegionList, csRenderBuffer, csRendererLightmap, csRenderLoop, csRenderLoopManager, csRenderStepContainer, csRenderView, csSector, csSectorIterator, csSectorList, csShader, csShaderVariableContext, csShadowBlock, csShadowBlockList, csShadowIterator, csSharedVariable, csSharedVariableList, csSoundData, csSoundHandle, csSoundSource, csSoundWrapper, csStringArray, csSuperLightmap, csTextureHandle, csTextureList, csTextureManager, csTextureWrapper, csThingFactoryState, csThingState, csVertexBuffer, csVertexBufferManager, csVFS, csView, csView, csVirtualClock, csVisibilityCuller, csVisibilityObject, csVisibilityObjectIterator

public interface iPointer

This interface represent a pointer to a native object.

Author:
Quentin Anciaux

Method Summary
 void changePointer(long nPointer)
          Change the value of the pointer.
 long getPointer()
          Return the value of the pointer as a long
 boolean isMemoryOwner()
          Tells if java or the native side is responsible of the memory management of the native object pointed by this pointer.
 void setMemoryOwner(boolean owner)
          Set the responsible of the memory management of the native objetc pointed by this pointer.
 

Method Detail

getPointer

public long getPointer()
Return the value of the pointer as a long

Returns:

changePointer

public void changePointer(long nPointer)
Change the value of the pointer.

Parameters:
nPointer -

setMemoryOwner

public void setMemoryOwner(boolean owner)
Set the responsible of the memory management of the native objetc pointed by this pointer. True - Java will delete the native object on GC False - The native side handle the release.

Parameters:
owner -

isMemoryOwner

public boolean isMemoryOwner()
Tells if java or the native side is responsible of the memory management of the native object pointed by this pointer.

Returns: