Package boofcv.struct.feature
Class PackedTupleArray_F32
java.lang.Object
boofcv.struct.feature.PackedTupleArray_F32
- All Implemented Interfaces:
PackedArray<TupleDesc_F32>
,LArrayAccessor<TupleDesc_F32>
@Generated("boofcv.struct.feature.PackedTupleArray_F64") public class PackedTupleArray_F32 extends Object implements PackedArray<TupleDesc_F32>
Stores a set of tuples in a single continuous array. This is intended to make storage of a large number of tuples
more memory efficient by removing all the packaging that Java adds to a class. The memory is also continuous,
opening the possibility of further optimizations.
-
Field Summary
Fields Modifier and Type Field Description DogArray_F32
array
int
dof
protected int
numElements
TupleDesc_F32
temp
-
Constructor Summary
Constructors Constructor Description PackedTupleArray_F32(int dof)
-
Method Summary
Modifier and Type Method Description void
append(TupleDesc_F32 element)
Appends a copy to the end of the arrayvoid
copy(TupleDesc_F32 src, TupleDesc_F32 dst)
void
forIdx(int idx0, int idx1, BoofLambdas.ProcessIndex<TupleDesc_F32> op)
For each with indexvoid
getCopy(int index, TupleDesc_F32 dst)
Class<TupleDesc_F32>
getElementType()
TupleDesc_F32
getTemp(int index)
void
reserve(int numTuples)
Ensure there is enough space to store 'numElements' before the internal array needs to grow.void
reset()
Resets the array's size to be zeroint
size()
-
Field Details
-
dof
public final int dof -
array
-
temp
-
numElements
protected int numElements
-
-
Constructor Details
-
PackedTupleArray_F32
public PackedTupleArray_F32(int dof)
-
-
Method Details
-
reset
public void reset()Description copied from interface:PackedArray
Resets the array's size to be zero- Specified by:
reset
in interfacePackedArray<TupleDesc_F32>
-
reserve
public void reserve(int numTuples)Description copied from interface:PackedArray
Ensure there is enough space to store 'numElements' before the internal array needs to grow. Does not change the size- Specified by:
reserve
in interfacePackedArray<TupleDesc_F32>
- Parameters:
numTuples
- Minimum number of elements allocated to the array
-
append
Description copied from interface:PackedArray
Appends a copy to the end of the array- Specified by:
append
in interfacePackedArray<TupleDesc_F32>
- Parameters:
element
- (Input) The element which is copied then added
-
getTemp
- Specified by:
getTemp
in interfaceLArrayAccessor<TupleDesc_F32>
-
getCopy
- Specified by:
getCopy
in interfaceLArrayAccessor<TupleDesc_F32>
-
copy
- Specified by:
copy
in interfaceLArrayAccessor<TupleDesc_F32>
-
size
public int size()- Specified by:
size
in interfaceLArrayAccessor<TupleDesc_F32>
-
getElementType
- Specified by:
getElementType
in interfaceLArrayAccessor<TupleDesc_F32>
-
forIdx
Description copied from interface:PackedArray
For each with index- Specified by:
forIdx
in interfacePackedArray<TupleDesc_F32>
- Parameters:
idx0
- Initial index. Inclusiveidx1
- Last index, Exclusiveop
- The operation to process each element
-