NASA World Wind

gov.nasa.worldwind.util
Class CompoundVecBuffer.EmptyCompoundVecBuffer

java.lang.Object
  extended by gov.nasa.worldwind.util.CompoundVecBuffer
      extended by 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
protected  int coordsPerVec
           
 
Fields inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
ALLOCATE_DIRECT_BUFFERS, capacity, count, DEFAULT_INITIAL_CAPACITY, lengths, offsets
 
Constructor Summary
protected CompoundVecBuffer.EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int[] indices, int offset, int length)
           
protected CompoundVecBuffer.EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int beginIndex, int endIndex)
           
  CompoundVecBuffer.EmptyCompoundVecBuffer(int coordsPerVec)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordsPerVec

protected int coordsPerVec
Constructor Detail

CompoundVecBuffer.EmptyCompoundVecBuffer

protected CompoundVecBuffer.EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that,
                                                   int[] indices,
                                                   int offset,
                                                   int length)

CompoundVecBuffer.EmptyCompoundVecBuffer

protected CompoundVecBuffer.EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that,
                                                   int beginIndex,
                                                   int endIndex)

CompoundVecBuffer.EmptyCompoundVecBuffer

public CompoundVecBuffer.EmptyCompoundVecBuffer(int coordsPerVec)
Method Detail

createSlice

protected CompoundVecBuffer createSlice(int[] indices,
                                        int offset,
                                        int length)
Specified by:
createSlice in class CompoundVecBuffer

createSlice

protected CompoundVecBuffer createSlice(int beginIndex,
                                        int endIndex)
Specified by:
createSlice in class CompoundVecBuffer

createSubBuffer

protected VecBuffer createSubBuffer(int offset,
                                    int length)
Specified by:
createSubBuffer in class CompoundVecBuffer

getCoordsPerVec

public int getCoordsPerVec()
Description copied from class: CompoundVecBuffer
Returns the number of coordinates per logical vector element.

Specified by:
getCoordsPerVec in class CompoundVecBuffer
Returns:
the cardinality of a logical vector element.

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 class CompoundVecBuffer
Parameters:
index - the index for the VecBuffer who's size is returned.
Returns:
the size of the specified VecBuffer.

NASA World Wind