Package ffx.openmm
Class StringArray
java.lang.Object
ffx.openmm.StringArray
String Array.
-
Constructor Summary
ConstructorDescriptionStringArray
(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.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
-
getSize
public int getSize()Get the number of strings in the String Array.- Returns:
- The number of strings in the String Array.
-
get
Return the String at index i.- Parameters:
i
- The index of the String to return.- Returns:
- String The requested String.
-
resize
public void resize(int size) Resize the String Array.- Parameters:
size
- The new size of the String Array.
-
append
Append a String to the String Array.- Parameters:
string
- The String to append.
-
set
Set the String at index i.- Parameters:
i
- The index of the String to set.string
- The String to set.
-
destroy
public void destroy()Destroy the String Array.
-