Package ffx.openmm
Class BondArray
java.lang.Object
ffx.openmm.BondArray
Bonds are specified by pairs of integers (the atom indices).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(int i1, int i2) Append a bond to the bond array.void
destroy()
Destroy the bond array.void
get
(int index, com.sun.jna.ptr.IntByReference i1, com.sun.jna.ptr.IntByReference i2) Get the bond at index.void
Get the bond at index.com.sun.jna.ptr.PointerByReference
Get the pointer to the bond array.int
getSize()
Get the size of the bond array.void
resize
(int size) Resize the bond array.void
set
(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.
-
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.
-
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.
-
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.
-
destroy
public void destroy()Destroy the bond array.
-