Package org.bytedeco.leptonica
Class DLLIST
java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.DLLIST
- All Implemented Interfaces:
AutoCloseable
\file 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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
Constructor Details
-
DLLIST
public DLLIST()Default native constructor. -
DLLIST
public DLLIST(long size) Native array allocator. Access withPointer.position(long)
. -
DLLIST
Pointer cast constructor. InvokesPointer(Pointer)
.
-
-
Method Details
-
position
-
getPointer
- Overrides:
getPointer
in classPointer
-
prev
-
prev
-
next
-
next
-
data
-
data
-