AtomIndex

class AtomIndex

An bijection between a set of atoms and a set of integers. The integers need not be contiguous.

Useful to assign identites to atoms in molecules.

Constructors

Link copied to clipboard
fun AtomIndex(atoms: List<Atom>)
Link copied to clipboard
fun AtomIndex()

Functions

Link copied to clipboard
fun add(atomi: Int, atom: Atom)
Link copied to clipboard
operator fun contains(atom: Atom): Boolean
operator fun contains(atomi: Int): Boolean
Link copied to clipboard
operator fun get(atom: Atom?): Int?
operator fun get(atomi: Int?): Atom?
Link copied to clipboard
fun getOrThrow(atom: Atom): Int
fun getOrThrow(atomi: Int): Atom
Link copied to clipboard
operator fun set(atom: Atom, atomi: Int)
operator fun set(atomi: Int, atom: Atom)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val size: Int