|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QNativePointer.AutoDeleteMode>
com.trolltech.qt.QNativePointer.AutoDeleteMode
public static enum 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.
Enum Constant Summary | |
---|---|
Delete
The pointer is allocated with c++ new . |
|
DeleteArray
This must be the mode of deletion if the pointer is an array. |
|
Free
Free must be used if the pointer was allocated using c++ free() . |
|
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)
Returns the enum constant of this type with the specified name. |
static QNativePointer.AutoDeleteMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
Enum Constant 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()
for (QNativePointer.AutoDeleteMode c : QNativePointer.AutoDeleteMode.values()) System.out.println(c);
public static QNativePointer.AutoDeleteMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |