@Name(value="DoubleLinkedList")
public static class lept.DLLIST
extends org.bytedeco.javacpp.Pointer
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)
data >
L_END_LIST
| Constructor and Description |
|---|
DLLIST()
Default native constructor.
|
DLLIST(long size)
Native array allocator.
|
DLLIST(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.bytedeco.javacpp.Pointer |
data() |
lept.DLLIST |
data(org.bytedeco.javacpp.Pointer data) |
lept.DLLIST |
next() |
lept.DLLIST |
next(lept.DLLIST next) |
lept.DLLIST |
position(long position) |
lept.DLLIST |
prev() |
lept.DLLIST |
prev(lept.DLLIST prev) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic DLLIST()
public DLLIST(long size)
Pointer.position(long).public DLLIST(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public lept.DLLIST position(long position)
position in class org.bytedeco.javacpp.Pointerpublic lept.DLLIST prev()
public lept.DLLIST prev(lept.DLLIST prev)
public lept.DLLIST next()
public lept.DLLIST next(lept.DLLIST next)
public org.bytedeco.javacpp.Pointer data()
public lept.DLLIST data(org.bytedeco.javacpp.Pointer data)
Copyright © 2018. All rights reserved.