@Name(value="op::Array<long long>") @NoOffset @Properties(inherit=openpose.class) public class LongLongArray extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LongLongArray() |
LongLongArray(int size)
Array constructor.
|
LongLongArray(int[] sizes) |
LongLongArray(int[] sizes,
long value) |
LongLongArray(int[] sizes,
long[] dataPtr) |
LongLongArray(IntBuffer sizes) |
LongLongArray(IntBuffer sizes,
long value) |
LongLongArray(IntBuffer sizes,
LongBuffer dataPtr) |
LongLongArray(int size,
long value)
Array constructor.
|
LongLongArray(int size,
long[] dataPtr) |
LongLongArray(int size,
LongBuffer dataPtr) |
LongLongArray(int size,
LongPointer dataPtr)
Array constructor.
|
LongLongArray(IntPointer sizes)
Array constructor.
|
LongLongArray(IntPointer sizes,
long value)
Array constructor.
|
LongLongArray(IntPointer sizes,
LongPointer dataPtr)
Array constructor.
|
LongLongArray(LongLongArray array)
Copy constructor.
|
LongLongArray(LongLongArray array,
int index) |
LongLongArray(LongLongArray array,
int index,
boolean noCopy)
Array constructor.
|
LongLongArray(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
LongPointer |
at(int index)
at() function
Same functionality as operator[](const int index), but it always check whether the indexes are within the
data bounds.
|
long[] |
at(int[] indexes) |
LongBuffer |
at(IntBuffer indexes) |
LongPointer |
at(IntPointer indexes)
at() function
Same functionality as operator[](const std::vector
|
LongLongArray |
clone()
Clone function.
|
boolean |
empty()
Check whether memory has been allocated.
|
LongPointer |
get(int index)
[] operator
Similar to the [] operator for raw pointer data.
|
long[] |
get(int[] indexes) |
LongBuffer |
get(IntBuffer indexes) |
LongPointer |
get(IntPointer indexes)
[] operator
Same functionality as operator[](const int index), but it lets the user introduce the multi-dimensional
index.
|
Matrix |
getConstCvMat()
Return a Matrix wrapper to the data.
|
LongPointer |
getConstPtr()
Similar to getPtr(), but it forbids the data to be edited.
|
Matrix |
getCvMat()
Analogous to getConstCvMat, but in this case it returns a editable Matrix.
|
long |
getNumberDimensions()
Return the total number of dimensions, equivalent to getSize().size().
|
LongPointer |
getPseudoConstPtr()
Similar to getConstPtr(), but it allows the data to be edited.
|
LongPointer |
getPtr()
Return a raw pointer to the data.
|
IntPointer |
getSize()
Return a vector with the size of each dimension allocated.
|
int |
getSize(int index)
Return a vector with the size of the desired dimension.
|
IntPointer |
getStride()
Return the stride or step size of the array.
|
int |
getStride(int index)
Return the stride or step size of the array at the index-th dimension.
|
long |
getVolume()
Return the total number of elements allocated, equivalent to multiply all the components from getSize().
|
long |
getVolume(int indexA) |
long |
getVolume(int indexA,
int indexB)
Similar to getVolume(), but in this case it just returns the volume between the desired dimensions.
|
BytePointer |
printSize()
Return a string with the size of each dimension allocated.
|
LongLongArray |
put(LongLongArray array)
Copy assignment.
|
void |
reset() |
void |
reset(int size)
Data allocation function.
|
void |
reset(int[] sizes) |
void |
reset(int[] sizes,
long value) |
void |
reset(int[] sizes,
long[] dataPtr) |
void |
reset(IntBuffer sizes) |
void |
reset(IntBuffer sizes,
long value) |
void |
reset(IntBuffer sizes,
LongBuffer dataPtr) |
void |
reset(int size,
long value)
Data allocation function.
|
void |
reset(int size,
long[] dataPtr) |
void |
reset(int size,
LongBuffer dataPtr) |
void |
reset(int size,
LongPointer dataPtr)
Data allocation function.
|
void |
reset(IntPointer sizes)
Data allocation function.
|
void |
reset(IntPointer sizes,
long value)
Data allocation function.
|
void |
reset(IntPointer sizes,
LongPointer dataPtr)
Data allocation function.
|
void |
setFrom(Matrix cvMat)
Data allocation function.
|
void |
setTo(long value)
Data allocation function.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public LongLongArray(Pointer p)
Pointer(Pointer)
.public LongLongArray(int size)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.public LongLongArray(@StdVector IntPointer sizes)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to
new T[3*5*2]
.public LongLongArray()
public LongLongArray(@StdVector IntBuffer sizes)
public LongLongArray(@StdVector int[] sizes)
public LongLongArray(int size, long value)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.value
- Initial value for each component of the Array.public LongLongArray(@StdVector IntPointer sizes, long value)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to:
new T[3*5*2]
.value
- Initial value for each component of the Array.public LongLongArray(@StdVector IntBuffer sizes, long value)
public LongLongArray(@StdVector int[] sizes, long value)
public LongLongArray(int size, LongPointer dataPtr)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.dataPtr
- Pointer to the memory to be used by the Array.public LongLongArray(int size, LongBuffer dataPtr)
public LongLongArray(int size, long[] dataPtr)
public LongLongArray(@StdVector IntPointer sizes, LongPointer dataPtr)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to:
new T[3*5*2]
.dataPtr
- Pointer to the memory to be used by the Array.public LongLongArray(@StdVector IntBuffer sizes, LongBuffer dataPtr)
public LongLongArray(@StdVector int[] sizes, long[] dataPtr)
public LongLongArray(@Const @ByRef LongLongArray array, int index, @Cast(value="const bool") boolean noCopy)
array
- Arrayindex
- indicates the index of the array to extract.noCopy
- indicates whether to perform a copy. Copy will never go to undefined behavior, however, if
noCopy == true, then:
1. It is faster, as no data copy is involved, but...
2. If the Array array goes out of scope, then the resulting Array will provoke an undefined behavior.
3. If the returned Array is modified, the information in the Array array will also be.public LongLongArray(@Const @ByRef LongLongArray array, int index)
public LongLongArray(@Const @ByRef LongLongArray array)
fast copy
: For performance purpose, copying a Arrayarray
- Array to be copied.@ByRef @Name(value="operator =") public LongLongArray put(@Const @ByRef LongLongArray array)
array
- Array to be copied.@ByVal public LongLongArray clone()
public void reset(int size)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.public void reset(@StdVector IntPointer sizes)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to
new T[3*5*2]
.public void reset()
public void reset(@StdVector IntBuffer sizes)
public void reset(@StdVector int[] sizes)
public void reset(int size, long value)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.value
- Initial value for each component of the Array.public void reset(@StdVector IntPointer sizes, long value)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to
new T[3*5*2]
.value
- Initial value for each component of the Array.public void reset(@StdVector IntBuffer sizes, long value)
public void reset(@StdVector int[] sizes, long value)
public void reset(int size, LongPointer dataPtr)
size
- Integer with the number of T element to be allocated. E.g., size = 5 is internally similar to
new T[5]
.dataPtr
- Pointer to the memory to be used by the Array.public void reset(int size, LongBuffer dataPtr)
public void reset(int size, long[] dataPtr)
public void reset(@StdVector IntPointer sizes, LongPointer dataPtr)
sizes
- Vector with the size of each dimension. E.g., size = {3, 5, 2} is internally similar to:
new T[3*5*2]
.dataPtr
- Pointer to the memory to be used by the Array.public void reset(@StdVector IntBuffer sizes, LongBuffer dataPtr)
public void reset(@StdVector int[] sizes, long[] dataPtr)
public void setFrom(@Const @ByRef Matrix cvMat)
cvMat
- Matrix to be copied.public void setTo(long value)
value
- Value for each component of the Array.@Cast(value="bool") public boolean empty()
@StdVector public IntPointer getSize()
public int getSize(int index)
index
- Dimension to check its size.@StdString public BytePointer printSize()
@Cast(value="size_t") public long getNumberDimensions()
@Cast(value="size_t") public long getVolume()
@Cast(value="size_t") public long getVolume(int indexA, int indexB)
indexA
- Dimension where to start.indexB
- Dimension where to stop. If indexB == -1, then it will take up to the last dimension.@StdVector public IntPointer getStride()
public int getStride(int index)
public LongPointer getPtr()
@Const public LongPointer getConstPtr()
public LongPointer getPseudoConstPtr()
@Const @ByRef public Matrix getConstCvMat()
@ByRef public Matrix getCvMat()
@ByRef @Name(value="operator []") public LongPointer get(int index)
index
- The desired memory location.@ByRef @Name(value="operator []") public LongPointer get(@StdVector IntPointer indexes)
indexes
- Vector with the desired memory location.@ByRef @Name(value="operator []") public LongBuffer get(@StdVector IntBuffer indexes)
@ByRef @Name(value="operator []") public long[] get(@StdVector int[] indexes)
@ByRef public LongPointer at(int index)
index
- The desired memory location.@ByRef public LongPointer at(@StdVector IntPointer indexes)
indexes
- Vector with the desired memory location.@ByRef public LongBuffer at(@StdVector IntBuffer indexes)
@ByRef public long[] at(@StdVector int[] indexes)
Copyright © 2022. All rights reserved.