|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.QNativePointer.AutoDeleteMode
public static final class QNativePointer.AutoDeleteMode
The AutoDeleteMode enum describes how garbage collection of the QNativePointer handles the deletion of the native pointer. By default, the mode is set to Delete or DeleteArray.
Field Summary | |
---|---|
static QNativePointer.AutoDeleteMode |
Delete
The pointer is allocated with c++ new . |
static QNativePointer.AutoDeleteMode |
DeleteArray
This must be the mode of deletion if the pointer is an array. |
static QNativePointer.AutoDeleteMode |
Free
Free must be used if the pointer was allocated using c++ free() . |
static QNativePointer.AutoDeleteMode |
None
Use this deletion mode if you do not want to delete the c++ pointer when the QNativePointer object is garbage collected. |
Method Summary | |
---|---|
static QNativePointer.AutoDeleteMode |
valueOf(java.lang.String name)
|
static QNativePointer.AutoDeleteMode[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QNativePointer.AutoDeleteMode Free
free()
.
Currently, no pointers in Qt Jambi is allocated in this manner.
public static final QNativePointer.AutoDeleteMode Delete
new
.
This should be used for all pointers in Qt Jambi
public static final QNativePointer.AutoDeleteMode DeleteArray
public static final QNativePointer.AutoDeleteMode None
Method Detail |
---|
public static QNativePointer.AutoDeleteMode[] values()
public static QNativePointer.AutoDeleteMode valueOf(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |