Package ffx.openmm

Class DoubleArray

java.lang.Object
ffx.openmm.DoubleArray

public class DoubleArray extends Object
DoubleArray wrapper.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DoubleArray(int size)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(double value)
    Append a double value to the array.
    void
    Destroy the array.
    double
    get(int index)
    Get a value from the array.
    com.sun.jna.ptr.PointerByReference
    Get the pointer to the array.
    int
    Get the size of the array.
    void
    resize(int size)
    Resize the array.
    void
    set(int index, double value)
    Set a value in the array.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DoubleArray

      public DoubleArray(int size)
      Constructor.
      Parameters:
      size - The size of the array.
  • Method Details

    • append

      public void append(double value)
      Append a double value to the array.
      Parameters:
      value - The value to append.
    • set

      public void set(int index, double value)
      Set a value in the array.
      Parameters:
      index - The index of the value.
      value - The value.
    • destroy

      public void destroy()
      Destroy the array.
    • resize

      public void resize(int size)
      Resize the array.
      Parameters:
      size - The new size.
    • getSize

      public int getSize()
      Get the size of the array.
      Returns:
      The size.
    • get

      public double get(int index)
      Get a value from the array.
      Parameters:
      index - The index of the value.
      Returns:
      The value.
    • getPointer

      public com.sun.jna.ptr.PointerByReference getPointer()
      Get the pointer to the array.
      Returns:
      The pointer.