Package ffx.openmm
Class BondArray
java.lang.Object
ffx.openmm.BondArray
Bonds are specified by pairs of integers (the atom indices).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(int i1, int i2) Append a bond to the bond array.voiddestroy()Destroy the bond array.voidget(int index, com.sun.jna.ptr.IntByReference i1, com.sun.jna.ptr.IntByReference i2) Get the bond at index.voidGet the bond at index.com.sun.jna.ptr.PointerByReferenceGet the pointer to the bond array.intgetSize()Get the size of the bond array.voidresize(int size) Resize the bond array.voidset(int index, int i1, int i2) Set the bond at index to i1 and i2.
-
Constructor Details
-
BondArray
public BondArray(int size) Create a new bond array.- Parameters:
size- The size of the bond array.
-
-
Method Details
-
append
public void append(int i1, int i2) Append a bond to the bond array.- Parameters:
i1- The first atom index.i2- The second atom index.
-
destroy
public void destroy()Destroy the bond array. -
get
Get the bond at index.- Parameters:
index- The index of the bond to get.i1- The first atom index.i2- The second atom index.
-
get
public void get(int index, com.sun.jna.ptr.IntByReference i1, com.sun.jna.ptr.IntByReference i2) Get the bond at index.- Parameters:
index- The index of the bond to get.i1- The first atom index.i2- The second atom index.
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the pointer to the bond array.- Returns:
- The pointer to the bond array.
-
getSize
public int getSize()Get the size of the bond array.- Returns:
- The size of the bond array.
-
resize
public void resize(int size) Resize the bond array.- Parameters:
size- The new size of the bond array.
-
set
public void set(int index, int i1, int i2) Set the bond at index to i1 and i2.- Parameters:
index- The index of the bond to set.i1- The first atom index.i2- The second atom index.
-