Package net.sourceforge.lept4j
Class DoubleLinkedList
java.lang.Object
com.sun.jna.Structure
net.sourceforge.lept4j.DoubleLinkedList
- Direct Known Subclasses:
DoubleLinkedList.ByReference
,DoubleLinkedList.ByValue
public class DoubleLinkedList
extends com.sun.jna.Structure
list.h
Cell for double-linked lists
This allows composition of a list of cells with
prev, next and data pointers. Generic data
structures hang on the list cell data pointers.
The list is not circular because that would add much
complexity in traversing the list under general
conditions where list cells can be added and removed.
The only disadvantage of not having the head point to
the last cell is that the list must be traversed to
find its tail. However, this traversal is fast, and
the listRemoveFromTail() function updates the tail
so there is no searching overhead with repeated use.
The list macros are used to run through a list, and their
use is encouraged. They are invoked, e.g., as
DLLIST *head, *elem;
...
L_BEGIN_LIST_FORWARD(head, elem)
<do something with elem and/or elem->data >
L_END_LIST
native declaration : list.h:26
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java or JNA.
Cell for double-linked lists
This allows composition of a list of cells with
prev, next and data pointers. Generic data
structures hang on the list cell data pointers.
The list is not circular because that would add much
complexity in traversing the list under general
conditions where list cells can be added and removed.
The only disadvantage of not having the head point to
the last cell is that the list must be traversed to
find its tail. However, this traversal is fast, and
the listRemoveFromTail() function updates the tail
so there is no searching overhead with repeated use.
The list macros are used to run through a list, and their
use is encouraged. They are invoked, e.g., as
DLLIST *head, *elem;
...
L_BEGIN_LIST_FORWARD(head, elem)
<do something with elem and/or elem->data >
L_END_LIST
native declaration : list.h:26
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java or JNA.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
-
Field Summary
Modifier and TypeFieldDescriptioncom.sun.jna.Pointer
C type : void*C type : DoubleLinkedList*C type : DoubleLinkedList*Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
ConstructorDescriptionDoubleLinkedList
(com.sun.jna.Pointer peer) DoubleLinkedList
(DoubleLinkedList.ByReference prev, DoubleLinkedList.ByReference next, com.sun.jna.Pointer data) -
Method Summary
Modifier and TypeMethodDescriptionGets this Structure's field names in their proper order.Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
prev
C type : DoubleLinkedList* -
next
C type : DoubleLinkedList* -
data
public com.sun.jna.Pointer dataC type : void*
-
-
Constructor Details
-
DoubleLinkedList
public DoubleLinkedList() -
DoubleLinkedList
public DoubleLinkedList(DoubleLinkedList.ByReference prev, DoubleLinkedList.ByReference next, com.sun.jna.Pointer data) - Parameters:
prev
- C type : DoubleLinkedList*next
- C type : DoubleLinkedList*data
- C type : void*
-
DoubleLinkedList
public DoubleLinkedList(com.sun.jna.Pointer peer)
-
-
Method Details
-
getFieldOrder
Gets this Structure's field names in their proper order.- Overrides:
getFieldOrder
in classcom.sun.jna.Structure
- Returns:
- list of ordered field names
-