Package ffx.openmm
Class StringArray
java.lang.Object
ffx.openmm.StringArray
String Array.
-
Constructor Summary
ConstructorsConstructorDescriptionStringArray
(int size) OpenMM String Array constructor.StringArray
(com.sun.jna.ptr.PointerByReference pointer) OpenMM String Array constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append a String to the String Array.void
destroy()
Destroy the String Array.get
(int i) Return the String at index i.com.sun.jna.ptr.PointerByReference
Get the pointer to the String Array.int
getSize()
Get the number of strings in the String Array.void
resize
(int size) Resize the String Array.void
Set the String at index i.
-
Constructor Details
-
StringArray
public StringArray(int size) OpenMM String Array constructor.- Parameters:
size
- The size of the String Array.
-
StringArray
public StringArray(com.sun.jna.ptr.PointerByReference pointer) OpenMM String Array constructor.- Parameters:
pointer
- The String Array pointer.
-
-
Method Details
-
append
Append a String to the String Array.- Parameters:
string
- The String to append.
-
destroy
public void destroy()Destroy the String Array. -
get
Return the String at index i.- Parameters:
i
- The index of the String to return.- Returns:
- String The requested String.
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the pointer to the String Array.- Returns:
- The pointer to the String Array.
-
getSize
public int getSize()Get the number of strings in the String Array.- Returns:
- The number of strings in the String Array.
-
resize
public void resize(int size) Resize the String Array.- Parameters:
size
- The new size of the String Array.
-
set
Set the String at index i.- Parameters:
i
- The index of the String to set.string
- The String to set.
-