@NoOffset @Properties(inherit=liquidfun.class) public class b2IntrusiveListNode extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2IntrusiveListNode()
Initialize the node.
|
b2IntrusiveListNode(long size)
Native array allocator.
|
b2IntrusiveListNode(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FindNodeInList(b2IntrusiveListNode nodeToFind)
Determine whether the specified node is present in this list.
|
long |
GetLength()
Calculate the length of the list.
|
b2IntrusiveListNode |
GetNext()
Get the next node in the list.
|
b2IntrusiveListNode |
getPointer(long i) |
b2IntrusiveListNode |
GetPrevious()
Get the previous node in the list.
|
b2IntrusiveListNode |
GetTerminator()
Get the terminator of the list.
|
boolean |
InList()
Determine whether this node is in a list or the list contains nodes.
|
void |
InsertAfter(b2IntrusiveListNode node)
Insert this node after the specified node.
|
void |
InsertBefore(b2IntrusiveListNode node)
Insert this node before the specified node.
|
boolean |
IsEmpty()
Determine whether this list is empty or the node isn't in a list.
|
b2IntrusiveListNode |
position(long position) |
b2IntrusiveListNode |
Remove()
Remove this node from the list it's currently in.
|
boolean |
ValidateList()
If B2_INTRUSIVE_LIST_VALIDATE is 1 perform a very rough validation
of all nodes in the list.
|
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
public b2IntrusiveListNode(Pointer p)
Pointer(Pointer)
.public b2IntrusiveListNode(long size)
Pointer.position(long)
.public b2IntrusiveListNode()
public b2IntrusiveListNode position(long position)
public b2IntrusiveListNode getPointer(long i)
getPointer
in class Pointer
public void InsertAfter(b2IntrusiveListNode node)
public void InsertBefore(b2IntrusiveListNode node)
@Const public b2IntrusiveListNode GetTerminator()
public b2IntrusiveListNode Remove()
@Cast(value="bool") public boolean IsEmpty()
@Cast(value="bool") public boolean InList()
public b2IntrusiveListNode GetNext()
public b2IntrusiveListNode GetPrevious()
@Cast(value="bool") public boolean ValidateList()
@Cast(value="bool") public boolean FindNodeInList(b2IntrusiveListNode nodeToFind)
Copyright © 2022. All rights reserved.