Package ffx.openmm
Class IntArray
java.lang.Object
ffx.openmm.IntArray
Int Array.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(int value) Append a int value to the array.void
destroy()
Destroy the array.int
get
(int index) Get a value from the array.com.sun.jna.ptr.PointerByReference
Get the pointer to the array.int
getSize()
Get the size of the array.void
resize
(int size) Resize the array.void
set
(int index, int value) Set a value in the array.
-
Constructor Details
-
IntArray
public IntArray(int size) Constructor.- Parameters:
size
- The size of the array.
-
-
Method Details
-
append
public void append(int value) Append a int value to the array.- Parameters:
value
- The value to append.
-
set
public void set(int index, int value) Set a value in the array.- Parameters:
index
- The index.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 int get(int index) Get a value from the array.- Parameters:
index
- The index.- Returns:
- The value.
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the pointer to the array.- Returns:
- The pointer.
-