Chem::FormatReader::Indexable(T)
Inherits Chem::FormatReader::MultiEntry
Declares a common interface for indexed reading of a finite number of objects encoded in a file format.
Including types must implement methods to track and set the current object in the IO.
Instance methods
read_entry(index : Int) : T
Returns the entry at the given index. Raises IndexError if the
index is invalid.
skip_to_entry(index : Int) : Nil
Discards the entries (without parsing) up until the given index.
Raises IndexError if the index is invalid.