simtools.data.buffer
Class ResizeableBuffer.ResizeableShortManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.ShortManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleShortManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableShortManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedShortManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableShortManipulator
extends SimpleBuffer.SimpleShortManipulator

This class handles optimization for short objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleShortManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableShortManipulator()
           
 
Method Summary
 short getValue(long index)
           
 void setSlice(long min, long max)
          Use this function to optimize the buffer on the given index range
 boolean setValue(long index, short value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleShortManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableShortManipulator

public ResizeableBuffer.ResizeableShortManipulator()
Method Detail

getValue

public short getValue(long index)
               throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleShortManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        short value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleShortManipulator
Throws:
DataException

setSlice

public void setSlice(long min,
                     long max)
Use this function to optimize the buffer on the given index range

Overrides:
setSlice in class Buffer.ShortManipulator