Package gov.nasa.worldwind.util
Class CompoundVecBuffer.EmptyCompoundVecBuffer
- java.lang.Object
-
- gov.nasa.worldwind.util.CompoundVecBuffer
-
- gov.nasa.worldwind.util.CompoundVecBuffer.EmptyCompoundVecBuffer
-
- Enclosing class:
- CompoundVecBuffer
protected static class CompoundVecBuffer.EmptyCompoundVecBuffer extends CompoundVecBuffer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
CompoundVecBuffer.CompoundIterator<T>, CompoundVecBuffer.CoordIterable, CompoundVecBuffer.EmptyCompoundVecBuffer, CompoundVecBuffer.LocationIterable, CompoundVecBuffer.PositionIterable, CompoundVecBuffer.ReverseCompoundIterator<T>, CompoundVecBuffer.SubBufferIterable<T>, CompoundVecBuffer.VectorIterable
-
-
Field Summary
Fields Modifier and Type Field Description protected int
coordsPerVec
-
Fields inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
ALLOCATE_DIRECT_BUFFERS, capacity, count, DEFAULT_INITIAL_CAPACITY, lengths, offsets
-
-
Constructor Summary
Constructors Modifier Constructor Description EmptyCompoundVecBuffer(int coordsPerVec)
protected
EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int[] indices, int offset, int length)
protected
EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int beginIndex, int endIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompoundVecBuffer
createSlice(int[] indices, int offset, int length)
protected CompoundVecBuffer
createSlice(int beginIndex, int endIndex)
protected VecBuffer
createSubBuffer(int offset, int length)
int
getCoordsPerVec()
Returns the number of coordinates per logical vector element.int
subBufferSize(int index)
Returns the size in logical vectors of the VecBuffer with the specified index.-
Methods inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
addSubBuffer, clear, emptyCompoundVecBuffer, expandCapacity, getCoords, getCoords, getLocations, getPositions, getReverseCoords, getReverseLocations, getReversePositions, getReverseVectors, getVectors, size, slice, slice, slice, subBuffer
-
-
-
-
Constructor Detail
-
EmptyCompoundVecBuffer
public EmptyCompoundVecBuffer(int coordsPerVec)
-
EmptyCompoundVecBuffer
protected EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int beginIndex, int endIndex)
-
EmptyCompoundVecBuffer
protected EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int[] indices, int offset, int length)
-
-
Method Detail
-
subBufferSize
public int subBufferSize(int index)
Description copied from class:CompoundVecBuffer
Returns the size in logical vectors of the VecBuffer with the specified index.- Specified by:
subBufferSize
in classCompoundVecBuffer
- Parameters:
index
- the index for the VecBuffer who's size is returned.- Returns:
- the size of the specified VecBuffer.
-
getCoordsPerVec
public int getCoordsPerVec()
Description copied from class:CompoundVecBuffer
Returns the number of coordinates per logical vector element.- Specified by:
getCoordsPerVec
in classCompoundVecBuffer
- Returns:
- the cardinality of a logical vector element.
-
createSubBuffer
protected VecBuffer createSubBuffer(int offset, int length)
- Specified by:
createSubBuffer
in classCompoundVecBuffer
-
createSlice
protected CompoundVecBuffer createSlice(int[] indices, int offset, int length)
- Specified by:
createSlice
in classCompoundVecBuffer
-
createSlice
protected CompoundVecBuffer createSlice(int beginIndex, int endIndex)
- Specified by:
createSlice
in classCompoundVecBuffer
-
-