@Name(value="b3AlignedObjectArray<b3OptimizedBvh*>") @NoOffset @Properties(inherit=Bullet3OpenCL.class) public class b3OptimizedBvhArray extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b3OptimizedBvhArray() |
b3OptimizedBvhArray(b3OptimizedBvhArray otherArray)
Generally it is best to avoid using the copy constructor of an b3AlignedObjectArray, and use a (const) reference to the array instead.
|
b3OptimizedBvhArray(long size)
Native array allocator.
|
b3OptimizedBvhArray(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
_capacity()
return the pre-allocated (reserved) elements, this is at least as large as the total number of elements,see size() and reserve()
|
b3OptimizedBvh |
at(int n) |
void |
clear()
clear the array, deallocated memory.
|
void |
copyFromArray(b3OptimizedBvhArray otherArray) |
b3OptimizedBvh |
expand() |
b3OptimizedBvh |
expand(b3OptimizedBvh fillValue) |
b3OptimizedBvh |
expandNonInitializing() |
int |
findBinarySearch(b3OptimizedBvh key)
non-recursive binary search, assumes sorted array
|
int |
findLinearSearch(b3OptimizedBvh key) |
int |
findLinearSearch2(b3OptimizedBvh key) |
b3OptimizedBvh |
get(int n) |
b3OptimizedBvhArray |
getPointer(long i) |
void |
initializeFromBuffer(Pointer buffer,
int size,
int _capacity) |
void |
pop_back() |
b3OptimizedBvhArray |
position(long position) |
void |
push_back(b3OptimizedBvh _Val) |
b3OptimizedBvhArray |
put(b3OptimizedBvhArray other) |
void |
remove(b3OptimizedBvh key) |
void |
removeAtIndex(int index) |
void |
reserve(int _Count) |
void |
resize(int newsize) |
void |
resize(int newsize,
b3OptimizedBvh fillData) |
void |
resizeNoInitialize(int newsize)
resize changes the number of elements in the array.
|
int |
size()
return the number of elements in the array
|
void |
swap(int index0,
int index1)
heap sort from http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Sort/Heap/
|
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, zeropublic b3OptimizedBvhArray(Pointer p)
Pointer(Pointer).public b3OptimizedBvhArray(long size)
Pointer.position(long).public b3OptimizedBvhArray()
public b3OptimizedBvhArray(@Const @ByRef b3OptimizedBvhArray otherArray)
public b3OptimizedBvhArray position(long position)
public b3OptimizedBvhArray getPointer(long i)
getPointer in class Pointer@ByRef @Name(value="operator =") public b3OptimizedBvhArray put(@Const @ByRef b3OptimizedBvhArray other)
public int size()
@ByPtrRef public b3OptimizedBvh at(int n)
@ByPtrRef @Name(value="operator []") public b3OptimizedBvh get(int n)
public void clear()
public void pop_back()
public void resizeNoInitialize(int newsize)
public void resize(int newsize,
@ByPtrRef
b3OptimizedBvh fillData)
public void resize(int newsize)
@ByPtrRef public b3OptimizedBvh expandNonInitializing()
@ByPtrRef public b3OptimizedBvh expand(@ByPtrRef b3OptimizedBvh fillValue)
@ByPtrRef public b3OptimizedBvh expand()
public void push_back(@ByPtrRef b3OptimizedBvh _Val)
@Name(value="capacity") public int _capacity()
public void reserve(int _Count)
public void swap(int index0,
int index1)
public int findBinarySearch(@ByPtrRef b3OptimizedBvh key)
public int findLinearSearch(@ByPtrRef b3OptimizedBvh key)
public int findLinearSearch2(@ByPtrRef b3OptimizedBvh key)
public void remove(@ByPtrRef b3OptimizedBvh key)
public void initializeFromBuffer(Pointer buffer, int size, int _capacity)
public void copyFromArray(@Const @ByRef b3OptimizedBvhArray otherArray)
public void removeAtIndex(int index)
Copyright © 2024. All rights reserved.