@Name(value="btAlignedObjectArray<double>") @NoOffset @Properties(inherit=LinearMath.class) public class btDoubleArray extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btDoubleArray() |
btDoubleArray(btDoubleArray otherArray)
Generally it is best to avoid using the copy constructor of an btAlignedObjectArray, and use a (const) reference to the array instead.
|
btDoubleArray(long size)
Native array allocator.
|
btDoubleArray(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()
|
DoublePointer |
at(int n) |
void |
clear()
clear the array, deallocated memory.
|
void |
copyFromArray(btDoubleArray otherArray) |
DoublePointer |
expand() |
DoublePointer |
expand(double fillValue) |
DoublePointer |
expandNonInitializing() |
int |
findBinarySearch(double key)
non-recursive binary search, assumes sorted array
|
int |
findLinearSearch(double key) |
int |
findLinearSearch2(double key) |
DoublePointer |
get(int n) |
btDoubleArray |
getPointer(long i) |
void |
initializeFromBuffer(Pointer buffer,
int size,
int _capacity) |
void |
pop_back() |
btDoubleArray |
position(long position) |
void |
push_back(double _Val) |
btDoubleArray |
put(btDoubleArray other) |
void |
remove(double key) |
void |
removeAtIndex(int index) |
void |
reserve(int _Count) |
void |
resize(int newsize) |
void |
resize(int newsize,
double 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 btDoubleArray(Pointer p)
Pointer(Pointer).public btDoubleArray(long size)
Pointer.position(long).public btDoubleArray()
public btDoubleArray(@Const @ByRef btDoubleArray otherArray)
public btDoubleArray position(long position)
public btDoubleArray getPointer(long i)
getPointer in class Pointer@ByRef @Name(value="operator =") public btDoubleArray put(@Const @ByRef btDoubleArray other)
public int size()
@ByRef public DoublePointer at(int n)
@ByRef @Name(value="operator []") public DoublePointer get(int n)
public void clear()
public void pop_back()
public void resizeNoInitialize(int newsize)
public void resize(int newsize,
double fillData)
public void resize(int newsize)
@ByRef public DoublePointer expandNonInitializing()
@ByRef public DoublePointer expand(double fillValue)
@ByRef public DoublePointer expand()
public void push_back(double _Val)
@Name(value="capacity") public int _capacity()
public void reserve(int _Count)
public void swap(int index0,
int index1)
public int findBinarySearch(double key)
public int findLinearSearch(double key)
public int findLinearSearch2(double key)
public void removeAtIndex(int index)
public void remove(double key)
public void initializeFromBuffer(Pointer buffer, int size, int _capacity)
public void copyFromArray(@Const @ByRef btDoubleArray otherArray)
Copyright © 2024. All rights reserved.