abstract class Chem::Structure::Reader

Included Modules

Direct Known Subclasses

Defined in:

chem/io/reader.cr

Constructors

Instance Method Summary

Instance methods inherited from class Chem::IO::Reader(Chem::Structure)

close close, closed? closed?, parse_exception(msg : String) parse_exception, read_entry : T read_entry, sync_close=(sync_close : Bool) sync_close=, sync_close? sync_close?

Constructor methods inherited from class Chem::IO::Reader(Chem::Structure)

new(io : ::IO, sync_close : Bool = true)
new(path : Path | String) : self
new

Class methods inherited from class Chem::IO::Reader(Chem::Structure)

open(io : ::IO, sync_close : Bool = true, **options, &)
open(path : Path | String, **options, &)
open

Constructor Detail

def self.new(input : ::IO, guess_topology : Bool = true, sync_close : Bool = true) #

[View source]
def self.new(path : Path | String, guess_topology : Bool = true) : self #

[View source]

Instance Method Detail

def each(indexes : Enumerable(Int), &block : Structure -> ) #

[View source]
def read_entry : Structure #

[View source]
def select(indexes : Enumerable(Int)) : Iterator(Structure) #

[View source]
def skip(n : Int) : Iterator(Structure) #
Description copied from module Iterator(Chem::Structure)

Returns an iterator that skips the first n elements and only returns the elements after that.

iter = (1..3).each.skip(2)
iter.next # -> 3
iter.next # -> Iterator::Stop::INSTANCE

[View source]
abstract def skip_structure : Nil #

[View source]