Class NeighborList.Cell

java.lang.Object
ffx.potential.nonbonded.NeighborList.Cell
Enclosing class:
NeighborList

public static class NeighborList.Cell extends Object
Hold the atoms in each cell.
  • Constructor Details

    • Cell

      public Cell(int a, int b, int c)
  • Method Details

    • add

      public void add(int atomIndex, int symOpIndex)
      Add an atom to the cell.
      Parameters:
      atomIndex - The atom index.
      symOpIndex - The symmetry operator index.
    • get

      public NeighborList.AtomIndex get(int index)
    • getCount

      public int getCount()
    • getSymOpAtoms

      public int getSymOpAtoms(int symOpIndex, int[] index)
      Return the number of atoms in the cell for a given symmetry operator.
      Parameters:
      symOpIndex - The symmetry operator index.
      index - The list of indexes for the given symmetry operator.
      Returns:
      The number of atoms in the cell for the symmetry operator.
    • clear

      public void clear()
      Clear the list of atoms in the cell.